diff options
author | dzwdz | 2022-07-26 19:31:06 +0200 |
---|---|---|
committer | dzwdz | 2022-07-26 19:31:06 +0200 |
commit | a3e27d361919392eeb0086ed93b105d8301c7913 (patch) | |
tree | 91996a17172b650416bda82a472336b9d0edcdf0 /src/user/lib/stdlib.h | |
parent | 7a29c68ce0dc190cd6350746210441bc41d7da91 (diff) |
user: move the POSIX-y stuff to the proper header files
Diffstat (limited to 'src/user/lib/stdlib.h')
-rw-r--r-- | src/user/lib/stdlib.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/user/lib/stdlib.h b/src/user/lib/stdlib.h deleted file mode 100644 index 64fbbe6..0000000 --- a/src/user/lib/stdlib.h +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once -#include <camellia/types.h> -#include <shared/mem.h> -#include <stdbool.h> -#include <stddef.h> -#include <user/lib/malloc.h> - -int printf(const char *fmt, ...); -int snprintf(char *str, size_t len, const char *fmt, ...); - -int _klogf(const char *fmt, ...); // for kernel debugging only - -typedef struct { - int fd; - int pos; - bool eof; -} libc_file; -libc_file *file_open(const char *path, int flags); -libc_file *file_reopen(libc_file*, const char *path, int flags); -libc_file *file_clone(const libc_file*); -int file_read(libc_file*, char *buf, size_t len); -int file_write(libc_file*, const char *buf, size_t len); -void file_close(libc_file*); - -extern libc_file *stdin, *stdout; - -int fork(void); -int close(handle_t h); |