This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin Digest 2 Jan 2003 23:32:57 -0000 Issue 2457





>

> Message-ID: <20030102165207.34622.qmail@web14708.mail.yahoo.com>
> Date: Thu, 2 Jan 2003 08:52:07 -0800 (PST)
> From: Robert Bercik <robertjbercik@yahoo.com>
> Subject: lockf() or flock() support?
> To: cygwin@cygwin.com
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
>
>

> I'm porting an application that uses lockf() to cygwin
> and it doesn't appear that either are supported on
> cygwin. If so i can't seem to find which library they
> are contained in. Anybody have any luck with either of
> these?
>
> thanks,
> -Rob
You could implement your own lockf() as a wrapper around fcntl(), assuming
that enough of fcntl() functionality actually exists (I did it once upon a
time for a really old LInux that didn't have lockf, and it actually worked!
however I don't own the code so I can't send it to you--it wasn't hard,
less than 100 lines of code, including whitespace and comments.)

I have no personal knowledge of the completeness of cygwin's fcntl() so
YMMV.

Good luck!

Fred






--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]