X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=devel%2Fsyscall-list;h=d33a8a78a86e00c4534259125fa2c380323d813c;hb=refs%2Fheads%2Fmaster;hp=3d55df1fc1d7d1f4cbb466ff91efa2cfabd5e66e;hpb=4cd7a78f3b8c03670e2d77675229472506eee1eb;p=public-inbox.git diff --git a/devel/syscall-list b/devel/syscall-list index 3d55df1f..0b36c0e2 100755 --- a/devel/syscall-list +++ b/devel/syscall-list @@ -26,8 +26,14 @@ system($cc, '-o', $x, $f, @cflags) == 0 or die "cc failed \$?=$?"; exec($x); __DATA__ #define _GNU_SOURCE -#include +#include #include +#include +#ifdef __linux__ +#include +#endif +#include +#include #include #define D(x) printf("$" #x " = %ld;\n", (long)x) @@ -46,10 +52,20 @@ int main(void) D(SYS_inotify_add_watch); D(SYS_inotify_rm_watch); D(SYS_prctl); + D(SYS_fstatfs); + D(SYS_sendmsg); + D(SYS_recvmsg); +#ifdef FS_IOC_GETFLAGS + printf("FS_IOC_GETFLAGS=%#lx\nFS_IOC_SETFLAGS=%#lx\n", + (unsigned long)FS_IOC_GETFLAGS, (unsigned long)FS_IOC_SETFLAGS); +#endif + #ifdef SYS_renameat2 D(SYS_renameat2); #endif #endif /* Linux, any other OSes with stable syscalls? */ - printf("size_t=%zu off_t=%zu\n", sizeof(size_t), sizeof(off_t)); + printf("size_t=%zu off_t=%zu pid_t=%zu\n", + sizeof(size_t), sizeof(off_t), sizeof(pid_t)); + D(SIGWINCH); return 0; }