mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Added missing prototypes to stdio.h.
This commit is contained in:
parent
73a7e8f53d
commit
9a77901883
1 changed files with 4 additions and 4 deletions
|
@ -77,16 +77,20 @@ extern FILE* stderr;
|
|||
|
||||
extern void clearerr(FILE* stream);
|
||||
extern int fclose(FILE* stream);
|
||||
extern FILE* fdopen(int fildes, const char* mode);
|
||||
extern int feof(FILE* stream);
|
||||
extern int ferror(FILE* stream);
|
||||
extern int fflush(FILE* stream);
|
||||
extern int fileno(FILE* stream);
|
||||
extern int fgetc(FILE* stream);
|
||||
extern FILE* fopen(const char* restrict filename, const char* restrict mode);
|
||||
extern int fprintf(FILE* restrict stream, const char* restrict format, ...);
|
||||
extern int fputc(int c, FILE* stream);
|
||||
extern size_t fread(void* restrict ptr, size_t size, size_t nitems, FILE* restrict stream);
|
||||
extern int fseek(FILE* stream, long offset, int whence);
|
||||
extern int fseeko(FILE* stream, off_t offset, int whence);
|
||||
extern long ftell(FILE* stream);
|
||||
extern off_t ftello(FILE* stream);
|
||||
extern size_t fwrite(const void* restrict ptr, size_t size, size_t nitems, FILE* restrict stream);
|
||||
extern int getc(FILE* stream);
|
||||
extern int getchar(void);
|
||||
|
@ -103,9 +107,7 @@ extern int vprintf(const char* restrict format, va_list ap);
|
|||
#ifndef SORTIX_UNIMPLEMENTED
|
||||
extern char* ctermid(char* s);
|
||||
extern char* fgets(char* restrict s, int n, FILE* restrict stream);
|
||||
extern FILE* fdopen(int fildes, const char* mode);
|
||||
extern FILE *fmemopen(void* restrict buf, size_t size, const char* restrict mode);
|
||||
extern FILE* fopen(const char* restrict filename, const char* restrict mode);
|
||||
extern FILE* freopen(const char* restrict filename, const char *restrict mode, FILE* restrict stream);
|
||||
extern FILE* open_memstream(char** bufp, size_t* sizep);
|
||||
extern FILE* popen(const char* command, const char* mode);
|
||||
|
@ -114,7 +116,6 @@ extern int dprintf(int fildes, const char* restrict format, ...);
|
|||
extern int fgetpos(FILE* restrict stream, fpos_t* restrict pos);
|
||||
extern int fputs(const char* restrict s, FILE* restrict stream);
|
||||
extern int fscanf(FILE* restrict stream, const char* restrict format, ... );
|
||||
extern int fseeko(FILE* stream, off_t offset, int whence);
|
||||
extern int fsetpos(FILE* stream, const fpos_t* pos);
|
||||
extern int ftrylockfile(FILE* file);
|
||||
extern int getchar_unlocked(void);
|
||||
|
@ -137,7 +138,6 @@ extern int vscanf(const char* restrict format, va_list arg);
|
|||
extern int vsnprintf(char* restrict, size_t, const char* restrict, va_list);
|
||||
extern int vsprintf(char* restrict s, const char* restrict format, va_list ap);
|
||||
extern int vsscanf(const char* restrict s, const char* restrict format, va_list arg);
|
||||
extern off_t ftello(FILE* stream);
|
||||
extern ssize_t getdelim(char** restrict lineptr, size_t* restrict n, int delimiter, FILE* restrict stream);
|
||||
extern ssize_t getline(char** restrict lineptr, size_t* restrict n, FILE* restrict stream);
|
||||
extern void flockfile(FILE* file);
|
||||
|
|
Loading…
Reference in a new issue