diff options
| author | WormHeamer | 2025-12-02 07:01:34 -0500 |
|---|---|---|
| committer | WormHeamer | 2025-12-02 07:01:34 -0500 |
| commit | 75b0f38f8ec0cb70250e05ff24e052360f7c114f (patch) | |
| tree | 6bb99df5801455605938be4d750784437169966a | |
| parent | 9a33bc820266891cec4205ec9bd6e22bacf36790 (diff) | |
fileno() prototype
| -rw-r--r-- | strio.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -30,6 +30,7 @@ const char *cstr_fmt(Arena *arena, const char *fmt, ...); #if defined(__linux__) || defined(_POSIX_C_SOURCE) #include <sys/stat.h> +int fileno(FILE *); static inline long read_all_file_size(FILE *f) { struct stat b; if (fstat(fileno(f), &b)) return -1; |
