AT&T system V fdopen mode checking
Doug Gwyn
gwyn at smoke.BRL.MIL
Sat Dec 2 11:59:46 AEST 1989
In article <713 at mbf.UUCP> hae at mbf.UUCP (Hae Hirdler) writes:
-The man page on the fdopen states that "the type of the stream must
-agree with the mode of the open file."
I believe by "mode" they mean "file access permissions".
-For example, fd= open(filename, O_RDONLY); fptr= fdopen(filename, "w")
-will return a NON_NULL fptr value instead of NULL.
O_RDONLY has nothing to do with the file. It is just a parameter to open().
More information about the Comp.bugs.sys5
mailing list