File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,12 @@ extern FILE *const stdin;
147
147
extern FILE * const stdout ;
148
148
extern FILE * const stderr ;
149
149
150
+ /* The stdin, stdout, and stderr symbols are described as macros in the C
151
+ * standard. */
152
+ #define stdin stdin
153
+ #define stdout stdout
154
+ #define stderr stderr
155
+
150
156
#define EOF (-1)
151
157
152
158
#define _IOFBF 0 /* setvbuf should set fully buffered */
@@ -282,6 +288,17 @@ int ferror(FILE *__stream);
282
288
#define BUFSIZ 512
283
289
#endif
284
290
291
+ /*
292
+ * We don't have any way of knowing any underlying POSIX limits,
293
+ * so just use a reasonably small values here
294
+ */
295
+ #ifndef FOPEN_MAX
296
+ #define FOPEN_MAX 32
297
+ #endif
298
+ #ifndef FILENAME_MAX
299
+ #define FILENAME_MAX 1024
300
+ #endif
301
+
285
302
__extension__ typedef _fpos_t fpos_t ;
286
303
int fgetpos (FILE * stream , fpos_t * pos );
287
304
FILE * fopen (const char * path , const char * mode ) __malloc_like_with_free (fclose , 1 );
You can’t perform that action at this time.
0 commit comments