diff options
Diffstat (limited to '')
-rw-r--r-- | linux/syscalls.h | 187 |
1 files changed, 86 insertions, 101 deletions
diff --git a/linux/syscalls.h b/linux/syscalls.h index f55dac5..36c1236 100644 --- a/linux/syscalls.h +++ b/linux/syscalls.h @@ -115,15 +115,6 @@ _Static_assert(END_OF_LINUX_SYMBOL_PRINTERS <= 0xFF, "LINUX_SYMBOL_PRINTER enums #ifndef SYMBOL_PRINTERS_ONLY -#if defined(__clang__) -# pragma clang diagnostic push -# pragma clang diagnostic ignored "-Wgnu-flexible-array-initializer" -# pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments" /* TODO how does that make sense in C23? */ -#elif defined(__GNUC__) -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wpedantic" -#endif - #define SYS(...) SYSCALL_ABI(linux, __VA_ARGS__) #define SYMBOLS(A, ...) .symbol_printer = (LINUX_SYMBOL_PRINTER_##A __VA_OPT__(SYMBOLS_2(__VA_ARGS__))) @@ -420,7 +411,7 @@ TODO_SYS(sys_sched_setaffinity, SCHEDULING, SET, 3, ZERO(INT), PARAMS(_,INT, _,U #undef TODO_SYS -#define XXX TODO /* when none on the architectures is not support yet by libsyscalls's core */ +#define XXX TODO static struct libsyscalls_syscall_abi TODO = {.category = LIBSYSCALLS_CAT_SUPPORT_PENDING, .min_argument_count = -1, @@ -725,11 +716,11 @@ static struct libsyscalls_syscall_abi TODO = #define linux_syscall_sys_idle XXX /* arm alpha */ #define linux_syscall_sys_pciconfig_iobase XXX /* arm alpha powerpc */ -#define linux_syscall_sys_pciconfig_read TODO /* arm alpha powerpc sparc ia64 */ -#define linux_syscall_sys_pciconfig_write TODO /* arm alpha powerpc sparc ia64 */ +#define linux_syscall_sys_pciconfig_read XXX /* arm alpha powerpc sparc ia64 */ +#define linux_syscall_sys_pciconfig_write XXX /* arm alpha powerpc sparc ia64 */ #define linux_syscall_sys_syscall XXX /* arm mips */ -#define linux_syscall_sys_mmap2 TODO /* arm microblaze parisc powerpc sparc ia64 m64k sh */ -#define linux_syscall_sys_rt_sigreturn_wrapper TODO /* arm microblaze parisc */ +#define linux_syscall_sys_mmap2 XXX /* arm microblaze parisc powerpc sparc ia64 m64k sh */ +#define linux_syscall_sys_rt_sigreturn_wrapper XXX /* arm microblaze parisc */ #define linux_syscall_sys_afs_syscall XXX /* arm */ #define linux_syscall_sys_arm_fadvise64_64 XXX /* arm */ #define linux_syscall_sys_break XXX /* arm */ @@ -764,16 +755,16 @@ static struct libsyscalls_syscall_abi TODO = #define linux_syscall_sys_stty XXX /* arm */ #define linux_syscall_sys_ulimit XXX /* arm */ -#define linux_syscall_compat_sys_epoll_pwait TODO /* mips parisc powerpc sparc s390 */ -#define linux_syscall_compat_sys_fanotify_mark TODO /* mips parisc powerpc sparc s390 */ -#define linux_syscall_compat_sys_fcntl TODO /* mips parisc powerpc sparc s390 */ -#define linux_syscall_sys_cacheflush TODO /* mips parisc m68k sh */ -#define linux_syscall_sys32_rt_sigreturn TODO /* mips sparc */ -#define linux_syscall_sys32_sigreturn TODO /* mips sparc */ +#define linux_syscall_compat_sys_epoll_pwait XXX /* mips parisc powerpc sparc s390 */ +#define linux_syscall_compat_sys_fanotify_mark XXX /* mips parisc powerpc sparc s390 */ +#define linux_syscall_compat_sys_fcntl XXX /* mips parisc powerpc sparc s390 */ +#define linux_syscall_sys_cacheflush XXX /* mips parisc m68k sh */ +#define linux_syscall_sys32_rt_sigreturn XXX /* mips sparc */ +#define linux_syscall_sys32_sigreturn XXX /* mips sparc */ #define linux_syscall_compat_sys_recv XXX /* mips powerpc */ -#define linux_syscall___sys_clone TODO /* mips m68k */ -#define linux_syscall___sys_clone3 TODO /* mips m68k */ -#define linux_syscall___sys_fork TODO /* mips m68k */ +#define linux_syscall___sys_clone XXX /* mips m68k */ +#define linux_syscall___sys_clone3 XXX /* mips m68k */ +#define linux_syscall___sys_fork XXX /* mips m68k */ #define linux_syscall___sys_sysmips XXX /* mips */ #define linux_syscall_compat_sys_old_msgctl XXX /* mips */ #define linux_syscall_compat_sys_old_semctl XXX /* mips */ @@ -797,9 +788,9 @@ static struct libsyscalls_syscall_abi TODO = #define linux_syscall_sysm_pipe XXX /* mips */ #define linux_syscall_sysn32_rt_sigreturn XXX /* mips */ -#define linux_syscall_sys_stime TODO /* powerpc parisc sparc */ -#define linux_syscall_compat_sys_sendfile64 TODO /* powerpc parisc s390 */ -#define linux_syscall_compat_sys_fallocate TODO /* powerpc sparc */ +#define linux_syscall_sys_stime XXX /* powerpc parisc sparc */ +#define linux_syscall_compat_sys_sendfile64 XXX /* powerpc parisc s390 */ +#define linux_syscall_compat_sys_fallocate XXX /* powerpc sparc */ #define linux_syscall_alpha_syscall_zero XXX /* alpha */ #define linux_syscall_sys_getdtablesize XXX /* alpha */ @@ -851,75 +842,75 @@ static struct libsyscalls_syscall_abi TODO = #define linux_syscall_sys_pread_wrapper XXX /* sh */ #define linux_syscall_sys_pwrite_wrapper XXX /* sh */ -#define linux_syscall___sys_vfork TODO /* m68k */ -#define linux_syscall_sys_atomic_barrier TODO /* m68k */ -#define linux_syscall_sys_atomic_cmpxchg_32 TODO /* m68k */ - -#define linux_syscall_compat_sys_io_pgetevents_time64 TODO /* parisc */ -#define linux_syscall_parisc_compat_signalfd4 TODO /* parisc */ -#define linux_syscall_parisc_eventfd2 TODO /* parisc */ -#define linux_syscall_parisc_fadvise64_64 TODO /* parisc */ -#define linux_syscall_parisc_fallocate TODO /* parisc */ -#define linux_syscall_parisc_ftruncate64 TODO /* parisc */ -#define linux_syscall_parisc_inotify_init1 TODO /* parisc */ -#define linux_syscall_parisc_madvise TODO /* parisc */ -#define linux_syscall_parisc_personality TODO /* parisc */ -#define linux_syscall_parisc_pipe2 TODO /* parisc */ -#define linux_syscall_parisc_pread64 TODO /* parisc */ -#define linux_syscall_parisc_pwrite64 TODO /* parisc */ -#define linux_syscall_parisc_readahead TODO /* parisc */ -#define linux_syscall_parisc_signalfd4 TODO /* parisc */ -#define linux_syscall_parisc_sync_file_range TODO /* parisc */ -#define linux_syscall_parisc_timerfd_create TODO /* parisc */ -#define linux_syscall_parisc_truncate64 TODO /* parisc */ -#define linux_syscall_parisc_userfaultfd TODO /* parisc */ -#define linux_syscall_sys32_fanotify_mark TODO /* parisc */ -#define linux_syscall_sys32_unimplemented TODO /* parisc */ -#define linux_syscall_sys_acl_get TODO /* parisc */ -#define linux_syscall_sys_acl_set TODO /* parisc */ -#define linux_syscall_sys_alloc_hugepages TODO /* parisc */ -#define linux_syscall_sys_attrctl TODO /* parisc */ -#define linux_syscall_sys_clone3_wrapper TODO /* parisc */ -#define linux_syscall_sys_clone_wrapper TODO /* parisc */ -#define linux_syscall_sys_fork_wrapper TODO /* parisc */ -#define linux_syscall_sys_free_hugepages TODO /* parisc */ -#define linux_syscall_sys_timerfd TODO /* parisc */ -#define linux_syscall_sys_vfork_wrapper TODO /* parisc */ - -#define linux_syscall_compat_sys_fadvise64 TODO /* sparc */ -#define linux_syscall_compat_sys_fadvise64_64 TODO /* sparc */ -#define linux_syscall_compat_sys_fstat64 TODO /* sparc */ -#define linux_syscall_compat_sys_fstatat64 TODO /* sparc */ -#define linux_syscall_compat_sys_lstat64 TODO /* sparc */ -#define linux_syscall_compat_sys_pread64 TODO /* sparc */ -#define linux_syscall_compat_sys_pwrite64 TODO /* sparc */ -#define linux_syscall_compat_sys_readahead TODO /* sparc */ -#define linux_syscall_compat_sys_sparc_sigaction TODO /* sparc */ -#define linux_syscall_compat_sys_stat64 TODO /* sparc */ -#define linux_syscall_compat_sys_sync_file_range TODO /* sparc */ -#define linux_syscall_sparc_exit TODO /* sparc */ -#define linux_syscall_sparc_exit_group TODO /* sparc */ -#define linux_syscall_sunos_execv TODO /* sparc */ -#define linux_syscall_sys32_execve TODO /* sparc */ -#define linux_syscall_sys32_execveat TODO /* sparc */ -#define linux_syscall_sys32_mmap2 TODO /* sparc */ -#define linux_syscall_sys32_socketcall TODO /* sparc */ -#define linux_syscall_sys64_execve TODO /* sparc */ -#define linux_syscall_sys64_execveat TODO /* sparc */ -#define linux_syscall_sys_64_mremap TODO /* sparc */ -#define linux_syscall_sys_64_munmap TODO /* sparc */ -#define linux_syscall_sys_getdomainname TODO /* sparc */ -#define linux_syscall_sys_kern_features TODO /* sparc */ -#define linux_syscall_sys_memory_ordering TODO /* sparc */ -#define linux_syscall_sys_nis_syscall TODO /* sparc */ -#define linux_syscall_sys_sparc64_personality TODO /* sparc */ -#define linux_syscall_sys_sparc_adjtimex TODO /* sparc */ -#define linux_syscall_sys_sparc_clock_adjtime TODO /* sparc */ -#define linux_syscall_sys_sparc_ipc TODO /* sparc */ -#define linux_syscall_sys_sparc_pipe TODO /* sparc */ -#define linux_syscall_sys_sparc_remap_file_pages TODO /* sparc */ -#define linux_syscall_sys_sparc_sigaction TODO /* sparc */ -#define linux_syscall_sys_utrap_install TODO /* sparc */ +#define linux_syscall___sys_vfork XXX /* m68k */ +#define linux_syscall_sys_atomic_barrier XXX /* m68k */ +#define linux_syscall_sys_atomic_cmpxchg_32 XXX /* m68k */ + +#define linux_syscall_compat_sys_io_pgetevents_time64 XXX /* parisc */ +#define linux_syscall_parisc_compat_signalfd4 XXX /* parisc */ +#define linux_syscall_parisc_eventfd2 XXX /* parisc */ +#define linux_syscall_parisc_fadvise64_64 XXX /* parisc */ +#define linux_syscall_parisc_fallocate XXX /* parisc */ +#define linux_syscall_parisc_ftruncate64 XXX /* parisc */ +#define linux_syscall_parisc_inotify_init1 XXX /* parisc */ +#define linux_syscall_parisc_madvise XXX /* parisc */ +#define linux_syscall_parisc_personality XXX /* parisc */ +#define linux_syscall_parisc_pipe2 XXX /* parisc */ +#define linux_syscall_parisc_pread64 XXX /* parisc */ +#define linux_syscall_parisc_pwrite64 XXX /* parisc */ +#define linux_syscall_parisc_readahead XXX /* parisc */ +#define linux_syscall_parisc_signalfd4 XXX /* parisc */ +#define linux_syscall_parisc_sync_file_range XXX /* parisc */ +#define linux_syscall_parisc_timerfd_create XXX /* parisc */ +#define linux_syscall_parisc_truncate64 XXX /* parisc */ +#define linux_syscall_parisc_userfaultfd XXX /* parisc */ +#define linux_syscall_sys32_fanotify_mark XXX /* parisc */ +#define linux_syscall_sys32_unimplemented XXX /* parisc */ +#define linux_syscall_sys_acl_get XXX /* parisc */ +#define linux_syscall_sys_acl_set XXX /* parisc */ +#define linux_syscall_sys_alloc_hugepages XXX /* parisc */ +#define linux_syscall_sys_attrctl XXX /* parisc */ +#define linux_syscall_sys_clone3_wrapper XXX /* parisc */ +#define linux_syscall_sys_clone_wrapper XXX /* parisc */ +#define linux_syscall_sys_fork_wrapper XXX /* parisc */ +#define linux_syscall_sys_free_hugepages XXX /* parisc */ +#define linux_syscall_sys_timerfd XXX /* parisc */ +#define linux_syscall_sys_vfork_wrapper XXX /* parisc */ + +#define linux_syscall_compat_sys_fadvise64 XXX /* sparc */ +#define linux_syscall_compat_sys_fadvise64_64 XXX /* sparc */ +#define linux_syscall_compat_sys_fstat64 XXX /* sparc */ +#define linux_syscall_compat_sys_fstatat64 XXX /* sparc */ +#define linux_syscall_compat_sys_lstat64 XXX /* sparc */ +#define linux_syscall_compat_sys_pread64 XXX /* sparc */ +#define linux_syscall_compat_sys_pwrite64 XXX /* sparc */ +#define linux_syscall_compat_sys_readahead XXX /* sparc */ +#define linux_syscall_compat_sys_sparc_sigaction XXX /* sparc */ +#define linux_syscall_compat_sys_stat64 XXX /* sparc */ +#define linux_syscall_compat_sys_sync_file_range XXX /* sparc */ +#define linux_syscall_sparc_exit XXX /* sparc */ +#define linux_syscall_sparc_exit_group XXX /* sparc */ +#define linux_syscall_sunos_execv XXX /* sparc */ +#define linux_syscall_sys32_execve XXX /* sparc */ +#define linux_syscall_sys32_execveat XXX /* sparc */ +#define linux_syscall_sys32_mmap2 XXX /* sparc */ +#define linux_syscall_sys32_socketcall XXX /* sparc */ +#define linux_syscall_sys64_execve XXX /* sparc */ +#define linux_syscall_sys64_execveat XXX /* sparc */ +#define linux_syscall_sys_64_mremap XXX /* sparc */ +#define linux_syscall_sys_64_munmap XXX /* sparc */ +#define linux_syscall_sys_getdomainname XXX /* sparc */ +#define linux_syscall_sys_kern_features XXX /* sparc */ +#define linux_syscall_sys_memory_ordering XXX /* sparc */ +#define linux_syscall_sys_nis_syscall XXX /* sparc */ +#define linux_syscall_sys_sparc64_personality XXX /* sparc */ +#define linux_syscall_sys_sparc_adjtimex XXX /* sparc */ +#define linux_syscall_sys_sparc_clock_adjtime XXX /* sparc */ +#define linux_syscall_sys_sparc_ipc XXX /* sparc */ +#define linux_syscall_sys_sparc_pipe XXX /* sparc */ +#define linux_syscall_sys_sparc_remap_file_pages XXX /* sparc */ +#define linux_syscall_sys_sparc_sigaction XXX /* sparc */ +#define linux_syscall_sys_utrap_install XXX /* sparc */ #define linux_syscall_compat_sys_mmap2 XXX /* powerpc */ #define linux_syscall_compat_sys_ppc32_fadvise64 XXX /* powerpc */ @@ -978,11 +969,5 @@ static struct libsyscalls_syscall_abi TODO = #define linux_syscall_sys_s390_runtime_instr XXX /* s390 */ #define linux_syscall_sys_s390_sthyi XXX /* s390 */ -#if defined(__clang__) -# pragma clang diagnostic pop -#else -# pragma GCC diagnostic pop -#endif - #endif /* !SYMBOL_PRINTERS_ONLY */ |