From 0f3866a4dad84860e135855766c77e5a82737686 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Sat, 24 Feb 2024 15:18:40 +0000 Subject: bad reloc code silly me --- api/libc/stdio.h | 4 +++- api/posix/unistd.h | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'api') 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); -- cgit v1.3.1-1-g115d