1 // mksysnum_darwin.pl /usr/include/sys/syscall.h 2 // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT 3 4 // +build arm64,darwin 5 6 package syscall 7 8 const ( 9 SYS_SYSCALL = 0 10 SYS_EXIT = 1 11 SYS_FORK = 2 12 SYS_READ = 3 13 SYS_WRITE = 4 14 SYS_OPEN = 5 15 SYS_CLOSE = 6 16 SYS_WAIT4 = 7 17 SYS_LINK = 9 18 SYS_UNLINK = 10 19 SYS_CHDIR = 12 20 SYS_FCHDIR = 13 21 SYS_MKNOD = 14 22 SYS_CHMOD = 15 23 SYS_CHOWN = 16 24 SYS_GETFSSTAT = 18 25 SYS_GETPID = 20 26 SYS_SETUID = 23 27 SYS_GETUID = 24 28 SYS_GETEUID = 25 29 SYS_PTRACE = 26 30 SYS_RECVMSG = 27 31 SYS_SENDMSG = 28 32 SYS_RECVFROM = 29 33 SYS_ACCEPT = 30 34 SYS_GETPEERNAME = 31 35 SYS_GETSOCKNAME = 32 36 SYS_ACCESS = 33 37 SYS_CHFLAGS = 34 38 SYS_FCHFLAGS = 35 39 SYS_SYNC = 36 40 SYS_KILL = 37 41 SYS_GETPPID = 39 42 SYS_DUP = 41 43 SYS_PIPE = 42 44 SYS_GETEGID = 43 45 SYS_SIGACTION = 46 46 SYS_GETGID = 47 47 SYS_SIGPROCMASK = 48 48 SYS_GETLOGIN = 49 49 SYS_SETLOGIN = 50 50 SYS_ACCT = 51 51 SYS_SIGPENDING = 52 52 SYS_SIGALTSTACK = 53 53 SYS_IOCTL = 54 54 SYS_REBOOT = 55 55 SYS_REVOKE = 56 56 SYS_SYMLINK = 57 57 SYS_READLINK = 58 58 SYS_EXECVE = 59 59 SYS_UMASK = 60 60 SYS_CHROOT = 61 61 SYS_MSYNC = 65 62 SYS_VFORK = 66 63 SYS_MUNMAP = 73 64 SYS_MPROTECT = 74 65 SYS_MADVISE = 75 66 SYS_MINCORE = 78 67 SYS_GETGROUPS = 79 68 SYS_SETGROUPS = 80 69 SYS_GETPGRP = 81 70 SYS_SETPGID = 82 71 SYS_SETITIMER = 83 72 SYS_SWAPON = 85 73 SYS_GETITIMER = 86 74 SYS_GETDTABLESIZE = 89 75 SYS_DUP2 = 90 76 SYS_FCNTL = 92 77 SYS_SELECT = 93 78 SYS_FSYNC = 95 79 SYS_SETPRIORITY = 96 80 SYS_SOCKET = 97 81 SYS_CONNECT = 98 82 SYS_GETPRIORITY = 100 83 SYS_BIND = 104 84 SYS_SETSOCKOPT = 105 85 SYS_LISTEN = 106 86 SYS_SIGSUSPEND = 111 87 SYS_GETTIMEOFDAY = 116 88 SYS_GETRUSAGE = 117 89 SYS_GETSOCKOPT = 118 90 SYS_READV = 120 91 SYS_WRITEV = 121 92 SYS_SETTIMEOFDAY = 122 93 SYS_FCHOWN = 123 94 SYS_FCHMOD = 124 95 SYS_SETREUID = 126 96 SYS_SETREGID = 127 97 SYS_RENAME = 128 98 SYS_FLOCK = 131 99 SYS_MKFIFO = 132 100 SYS_SENDTO = 133 101 SYS_SHUTDOWN = 134 102 SYS_SOCKETPAIR = 135 103 SYS_MKDIR = 136 104 SYS_RMDIR = 137 105 SYS_UTIMES = 138 106 SYS_FUTIMES = 139 107 SYS_ADJTIME = 140 108 SYS_GETHOSTUUID = 142 109 SYS_SETSID = 147 110 SYS_GETPGID = 151 111 SYS_SETPRIVEXEC = 152 112 SYS_PREAD = 153 113 SYS_PWRITE = 154 114 SYS_NFSSVC = 155 115 SYS_STATFS = 157 116 SYS_FSTATFS = 158 117 SYS_UNMOUNT = 159 118 SYS_GETFH = 161 119 SYS_QUOTACTL = 165 120 SYS_MOUNT = 167 121 SYS_CSOPS = 169 122 SYS_CSOPS_AUDITTOKEN = 170 123 SYS_WAITID = 173 124 SYS_KDEBUG_TRACE = 180 125 SYS_SETGID = 181 126 SYS_SETEGID = 182 127 SYS_SETEUID = 183 128 SYS_SIGRETURN = 184 129 SYS_CHUD = 185 130 SYS_FDATASYNC = 187 131 SYS_STAT = 188 132 SYS_FSTAT = 189 133 SYS_LSTAT = 190 134 SYS_PATHCONF = 191 135 SYS_FPATHCONF = 192 136 SYS_GETRLIMIT = 194 137 SYS_SETRLIMIT = 195 138 SYS_GETDIRENTRIES = 196 139 SYS_MMAP = 197 140 SYS_LSEEK = 199 141 SYS_TRUNCATE = 200 142 SYS_FTRUNCATE = 201 143 SYS___SYSCTL = 202 144 SYS_MLOCK = 203 145 SYS_MUNLOCK = 204 146 SYS_UNDELETE = 205 147 SYS_ATSOCKET = 206 148 SYS_ATGETMSG = 207 149 SYS_ATPUTMSG = 208 150 SYS_ATPSNDREQ = 209 151 SYS_ATPSNDRSP = 210 152 SYS_ATPGETREQ = 211 153 SYS_ATPGETRSP = 212 154 SYS_OPEN_DPROTECTED_NP = 216 155 SYS_GETATTRLIST = 220 156 SYS_SETATTRLIST = 221 157 SYS_GETDIRENTRIESATTR = 222 158 SYS_EXCHANGEDATA = 223 159 SYS_SEARCHFS = 225 160 SYS_DELETE = 226 161 SYS_COPYFILE = 227 162 SYS_FGETATTRLIST = 228 163 SYS_FSETATTRLIST = 229 164 SYS_POLL = 230 165 SYS_WATCHEVENT = 231 166 SYS_WAITEVENT = 232 167 SYS_MODWATCH = 233 168 SYS_GETXATTR = 234 169 SYS_FGETXATTR = 235 170 SYS_SETXATTR = 236 171 SYS_FSETXATTR = 237 172 SYS_REMOVEXATTR = 238 173 SYS_FREMOVEXATTR = 239 174 SYS_LISTXATTR = 240 175 SYS_FLISTXATTR = 241 176 SYS_FSCTL = 242 177 SYS_INITGROUPS = 243 178 SYS_POSIX_SPAWN = 244 179 SYS_FFSCTL = 245 180 SYS_NFSCLNT = 247 181 SYS_FHOPEN = 248 182 SYS_MINHERIT = 250 183 SYS_SEMSYS = 251 184 SYS_MSGSYS = 252 185 SYS_SHMSYS = 253 186 SYS_SEMCTL = 254 187 SYS_SEMGET = 255 188 SYS_SEMOP = 256 189 SYS_MSGCTL = 258 190 SYS_MSGGET = 259 191 SYS_MSGSND = 260 192 SYS_MSGRCV = 261 193 SYS_SHMAT = 262 194 SYS_SHMCTL = 263 195 SYS_SHMDT = 264 196 SYS_SHMGET = 265 197 SYS_SHM_OPEN = 266 198 SYS_SHM_UNLINK = 267 199 SYS_SEM_OPEN = 268 200 SYS_SEM_CLOSE = 269 201 SYS_SEM_UNLINK = 270 202 SYS_SEM_WAIT = 271 203 SYS_SEM_TRYWAIT = 272 204 SYS_SEM_POST = 273 205 SYS_SEM_GETVALUE = 274 206 SYS_SEM_INIT = 275 207 SYS_SEM_DESTROY = 276 208 SYS_OPEN_EXTENDED = 277 209 SYS_UMASK_EXTENDED = 278 210 SYS_STAT_EXTENDED = 279 211 SYS_LSTAT_EXTENDED = 280 212 SYS_FSTAT_EXTENDED = 281 213 SYS_CHMOD_EXTENDED = 282 214 SYS_FCHMOD_EXTENDED = 283 215 SYS_ACCESS_EXTENDED = 284 216 SYS_SETTID = 285 217 SYS_GETTID = 286 218 SYS_SETSGROUPS = 287 219 SYS_GETSGROUPS = 288 220 SYS_SETWGROUPS = 289 221 SYS_GETWGROUPS = 290 222 SYS_MKFIFO_EXTENDED = 291 223 SYS_MKDIR_EXTENDED = 292 224 SYS_IDENTITYSVC = 293 225 SYS_SHARED_REGION_CHECK_NP = 294 226 SYS_VM_PRESSURE_MONITOR = 296 227 SYS_PSYNCH_RW_LONGRDLOCK = 297 228 SYS_PSYNCH_RW_YIELDWRLOCK = 298 229 SYS_PSYNCH_RW_DOWNGRADE = 299 230 SYS_PSYNCH_RW_UPGRADE = 300 231 SYS_PSYNCH_MUTEXWAIT = 301 232 SYS_PSYNCH_MUTEXDROP = 302 233 SYS_PSYNCH_CVBROAD = 303 234 SYS_PSYNCH_CVSIGNAL = 304 235 SYS_PSYNCH_CVWAIT = 305 236 SYS_PSYNCH_RW_RDLOCK = 306 237 SYS_PSYNCH_RW_WRLOCK = 307 238 SYS_PSYNCH_RW_UNLOCK = 308 239 SYS_PSYNCH_RW_UNLOCK2 = 309 240 SYS_GETSID = 310 241 SYS_SETTID_WITH_PID = 311 242 SYS_PSYNCH_CVCLRPREPOST = 312 243 SYS_AIO_FSYNC = 313 244 SYS_AIO_RETURN = 314 245 SYS_AIO_SUSPEND = 315 246 SYS_AIO_CANCEL = 316 247 SYS_AIO_ERROR = 317 248 SYS_AIO_READ = 318 249 SYS_AIO_WRITE = 319 250 SYS_LIO_LISTIO = 320 251 SYS_IOPOLICYSYS = 322 252 SYS_PROCESS_POLICY = 323 253 SYS_MLOCKALL = 324 254 SYS_MUNLOCKALL = 325 255 SYS_ISSETUGID = 327 256 SYS___PTHREAD_KILL = 328 257 SYS___PTHREAD_SIGMASK = 329 258 SYS___SIGWAIT = 330 259 SYS___DISABLE_THREADSIGNAL = 331 260 SYS___PTHREAD_MARKCANCEL = 332 261 SYS___PTHREAD_CANCELED = 333 262 SYS___SEMWAIT_SIGNAL = 334 263 SYS_PROC_INFO = 336 264 SYS_SENDFILE = 337 265 SYS_STAT64 = 338 266 SYS_FSTAT64 = 339 267 SYS_LSTAT64 = 340 268 SYS_STAT64_EXTENDED = 341 269 SYS_LSTAT64_EXTENDED = 342 270 SYS_FSTAT64_EXTENDED = 343 271 SYS_GETDIRENTRIES64 = 344 272 SYS_STATFS64 = 345 273 SYS_FSTATFS64 = 346 274 SYS_GETFSSTAT64 = 347 275 SYS___PTHREAD_CHDIR = 348 276 SYS___PTHREAD_FCHDIR = 349 277 SYS_AUDIT = 350 278 SYS_AUDITON = 351 279 SYS_GETAUID = 353 280 SYS_SETAUID = 354 281 SYS_GETAUDIT_ADDR = 357 282 SYS_SETAUDIT_ADDR = 358 283 SYS_AUDITCTL = 359 284 SYS_BSDTHREAD_CREATE = 360 285 SYS_BSDTHREAD_TERMINATE = 361 286 SYS_KQUEUE = 362 287 SYS_KEVENT = 363 288 SYS_LCHOWN = 364 289 SYS_STACK_SNAPSHOT = 365 290 SYS_BSDTHREAD_REGISTER = 366 291 SYS_WORKQ_OPEN = 367 292 SYS_WORKQ_KERNRETURN = 368 293 SYS_KEVENT64 = 369 294 SYS___OLD_SEMWAIT_SIGNAL = 370 295 SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371 296 SYS_THREAD_SELFID = 372 297 SYS_LEDGER = 373 298 SYS___MAC_EXECVE = 380 299 SYS___MAC_SYSCALL = 381 300 SYS___MAC_GET_FILE = 382 301 SYS___MAC_SET_FILE = 383 302 SYS___MAC_GET_LINK = 384 303 SYS___MAC_SET_LINK = 385 304 SYS___MAC_GET_PROC = 386 305 SYS___MAC_SET_PROC = 387 306 SYS___MAC_GET_FD = 388 307 SYS___MAC_SET_FD = 389 308 SYS___MAC_GET_PID = 390 309 SYS___MAC_GET_LCID = 391 310 SYS___MAC_GET_LCTX = 392 311 SYS___MAC_SET_LCTX = 393 312 SYS_SETLCID = 394 313 SYS_GETLCID = 395 314 SYS_READ_NOCANCEL = 396 315 SYS_WRITE_NOCANCEL = 397 316 SYS_OPEN_NOCANCEL = 398 317 SYS_CLOSE_NOCANCEL = 399 318 SYS_WAIT4_NOCANCEL = 400 319 SYS_RECVMSG_NOCANCEL = 401 320 SYS_SENDMSG_NOCANCEL = 402 321 SYS_RECVFROM_NOCANCEL = 403 322 SYS_ACCEPT_NOCANCEL = 404 323 SYS_MSYNC_NOCANCEL = 405 324 SYS_FCNTL_NOCANCEL = 406 325 SYS_SELECT_NOCANCEL = 407 326 SYS_FSYNC_NOCANCEL = 408 327 SYS_CONNECT_NOCANCEL = 409 328 SYS_SIGSUSPEND_NOCANCEL = 410 329 SYS_READV_NOCANCEL = 411 330 SYS_WRITEV_NOCANCEL = 412 331 SYS_SENDTO_NOCANCEL = 413 332 SYS_PREAD_NOCANCEL = 414 333 SYS_PWRITE_NOCANCEL = 415 334 SYS_WAITID_NOCANCEL = 416 335 SYS_POLL_NOCANCEL = 417 336 SYS_MSGSND_NOCANCEL = 418 337 SYS_MSGRCV_NOCANCEL = 419 338 SYS_SEM_WAIT_NOCANCEL = 420 339 SYS_AIO_SUSPEND_NOCANCEL = 421 340 SYS___SIGWAIT_NOCANCEL = 422 341 SYS___SEMWAIT_SIGNAL_NOCANCEL = 423 342 SYS___MAC_MOUNT = 424 343 SYS___MAC_GET_MOUNT = 425 344 SYS___MAC_GETFSSTAT = 426 345 SYS_FSGETPATH = 427 346 SYS_AUDIT_SESSION_SELF = 428 347 SYS_AUDIT_SESSION_JOIN = 429 348 SYS_FILEPORT_MAKEPORT = 430 349 SYS_FILEPORT_MAKEFD = 431 350 SYS_AUDIT_SESSION_PORT = 432 351 SYS_PID_SUSPEND = 433 352 SYS_PID_RESUME = 434 353 SYS_PID_HIBERNATE = 435 354 SYS_PID_SHUTDOWN_SOCKETS = 436 355 SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438 356 SYS_KAS_INFO = 439 357 SYS_MAXSYSCALL = 440 358 ) 359