Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/nolibc: remove __nolibc_enosys() fallback from fork functions

All architectures have one of the real functions available.
The additional fallback to __nolibc_enosys() is superfluous.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250821-nolibc-enosys-v1-4-4b63f2caaa89@weissschuh.net

+2 -6
+2 -6
tools/include/nolibc/sys.h
··· 334 334 * will not use the rest with no other flag. 335 335 */ 336 336 return my_syscall5(__NR_clone, SIGCHLD, 0, 0, 0, 0); 337 - #elif defined(__NR_fork) 338 - return my_syscall0(__NR_fork); 339 337 #else 340 - return __nolibc_enosys(__func__); 338 + return my_syscall0(__NR_fork); 341 339 #endif 342 340 } 343 341 #endif ··· 352 354 { 353 355 #if defined(__NR_vfork) 354 356 return my_syscall0(__NR_vfork); 355 - #elif defined(__NR_clone3) 357 + #else 356 358 /* 357 359 * clone() could be used but has different argument orders per 358 360 * architecture. ··· 363 365 }; 364 366 365 367 return my_syscall2(__NR_clone3, &args, sizeof(args)); 366 - #else 367 - return __nolibc_enosys(__func__); 368 368 #endif 369 369 } 370 370 #endif