[PATCH]: Add flock syscall emulation

Corinna Vinschen cygwin-patches@cygwin.com
Sat Nov 29 23:01:00 GMT 2003


On Thu, Nov 27, 2003 at 02:51:10PM -0500, Nicholas Wourms wrote:
> Hi All,
> 
> Here is a patch to add the flock() syscall to Cygwin.  I've noticed that some

Applied with changes.

I've run indent on flock.c since its formatting was non-GNU.  I've
removed the _DEFUN, since it's nowhere else used in Cygwin.  I've
added a change message to include/sys/file.h according to the
licensing terms in include/sys/copying.dj.  I removed the _flock
from cygwin.din.  This should in future really only be used if newlib
expects a new syscall.

> As a side note, I noticed that sys/file.h was from DJGPP.  Will DJ allow us to
> use code from DJGPP in Newlib/Cygwin?  If so, I noticed some code in the DJGPP
> libc which I could port and use in future contributions.

This is a question you should ask DJ.  AFAIK, DJGPP is GPLd.  This
would mean that its code isn't suitable for use in Cygwin itself.

Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-patches mailing list