diff options
Diffstat (limited to 'api')
| -rw-r--r-- | api/libc/stdio.h | 4 | ||||
| -rw-r--r-- | api/posix/unistd.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/api/libc/stdio.h b/api/libc/stdio.h index 1edec4a..63d1ad8 100644 --- a/api/libc/stdio.h +++ b/api/libc/stdio.h @@ -6,10 +6,12 @@ typedef struct FILE FILE; +extern FILE *stdin; extern FILE *stdout; extern FILE *stderr; -extern int fputc(int c, FILE *f); +int fputc(int c, FILE *f); +int fputs(const char *str, FILE *f); int vfprintf(FILE *f, const char *restrict format, va_list arguments); int fprintf(FILE *f, const char *restrict format, ...); diff --git a/api/posix/unistd.h b/api/posix/unistd.h index 7487001..4964689 100644 --- a/api/posix/unistd.h +++ b/api/posix/unistd.h @@ -14,5 +14,8 @@ enum seek_whence SEEK_END }; +ssize_t read(int fd, void *buf, size_t length); ssize_t write(int fd, const void *buf, size_t length); +off_t lseek(int fd, off_t position, int whence); +int close(int fd); |
