From: Michalis Pappas Date: Tue, 1 Apr 2025 15:20:37 +0000 (+0200) Subject: lib/vfscore: Adapt to updated libposix-process config options X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=93463e2debaa4dfd394f8fde74f3f62e716d1dad;p=unikraft%2Funikraft.git lib/vfscore: Adapt to updated libposix-process config options Following the consolidation of CONFIG_LIBPOSIX_PROCESS_PIDS and CONFIG_LIBPOSIX_PROCESS_CLONE into LIBPOSIX_PROCESS_MULTITHREADING, update to the new config. Signed-off-by: Michalis Pappas Approved-by: Andrei Tatar Reviewed-by: Sergiu Moga Reviewed-by: Andrei Tatar GitHub-Closes: #1627 --- diff --git a/lib/vfscore/fd.c b/lib/vfscore/fd.c index 52e8c3110..9eb7f544d 100644 --- a/lib/vfscore/fd.c +++ b/lib/vfscore/fd.c @@ -39,9 +39,9 @@ #include #include #include -#if CONFIG_LIBPOSIX_PROCESS_CLONE +#if CONFIG_LIBPOSIX_PROCESS_MULTITHREADING #include -#endif /* CONFIG_LIBPOSIX_PROCESS_CLONE */ +#endif /* CONFIG_LIBPOSIX_PROCESS_MULTITHREADING */ #include @@ -73,7 +73,7 @@ int fdalloc(struct vfscore_file *fp, int *newfd) return 0; } -#if CONFIG_LIBPOSIX_PROCESS_CLONE +#if CONFIG_LIBPOSIX_PROCESS_MULTITHREADING static int uk_posix_clone_files(const struct clone_args *cl_args, size_t cl_args_len __unused, struct uk_thread *child __unused, @@ -91,4 +91,4 @@ static int uk_posix_clone_files(const struct clone_args *cl_args, return 0; } UK_POSIX_CLONE_HANDLER(CLONE_FILES, false, uk_posix_clone_files, 0x0); -#endif /* CONFIG_LIBPOSIX_PROCESS_CLONE */ +#endif /* CONFIG_LIBPOSIX_PROCESS_MULTITHREADING */ diff --git a/lib/vfscore/syscalls.c b/lib/vfscore/syscalls.c index 76f000d8c..798aeac15 100644 --- a/lib/vfscore/syscalls.c +++ b/lib/vfscore/syscalls.c @@ -46,9 +46,9 @@ #include #include #include -#if CONFIG_LIBPOSIX_PROCESS_CLONE +#if CONFIG_LIBPOSIX_PROCESS_MULTITHREADING #include -#endif /* CONFIG_LIBPOSIX_PROCESS_CLONE */ +#endif /* CONFIG_LIBPOSIX_PROCESS_MULTITHREADING */ #include #include @@ -1233,7 +1233,7 @@ sys_fchdir(struct vfscore_file *fp, char *cwd) return 0; } -#if CONFIG_LIBPOSIX_PROCESS_CLONE +#if CONFIG_LIBPOSIX_PROCESS_MULTITHREADING static int uk_posix_clone_fs(const struct clone_args *cl_args, size_t cl_args_len __unused, struct uk_thread *child __unused, @@ -1252,7 +1252,7 @@ static int uk_posix_clone_fs(const struct clone_args *cl_args, return 0; } UK_POSIX_CLONE_HANDLER(CLONE_FS, false, uk_posix_clone_fs, 0x0); -#endif /* CONFIG_LIBPOSIX_PROCESS_CLONE */ +#endif /* CONFIG_LIBPOSIX_PROCESS_MULTITHREADING */ int sys_readlink(char *path, char *buf, size_t bufsize, ssize_t *size)