Date: Wed, 9 Dec 1998 11:36:12 -0500 Message-Id: <199812091636.LAA06692@envy.delorie.com> From: DJ Delorie To: eliz AT is DOT elta DOT co DOT il CC: HANRIGOU AT cgste DOT mq, djgpp AT delorie DOT com In-reply-to: (message from Eli Zaretskii on Wed, 9 Dec 1998 12:31:58 +0200 (IST)) Subject: Re: read/write in binary mode: fopen/open behaviour References: Reply-To: djgpp AT delorie DOT com > DJ, does Posix say anything about O_BINARY in `open', or whether "rb" > should imply the underlying handle is open in binary mode? POSIX says that all files are effectively binary. It does not allow text files to differ from binary files, even though ANSI explicitly allows it. Thus, it has nothing to say about manipulating the binary-ness of files. ANSI doesn't have anything to say about the OS layer underneath fopen().