Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

353 lines (352 sloc) 7.04 kB
# osx mountain lion
# cat /usr/include/sys/syscall.h | grep ^#define | awk '{ print "\""$2"\"",":", $3"," }' | sed -e 's/SYS_//g'
syscalls = {
"syscall" : 0,
"exit" : 1,
"fork" : 2,
"read" : 3,
"write" : 4,
"open" : 5,
"close" : 6,
"wait4" : 7,
"link" : 9,
"unlink" : 10,
"chdir" : 12,
"fchdir" : 13,
"mknod" : 14,
"chmod" : 15,
"chown" : 16,
"getfsstat" : 18,
"getpid" : 20,
"setuid" : 23,
"getuid" : 24,
"geteuid" : 25,
"ptrace" : 26,
"recvmsg" : 27,
"sendmsg" : 28,
"recvfrom" : 29,
"accept" : 30,
"getpeername" : 31,
"getsockname" : 32,
"access" : 33,
"chflags" : 34,
"fchflags" : 35,
"sync" : 36,
"kill" : 37,
"getppid" : 39,
"dup" : 41,
"pipe" : 42,
"getegid" : 43,
"sigaction" : 46,
"getgid" : 47,
"sigprocmask" : 48,
"getlogin" : 49,
"setlogin" : 50,
"acct" : 51,
"sigpending" : 52,
"sigaltstack" : 53,
"ioctl" : 54,
"reboot" : 55,
"revoke" : 56,
"symlink" : 57,
"readlink" : 58,
"execve" : 59,
"umask" : 60,
"chroot" : 61,
"msync" : 65,
"vfork" : 66,
"munmap" : 73,
"mprotect" : 74,
"madvise" : 75,
"mincore" : 78,
"getgroups" : 79,
"setgroups" : 80,
"getpgrp" : 81,
"setpgid" : 82,
"setitimer" : 83,
"swapon" : 85,
"getitimer" : 86,
"getdtablesize" : 89,
"dup2" : 90,
"fcntl" : 92,
"select" : 93,
"fsync" : 95,
"setpriority" : 96,
"socket" : 97,
"connect" : 98,
"getpriority" : 100,
"bind" : 104,
"setsockopt" : 105,
"listen" : 106,
"sigsuspend" : 111,
"gettimeofday" : 116,
"getrusage" : 117,
"getsockopt" : 118,
"readv" : 120,
"writev" : 121,
"settimeofday" : 122,
"fchown" : 123,
"fchmod" : 124,
"setreuid" : 126,
"setregid" : 127,
"rename" : 128,
"flock" : 131,
"mkfifo" : 132,
"sendto" : 133,
"shutdown" : 134,
"socketpair" : 135,
"mkdir" : 136,
"rmdir" : 137,
"utimes" : 138,
"futimes" : 139,
"adjtime" : 140,
"gethostuuid" : 142,
"setsid" : 147,
"getpgid" : 151,
"setprivexec" : 152,
"pread" : 153,
"pwrite" : 154,
"nfssvc" : 155,
"statfs" : 157,
"fstatfs" : 158,
"unmount" : 159,
"getfh" : 161,
"quotactl" : 165,
"mount" : 167,
"csops" : 169,
"csops_audittoken" : 170,
"waitid" : 173,
"kdebug_trace" : 180,
"setgid" : 181,
"setegid" : 182,
"seteuid" : 183,
"sigreturn" : 184,
"chud" : 185,
"fdatasync" : 187,
"stat" : 188,
"fstat" : 189,
"lstat" : 190,
"pathconf" : 191,
"fpathconf" : 192,
"getrlimit" : 194,
"setrlimit" : 195,
"getdirentries" : 196,
"mmap" : 197,
"lseek" : 199,
"truncate" : 200,
"ftruncate" : 201,
"__sysctl" : 202,
"mlock" : 203,
"munlock" : 204,
"undelete" : 205,
"ATsocket" : 206,
"ATgetmsg" : 207,
"ATputmsg" : 208,
"ATPsndreq" : 209,
"ATPsndrsp" : 210,
"ATPgetreq" : 211,
"ATPgetrsp" : 212,
"open_dprotected_np" : 216,
"getattrlist" : 220,
"setattrlist" : 221,
"getdirentriesattr" : 222,
"exchangedata" : 223,
"searchfs" : 225,
"delete" : 226,
"copyfile" : 227,
"fgetattrlist" : 228,
"fsetattrlist" : 229,
"poll" : 230,
"watchevent" : 231,
"waitevent" : 232,
"modwatch" : 233,
"getxattr" : 234,
"fgetxattr" : 235,
"setxattr" : 236,
"fsetxattr" : 237,
"removexattr" : 238,
"fremovexattr" : 239,
"listxattr" : 240,
"flistxattr" : 241,
"fsctl" : 242,
"initgroups" : 243,
"posix_spawn" : 244,
"ffsctl" : 245,
"nfsclnt" : 247,
"fhopen" : 248,
"minherit" : 250,
"semsys" : 251,
"msgsys" : 252,
"shmsys" : 253,
"semctl" : 254,
"semget" : 255,
"semop" : 256,
"msgctl" : 258,
"msgget" : 259,
"msgsnd" : 260,
"msgrcv" : 261,
"shmat" : 262,
"shmctl" : 263,
"shmdt" : 264,
"shmget" : 265,
"shm_open" : 266,
"shm_unlink" : 267,
"sem_open" : 268,
"sem_close" : 269,
"sem_unlink" : 270,
"sem_wait" : 271,
"sem_trywait" : 272,
"sem_post" : 273,
"sem_getvalue" : 274,
"sem_init" : 275,
"sem_destroy" : 276,
"open_extended" : 277,
"umask_extended" : 278,
"stat_extended" : 279,
"lstat_extended" : 280,
"fstat_extended" : 281,
"chmod_extended" : 282,
"fchmod_extended" : 283,
"access_extended" : 284,
"settid" : 285,
"gettid" : 286,
"setsgroups" : 287,
"getsgroups" : 288,
"setwgroups" : 289,
"getwgroups" : 290,
"mkfifo_extended" : 291,
"mkdir_extended" : 292,
"identitysvc" : 293,
"shared_region_check_np" : 294,
"vm_pressure_monitor" : 296,
"psynch_rw_longrdlock" : 297,
"psynch_rw_yieldwrlock" : 298,
"psynch_rw_downgrade" : 299,
"psynch_rw_upgrade" : 300,
"psynch_mutexwait" : 301,
"psynch_mutexdrop" : 302,
"psynch_cvbroad" : 303,
"psynch_cvsignal" : 304,
"psynch_cvwait" : 305,
"psynch_rw_rdlock" : 306,
"psynch_rw_wrlock" : 307,
"psynch_rw_unlock" : 308,
"psynch_rw_unlock2" : 309,
"getsid" : 310,
"settid_with_pid" : 311,
"psynch_cvclrprepost" : 312,
"aio_fsync" : 313,
"aio_return" : 314,
"aio_suspend" : 315,
"aio_cancel" : 316,
"aio_error" : 317,
"aio_read" : 318,
"aio_write" : 319,
"lio_listio" : 320,
"iopolicysys" : 322,
"process_policy" : 323,
"mlockall" : 324,
"munlockall" : 325,
"issetugid" : 327,
"__pthread_kill" : 328,
"__pthread_sigmask" : 329,
"__sigwait" : 330,
"__disable_threadsignal" : 331,
"__pthread_markcancel" : 332,
"__pthread_canceled" : 333,
"__semwait_signal" : 334,
"proc_info" : 336,
"sendfile" : 337,
"stat64" : 338,
"fstat64" : 339,
"lstat64" : 340,
"stat64_extended" : 341,
"lstat64_extended" : 342,
"fstat64_extended" : 343,
"getdirentries64" : 344,
"statfs64" : 345,
"fstatfs64" : 346,
"getfsstat64" : 347,
"__pthread_chdir" : 348,
"__pthread_fchdir" : 349,
"audit" : 350,
"auditon" : 351,
"getauid" : 353,
"setauid" : 354,
"getaudit_addr" : 357,
"setaudit_addr" : 358,
"auditctl" : 359,
"bsdthread_create" : 360,
"bsdthread_terminate" : 361,
"kqueue" : 362,
"kevent" : 363,
"lchown" : 364,
"stack_snapshot" : 365,
"bsdthread_register" : 366,
"workq_open" : 367,
"workq_kernreturn" : 368,
"kevent64" : 369,
"__old_semwait_signal" : 370,
"__old_semwait_signal_nocancel" : 371,
"thread_selfid" : 372,
"ledger" : 373,
"__mac_execve" : 380,
"__mac_syscall" : 381,
"__mac_get_file" : 382,
"__mac_set_file" : 383,
"__mac_get_link" : 384,
"__mac_set_link" : 385,
"__mac_get_proc" : 386,
"__mac_set_proc" : 387,
"__mac_get_fd" : 388,
"__mac_set_fd" : 389,
"__mac_get_pid" : 390,
"__mac_get_lcid" : 391,
"__mac_get_lctx" : 392,
"__mac_set_lctx" : 393,
"setlcid" : 394,
"getlcid" : 395,
"read_nocancel" : 396,
"write_nocancel" : 397,
"open_nocancel" : 398,
"close_nocancel" : 399,
"wait4_nocancel" : 400,
"recvmsg_nocancel" : 401,
"sendmsg_nocancel" : 402,
"recvfrom_nocancel" : 403,
"accept_nocancel" : 404,
"msync_nocancel" : 405,
"fcntl_nocancel" : 406,
"select_nocancel" : 407,
"fsync_nocancel" : 408,
"connect_nocancel" : 409,
"sigsuspend_nocancel" : 410,
"readv_nocancel" : 411,
"writev_nocancel" : 412,
"sendto_nocancel" : 413,
"pread_nocancel" : 414,
"pwrite_nocancel" : 415,
"waitid_nocancel" : 416,
"poll_nocancel" : 417,
"msgsnd_nocancel" : 418,
"msgrcv_nocancel" : 419,
"sem_wait_nocancel" : 420,
"aio_suspend_nocancel" : 421,
"__sigwait_nocancel" : 422,
"__semwait_signal_nocancel" : 423,
"__mac_mount" : 424,
"__mac_get_mount" : 425,
"__mac_getfsstat" : 426,
"fsgetpath" : 427,
"audit_session_self" : 428,
"audit_session_join" : 429,
"fileport_makeport" : 430,
"fileport_makefd" : 431,
"audit_session_port" : 432,
"pid_suspend" : 433,
"pid_resume" : 434,
"pid_hibernate" : 435,
"pid_shutdown_sockets" : 436,
"shared_region_map_and_slide_np" : 438,
"kas_info" : 439,
}
Jump to Line
Something went wrong with that request. Please try again.