[comp.std.c] FOPEN_MAX

roland@ai.mit.edu (Roland McGrath) (09/26/90)

Is FOPEN_MAX supposed to include the standard streams stdin, stdout, and
stderr, or not?  (i.e. Should FOPEN_MAX be the number of possible open
descriptors, or that number minus three?)


Thanks,
Roland McGrath
--
	Roland McGrath
	Free Software Foundation, Inc.
roland@ai.mit.edu, uunet!ai.mit.edu!roland

bhoughto@cmdnfs.intel.com (Blair P. Houghton) (09/26/90)

In article <ROLAND.90Sep26033201@geech.ai.mit.edu> roland@ai.mit.edu (Roland McGrath) writes:
>Is FOPEN_MAX supposed to include the standard streams stdin, stdout, and
>stderr, or not?  (i.e. Should FOPEN_MAX be the number of possible open
>descriptors, or that number minus three?)

"The value of FOPEN_MAX shall be at least eight, including the three
standard text streams."  (ANSI X3.159-1989, sec. 4.9.3, pp. 128, l. 2)

				--Blair
				  "Hi, Doug."