delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/12/27/03:41:40

Date: Wed, 27 Dec 2000 10:11:56 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Peter J. Farley III" <pjfarley AT banet DOT net>
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: <Pine.SUN.3.91.1001227100813.8380Q-100000@is>
MIME-Version: 1.0
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

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 <libc/stubs.h> in it, and 
it will do it for you.  Including stubs.h is the only thing you need to 
do on the source level.

- Raw text -


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