>

> Message-ID: <[EMAIL PROTECTED]>
> Date: Thu, 2 Jan 2003 08:52:07 -0800 (PST)
> From: Robert Bercik <[EMAIL PROTECTED]>
> Subject: lockf() or flock() support?
> To: [EMAIL PROTECTED]
> 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/

Reply via email to