www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/30/12:22:31

Date: Mon, 30 Oct 2000 19:20:29 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Edmund Horner <ejrh AT paradise DOT net DOT nz>
cc: djgpp AT delorie DOT com
Subject: Re: filelength(): POSIX or not
In-Reply-To: <972911905.508266@shelley.paradise.net.nz>
Message-ID: <Pine.SUN.3.91.1001030191713.15587E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 31 Oct 2000, Edmund Horner wrote:

> src/libc/posix/sys/stat/filelen.c
> 
> Does this mean that filelength() _is_ a POSIX function?  According to its
> info page, it's "not POSIX".

No, filelength is not a Posix function.

The fact that its source is under src/libc/posix does not mean that this 
function is Posix (there are all kinds of helper functions there written 
to be used by Posix functions such as stat and fstat).  If you don't 
trust the docs, look in the header file which defines the prototype 
(io.h, in this case): if the prototype is after this line:

  #ifndef _POSIX_SOURCE

then the function is non-Posix.

- Raw text -


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