www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/17/20:12:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Sent: 18 Aug 2003 00:11:57 GMT
From: "Abe Backus" <abraham AT backus DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: flockcyg
Date: Sun, 17 Aug 2003 17:11:47 -0700
Message-ID: <00ae01c3651d$53ba4880$5400a8c0@xppro8200>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <NDBBLLFMLFMANIDPNADCMEJLFEAA.wpmccormick@covad.net>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h7I0C9l22669

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/libc-client.a in the linker line alongside all of your .o files.

One other thing you may be able to try if you just want the flock emulator
is to snag the flockcyg.h and flockcyg.c from the sources (check the
licensing stuff first) and see if you can add them to your build environment
without sucking in all of the c-client stuff.  Again, check the licensing
stuff first :)

-Abe

-----Original Message-----
> 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.redhat.com/ml/cygwin/1999-04/msg00026.html
http://sources.redhat.com/ml/cygwin/2001-05/msg01745.html

... among others that make me believe that there is a way.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019