www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/09/03:40:19

From: Christopher Croughton <crough45 AT amc DOT de>
Message-Id: <97Jul9.093323gmt+0100.16644@internet01.amc.de>
Subject: Re: interesting redir behavior
To: dj AT delorie DOT com (DJ Delorie)
Date: Wed, 9 Jul 1997 08:37:24 +0100
Cc: crough45 AT amc DOT de, djgpp AT delorie DOT com
In-Reply-To: <199707082307.TAA02559@delorie.com> from "DJ Delorie" at Jul 9, 97 00:07:31 am
Mime-Version: 1.0

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 -


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