This is the mail archive of the cygwin 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: F_ULOCK, F_LOCK, F_TLOCK, F_TEST missing in unistd.h


On Aug 26 10:38, Gerrit P. Haase wrote:
> Hello,
> 
> The SUS says these flags belong in unistd.h:
> 
> #define F_ULOCK 0       /* Unlock a previously locked region */
> #define F_LOCK  1       /* Lock a region for exclusive use */
> #define F_TLOCK 2       /* Test and lock a region for exclusive use */
> #define F_TEST  3       /* Test a region for other processes locks */
> 
> Could this be added?

First of all, this is an newlib issue since unistd.h is defined there.
However, IMHO that doesn't make much sense, as long as the lockf function
and its prototype is missing as well.  What do you need these defines
for w/o having lockf?

Hey, are you going to implement lockf for Cygwin?  :-)


Corinna

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

--
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/


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