Skip to content

Commit

Permalink
Allow an application to define FOPEN_MAX (like we allow for OPEN_MAX
Browse files Browse the repository at this point in the history
in sys/syslimits.h).
  • Loading branch information
John Birrell authored and John Birrell committed Mar 26, 2008
1 parent cbdcc7c commit 2c2f4a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ __END_DECLS
* (which could fail). Do not use this for anything.
*/
/* must be == _POSIX_STREAM_MAX <limits.h> */
#ifndef FOPEN_MAX
#define FOPEN_MAX 20 /* must be <= OPEN_MAX <sys/syslimits.h> */
#endif
#define FILENAME_MAX 1024 /* must be <= PATH_MAX <sys/syslimits.h> */

/* System V/ANSI C; this is the wrong way to do this, do *not* use these. */
Expand Down

0 comments on commit 2c2f4a6

Please sign in to comment.