From dd41d1c7595337dd770165f7896e7206e6347e85 Mon Sep 17 00:00:00 2001 From: Michalis Pappas Date: Wed, 26 Mar 2025 08:44:42 +0100 Subject: [PATCH] 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 --- lib/nolibc/include/unistd.h | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5