diff options
Diffstat (limited to 'userland/libc/include')
-rw-r--r-- | userland/libc/include/stdlib.h | 1 | ||||
-rw-r--r-- | userland/libc/include/tb/sv.h | 2 | ||||
-rw-r--r-- | userland/libc/include/unistd.h | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/userland/libc/include/stdlib.h b/userland/libc/include/stdlib.h index a389e8c..2dcd447 100644 --- a/userland/libc/include/stdlib.h +++ b/userland/libc/include/stdlib.h @@ -35,4 +35,5 @@ int atoi(const char *str); char *realpath(const char *filename, char *resolvedname); long atol(const char *nptr); long long atoll(const char *nptr); +int setenv(const char *name, const char *value, int overwrite); #endif diff --git a/userland/libc/include/tb/sv.h b/userland/libc/include/tb/sv.h index 0ffe266..7062741 100644 --- a/userland/libc/include/tb/sv.h +++ b/userland/libc/include/tb/sv.h @@ -11,6 +11,8 @@ #define C_TO_SV(_c_string) \ ((struct sv){.length = strlen(_c_string), .s = (_c_string)}) +#define sv_length(a) ((a).length) + struct sv { const char *s; size_t length; diff --git a/userland/libc/include/unistd.h b/userland/libc/include/unistd.h index 3f17df4..6905a18 100644 --- a/userland/libc/include/unistd.h +++ b/userland/libc/include/unistd.h @@ -13,7 +13,7 @@ extern char *optarg; int close(int fildes); int ftruncate(int fildes, size_t length); -int execv(char *path, char **argv); +int execv(const char *pathname, char *const argv[]); int pipe(int fd[2]); int dup(int fildes); int dup2(int org_fd, int new_fd); |