Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Delivered-To: corinna-cygwin AT cygwin DOT com Date: Thu, 26 Aug 2004 12:46:02 +0200 From: "Gerrit P. Haase" Reply-To: "Gerrit P. Haase" Organization: Esse keine toten Tiere Message-ID: <231908231281.20040826124602@familiehaase.de> To: Corinna Vinschen CC: cygwin AT cygwin DOT com Subject: Re: F_ULOCK, F_LOCK, F_TLOCK, F_TEST missing in unistd.h In-Reply-To: <20040826090950.GZ27978@cygbert.vinschen.de> References: <4215658170 DOT 20040826103850 AT familiehaase DOT de> <20040826090950 DOT GZ27978 AT cygbert DOT vinschen DOT de> MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Corinna wrote: > 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? Correct, after defining them I got missing references to lockf. > Hey, are you going to implement lockf for Cygwin? :-) Ummm, I wasn't aware that I want to implement it;) I'll do some research, maybe we can take it easily from FreeBSD? Gerrit -- =^..^= http://nyckelpiga.de/donate.html -- 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/