why no fdopen() in dpANSI C?

Doug Gwyn gwyn at brl-smoke.ARPA
Mon Apr 11 15:41:46 AEST 1988


In article <2567 at ttrdc.UUCP> levy at ttrdc.UUCP (Daniel R. Levy) writes:
>Oh, GROAN.  Why not?  Sometims that's the most efficient way of getting a
>stdio stream open onto a file which needs options on open() or creat() other
>than the default, ...

There is no fdopen() in ANSI C because there are no UNIX file
descriptors in ANSI C.

UNIX (POSIX) systems can provide fdopen() as an extension to an ANSI-
conforming C implementation.  Nobody is insisting that it go away,
except it must not appear in <stdio.h> in a pure ANSI C environment
(special implementation-dependent things may be done to enable its
appearance; this issue is still being discussed by the standards
committees).



More information about the Comp.lang.c mailing list