mirror-linux/tools/include/uapi/asm-generic
Arnd Bergmann 505d66d1ab clone3: drop __ARCH_WANT_SYS_CLONE3 macro
When clone3() was introduced, it was not obvious how each architecture
deals with setting up the stack and keeping the register contents in
a fork()-like system call, so this was left for the architecture
maintainers to implement, with __ARCH_WANT_SYS_CLONE3 defined by those
that already implement it.

Five years later, we still have a few architectures left that are missing
clone3(), and the macro keeps getting in the way as it's fundamentally
different from all the other __ARCH_WANT_SYS_* macros that are meant
to provide backwards-compatibility with applications using older
syscalls that are no longer provided by default.

Address this by reversing the polarity of the macro, adding an
__ARCH_BROKEN_SYS_CLONE3 macro to all architectures that don't
already provide the syscall, and remove __ARCH_WANT_SYS_CLONE3
from all the other ones.

Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2024-07-10 14:23:38 +02:00
..
bitsperlong.h tools headers: Synchronize linux/bits.h with the kernel sources 2024-04-26 22:13:10 -03:00
bpf_perf_event.h
errno-base.h tools include asm-generic: Grab errno.h and errno-base.h 2018-01-23 09:51:37 -03:00
errno.h tools include asm-generic: Grab errno.h and errno-base.h 2018-01-23 09:51:37 -03:00
ioctls.h tools uapi asm-generic: Synchronize ioctls.h 2018-11-19 12:31:45 -08:00
mman-common-tools.h tools headers uapi: Sync asm-generic/mman-common.h and linux/mman.h 2019-03-28 14:31:56 -03:00
mman-common.h mm/madvise: introduce MADV_COLLAPSE sync hugepage collapse 2022-09-11 20:25:46 -07:00
mman.h tools headers UAPI: Update tools's copy of mman.h headers 2019-07-29 09:02:58 -03:00
socket.h net: core: add getsockopt SO_PEERPIDFD 2023-06-12 10:45:50 +01:00
unistd.h clone3: drop __ARCH_WANT_SYS_CLONE3 macro 2024-07-10 14:23:38 +02:00