Date: Wed, 27 Dec 2000 10:11:56 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Peter J. Farley III" cc: djgpp-workers AT delorie DOT com Subject: Re: llseek is not in stubs.h (was: Re: Locking fcntl changes #2) In-Reply-To: <5.0.2.1.0.20001227015917.00a83050@pop5.banet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 27 Dec 2000, Peter J. Farley III wrote: > >Please verify that llseek() is there too. (I suspect not.) > > It is not. llseek is only defined in the non-POSIX section of > include/unistd.h, and nowhere else. > > Should llseek be following the example of filelength, being defined as > __llseek and having a "#define llseek __llseek" in > include/libc/stubs.h? If you call llseek inside fcntl, then you indeed need to add it to stubs.h. Note that you don't need to change the name of llseek in llseek.c (or whatever its source is called): just #include in it, and it will do it for you. Including stubs.h is the only thing you need to do on the source level.