Mail Archives: djgpp/1997/07/09/03:40:19
DJ Delorie wrote:
> POSIX 1003.1 Sec 5.3.1.2 states:
>
> The open() function shall return a file descriptor for the named file
> that is the lowest file descriptor not currently open for that
> process.
>
> POSIX 1003.1 Sec 5.3.1.3 states:
>
> Upon successful completion, the function shall open the file and
> return a nonnegative integer representing the lowest numbered unused
> file descriptor.
Thanks, I don't have the POSIX specs (where can I get them? Are they
hideously expensive like the ANSI/ISO ones?). As far as I'm concerned
POSIX is a fairly new thing - it certainly wasn't around when I started
programming in C 20+ years ago, so I don't expect systems to conform to it.
I'm pretty sure that MSDOS and OPENDOS aren't POSIX compliant - I believe
WinNT is, but I don't know about Win3 and Win95.
Given the number of non-POSIX systems around I still think it's a
dangerous assumption for portability...
Chris C
- Raw text -