summaryrefslogtreecommitdiff
path: root/src/user/lib/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/include')
-rw-r--r--src/user/lib/include/ctype.h1
-rw-r--r--src/user/lib/include/locale.h5
-rw-r--r--src/user/lib/include/stdio.h4
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);