From: Michalis Pappas Date: Wed, 26 Mar 2025 07:44:42 +0000 (+0100) Subject: lib/nolibc: Add declaration of vfork() X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=dd41d1c7595337dd770165f7896e7206e6347e85;p=unikraft%2Funikraft.git lib/nolibc: Add declaration of vfork() Update unistd.h with declaration of vfork(). This is required when writing applications with nolibc. Signed-off-by: Michalis Pappas Approved-by: Andrei Tatar Reviewed-by: Sergiu Moga Reviewed-by: Andrei Tatar GitHub-Closes: #1627 --- diff --git a/lib/nolibc/include/unistd.h b/lib/nolibc/include/unistd.h index 4f70ba345..172c2218f 100644 --- a/lib/nolibc/include/unistd.h +++ b/lib/nolibc/include/unistd.h @@ -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