Re: flockcyg

2003-08-17 Thread Gerrit P. Haase
Hallo Bill, Am Montag, 18. August 2003 um 01:16 schriebst du: >> Cygwin doesn't have flock() or lockf() . > Right, but there is a work-around, yes? There is a flock() in the ruby sources for systems which don't have it. I already used it several times. Gerrit -- =^..^= -- Unsubscribe info

RE: flockcyg

2003-08-17 Thread Abe Backus
In uw-imap/c-client, the functionality of flock is emulated. Take a look in the osdep/unix directory of the uw-imap sources. As for the linker errors, there are a couple of different things to check. How are you linking libc-client? If you are using -L and -l, try instead to explicitly put /lib

RE: flockcyg

2003-08-17 Thread Bill McCormick
> > Cygwin doesn't have flock() or lockf() . > > -- Elfyn > Right, but there is a work-around, yes? Isn't that what uw-imap is doing in this case with flockcyg.h? If so, I'm curious if I might be able to use the same work-around. I found these related posts in the archive ... http://sources.redh

Re: flockcyg

2003-08-17 Thread Elfyn McBratney
Bill McCormick <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to compile a program that has: > > #ifdef HAVE_FLOCK > (void) flock(fd,LOCK_EX); > #else > lseek(fd,0L,0); > (void) lockf(fd,F_LOCK,0L); > #endif Cygwin doesn't have flock() or lockf() . -- Elfyn -- Unsubscribe info:

Re: flockcyg

2003-08-17 Thread Martin Gainty
>From what I read it is supposed to be undefined e.g. #ifndef LOCK_H #define LOCK_H #endif Hth, Martin - Original Message - From: "Bill McCormick" <[EMAIL PROTECTED]> To: "Cygwin" <[EMAIL PROTECTED]> Sent: Sunday, August 17, 2003 1:21 PM Subject: flockcyg > Hello, > > I'm trying to com