diff options
| author | Jakob Kaivo <jkk@ung.org> | 2020-08-11 11:11:53 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2020-08-11 11:11:53 -0400 |
| commit | 17ad48fef73839e9d36c89d5054a7bd2a72b14ac (patch) | |
| tree | 2a06499249fdd395371312f16552c17fa296f09a /src/stdio | |
| parent | aa30cdc2098ca309668517f8e3a240792d24d1a0 (diff) | |
move array of __FILE structs from __libc() to _stdio internal
Diffstat (limited to 'src/stdio')
| -rw-r--r-- | src/stdio/__FILES.c | 2 | ||||
| -rw-r--r-- | src/stdio/_stdio.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/stdio/__FILES.c b/src/stdio/__FILES.c new file mode 100644 index 00000000..f9bcdbba --- /dev/null +++ b/src/stdio/__FILES.c @@ -0,0 +1,2 @@ +#include "_stdio.h" +struct __FILE __FILES[FOPEN_MAX]; diff --git a/src/stdio/_stdio.h b/src/stdio/_stdio.h index 84ad60ca..6cb0ab0c 100644 --- a/src/stdio/_stdio.h +++ b/src/stdio/_stdio.h @@ -54,6 +54,8 @@ struct io_options { int __printf(struct io_options * restrict, const char * restrict, va_list); int __scanf(struct io_options * restrict, const char * restrict, va_list); +extern struct __FILE __FILES[FOPEN_MAX]; + #if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 199506L #define flockfile(_file) (void)(_file) #define funlockfile(_file) (void)(_file) |
