summaryrefslogtreecommitdiff
path: root/lib/libc/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-28 09:53:12 -0400
committerIan Moffett <ian@osmora.org>2024-04-28 09:59:25 -0400
commit002cd9e8d37dd9cc20c32f916780fce611797852 (patch)
tree443af90a7b0cdc0ddd5cb3fa52ee931e17fdd422 /lib/libc/include
parenta18e06278a72e947139927611ab598d6fa9d3c82 (diff)
libc: Add execv()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/sys/syscall.h1
-rw-r--r--lib/libc/include/unistd.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/include/sys/syscall.h b/lib/libc/include/sys/syscall.h
index c8ff062..6792753 100644
--- a/lib/libc/include/sys/syscall.h
+++ b/lib/libc/include/sys/syscall.h
@@ -43,6 +43,7 @@
#define SYS_mmap 7
#define SYS_munmap 8
#define SYS_ioctl 9
+#define SYS_execv 10
#define SYS_mount 11
#if !defined(__ASSEMBLER__)
diff --git a/lib/libc/include/unistd.h b/lib/libc/include/unistd.h
index f82c83a..c38ffa3 100644
--- a/lib/libc/include/unistd.h
+++ b/lib/libc/include/unistd.h
@@ -43,6 +43,7 @@ _Noreturn void _exit(int status);
ssize_t write(int fd, const void *buf, size_t count);
ssize_t read(int fd, void *buf, size_t count);
int close(int fd);
+int execv(const char *pathname, char *const argv[]);
#if defined(__cplusplus)
}