redefine FOPEN_MAX as the stdio min/max, not in any way related
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 5 Jan 1994 06:37:48 +0000 (22:37 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 5 Jan 1994 06:37:48 +0000 (22:37 -0800)
to the kernel; _POSIX_STREAM_MAX in limits.h makes it public

SCCS-vsn: include/stdio.h 8.4

usr/src/include/stdio.h

index 5692bfd..275fe08 100644 (file)
@@ -7,7 +7,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)stdio.h     8.3 (Berkeley) %G%
+ *     @(#)stdio.h     8.4 (Berkeley) %G%
  */
 
 #ifndef        _STDIO_H_
  */
 
 #ifndef        _STDIO_H_
@@ -158,10 +158,11 @@ __END_DECLS
 #define        EOF     (-1)
 
 /*
 #define        EOF     (-1)
 
 /*
- * FOPEN_MAX is a minimum maximum, and should be the number of descriptors
- * that the kernel can provide without allocation of a resource that can
- * fail without the process sleeping.  Do not use this for anything.
+ * FOPEN_MAX is a minimum maximum, and is the number of streams that
+ * stdio can provide without attempting to allocate further resources
+ * (which could fail).  Do not use this for anything.
  */
  */
+                               /* must be == _POSIX_STREAM_MAX <limits.h> */
 #define        FOPEN_MAX       20      /* must be <= OPEN_MAX <sys/syslimits.h> */
 #define        FILENAME_MAX    1024    /* must be <= PATH_MAX <sys/syslimits.h> */
 
 #define        FOPEN_MAX       20      /* must be <= OPEN_MAX <sys/syslimits.h> */
 #define        FILENAME_MAX    1024    /* must be <= PATH_MAX <sys/syslimits.h> */