diff options
author | dzwdz | 2022-08-29 13:57:47 +0200 |
---|---|---|
committer | dzwdz | 2022-08-29 13:58:02 +0200 |
commit | 4ae57a7fb13e68c5e6f1c1246a867555dbd986db (patch) | |
tree | 3bee7f7eee21e9f2ed3b9f07dd1671a1c230cf66 /src/user/lib/include | |
parent | edb7fc07bf93e4a1883cccf45ad7a4b2cbf390d9 (diff) |
user/lua: implement the bare minimum for it to link and "run"
Diffstat (limited to 'src/user/lib/include')
-rw-r--r-- | src/user/lib/include/ctype.h | 1 | ||||
-rw-r--r-- | src/user/lib/include/locale.h | 5 | ||||
-rw-r--r-- | src/user/lib/include/stdio.h | 4 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/user/lib/include/ctype.h b/src/user/lib/include/ctype.h index 02d7179..1ebb111 100644 --- a/src/user/lib/include/ctype.h +++ b/src/user/lib/include/ctype.h @@ -6,6 +6,7 @@ int iscntrl(int c); int isdigit(int c); int isgraph(int c); int islower(int c); +int isprint(int c); int ispunct(int c); int isspace(int c); int isupper(int c); diff --git a/src/user/lib/include/locale.h b/src/user/lib/include/locale.h index 263dfb5..1221375 100644 --- a/src/user/lib/include/locale.h +++ b/src/user/lib/include/locale.h @@ -67,4 +67,7 @@ static inline struct lconv *localeconv(void) { return &locale; } -char *setlocale(int category, const char *locale); +static inline char *setlocale(int category, const char *locale) { + (void)category; (void)locale; + return NULL; +} diff --git a/src/user/lib/include/stdio.h b/src/user/lib/include/stdio.h index 84fb515..dd6a078 100644 --- a/src/user/lib/include/stdio.h +++ b/src/user/lib/include/stdio.h @@ -27,6 +27,8 @@ int printf(const char *restrict fmt, ...); int fprintf(FILE *restrict f, const char *restrict fmt, ...); +int sprintf(char *restrict s, const char *restrict fmt, ...); + int vprintf(const char *restrict fmt, va_list ap); int vfprintf(FILE *restrict f, const char *restrict fmt, va_list ap); @@ -56,7 +58,7 @@ int fgetc(FILE *f); int getc(FILE *f); int fputc(int c, FILE *f); int putc(int c, FILE *f); -int ungetc(int c, FILE *stream); +int ungetc(int c, FILE *f); int fseek(FILE *f, long offset, int whence); int fseeko(FILE *f, off_t offset, int whence); |