]> Sergey Matveev's repositories - public-inbox.git/blobdiff - devel/syscall-list
No ext_urls
[public-inbox.git] / devel / syscall-list
index a6b1bfa7781f0fbd10cc3f2330e37a9f584e6feb..0b36c0e262f2950f099d471a050f5e45722cceb1 100755 (executable)
@@ -26,9 +26,13 @@ system($cc, '-o', $x, $f, @cflags) == 0 or die "cc failed \$?=$?";
 exec($x);
 __DATA__
 #define _GNU_SOURCE
+#include <signal.h>
 #include <sys/syscall.h>
 #include <sys/ioctl.h>
+#ifdef __linux__
 #include <linux/fs.h>
+#endif
+#include <sys/types.h>
 #include <unistd.h>
 #include <stdio.h>
 
@@ -49,6 +53,8 @@ int main(void)
        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);
@@ -58,6 +64,8 @@ int main(void)
        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;
 }