]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/nolibc: Add declaration of vfork()
authorMichalis Pappas <michalis@unikraft.io>
Wed, 26 Mar 2025 07:44:42 +0000 (08:44 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Wed, 30 Apr 2025 09:42:51 +0000 (09:42 +0000)
Update unistd.h with declaration of vfork(). This is required when
writing applications with nolibc.

Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1627

lib/nolibc/include/unistd.h

index 4f70ba34541aedfa6c4b25cd2d1558be47c17658..172c2218f27e11f82d795c13f9ada03e552168ec 100644 (file)
@@ -41,6 +41,7 @@ extern "C" {
 #endif
 
 #define __NEED_NULL
+#define __NEED_pid_t
 #define __NEED_size_t
 #define __NEED_ssize_t
 #define __NEED_off_t
@@ -83,6 +84,7 @@ int execvpe(const char *file, char *const argv[],
                char *const envp[]);
 int execve(const char *filename, char *const argv[],
                char *const envp[]);
+pid_t vfork(void);
 #endif
 
 #if CONFIG_LIBVFSCORE