Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/shellcode/osx/syscall.h
Views: 11780
/*1* Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.2*3* @APPLE_LICENSE_HEADER_START@4*5* The contents of this file constitute Original Code as defined in and6* are subject to the Apple Public Source License Version 1.1 (the7* "License"). You may not use this file except in compliance with the8* License. Please obtain a copy of the License at9* http://www.apple.com/publicsource and read it before using this file.10*11* This Original Code and all software distributed under the License are12* distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER13* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,14* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,15* FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the16* License for the specific language governing rights and limitations17* under the License.18*19* @APPLE_LICENSE_HEADER_END@20*/21/* Copyright (c) 1992, 1995-1999 Apple Computer, Inc. All Rights Reserved */22/*23*24* The NEXTSTEP Software License Agreement specifies the terms25* and conditions for redistribution.26*27*/28#include <sys/appleapiopts.h>2930#ifdef __APPLE_API_PRIVATE3132#define SYS_syscall 033#define SYS_exit 134#define SYS_fork 235#define SYS_read 336#define SYS_write 437#define SYS_open 538#define SYS_close 639#define SYS_wait4 740/* 8 is old creat */41#define SYS_link 942#define SYS_unlink 1043/* 11 is obsolete execv */44#define SYS_chdir 1245#define SYS_fchdir 1346#define SYS_mknod 1447#define SYS_chmod 1548#define SYS_chown 1649/* 17 is obsolete sbreak */50#if COMPAT_GETFSSTAT51/* 18 is old getfsstat */52#else53#define SYS_getfsstat 1854#endif55/* 19 is old lseek */56#define SYS_getpid 2057/* 21 is obsolete mount */58/* 22 is obsolete umount */59#define SYS_setuid 2360#define SYS_getuid 2461#define SYS_geteuid 2562#define SYS_ptrace 2663#define SYS_recvmsg 2764#define SYS_sendmsg 2865#define SYS_recvfrom 2966#define SYS_accept 3067#define SYS_getpeername 3168#define SYS_getsockname 3269#define SYS_access 3370#define SYS_chflags 3471#define SYS_fchflags 3572#define SYS_sync 3673#define SYS_kill 3774/* 38 is old stat */75#define SYS_getppid 3976/* 40 is old lstat */77#define SYS_dup 4178#define SYS_pipe 4279#define SYS_getegid 4380#define SYS_profil 4481#define SYS_ktrace 4582#define SYS_sigaction 4683#define SYS_getgid 4784#define SYS_sigprocmask 4885#define SYS_getlogin 4986#define SYS_setlogin 5087#define SYS_acct 5188#define SYS_sigpending 5289#define SYS_sigaltstack 5390#define SYS_ioctl 5491#define SYS_reboot 5592#define SYS_revoke 5693#define SYS_symlink 5794#define SYS_readlink 5895#define SYS_execve 5996#define SYS_umask 6097#define SYS_chroot 6198/* 62 is old fstat */99/* 63 is unused */100/* 64 is old getpagesize */101#define SYS_msync 65102#define SYS_vfork 66103/* 67 is obsolete vread */104/* 68 is obsolete vwrite */105#define SYS_sbrk 69106#define SYS_sstk 70107/* 71 is old mmap */108/* 72 is obsolete vadvise */109#define SYS_munmap 73110#define SYS_mprotect 74111#define SYS_madvise 75112/* 76 is obsolete vhangup */113/* 77 is obsolete vlimit */114#define SYS_mincore 78115#define SYS_getgroups 79116#define SYS_setgroups 80117#define SYS_getpgrp 81118#define SYS_setpgid 82119#define SYS_setitimer 83120/* 84 is old wait */121#define SYS_swapon 85122#define SYS_getitimer 86123/* 87 is old gethostname */124/* 88 is old sethostname */125#define SYS_getdtablesize 89126#define SYS_dup2 90127#define SYS_fcntl 92128#define SYS_select 93129/* 94 is obsolete setdopt */130#define SYS_fsync 95131#define SYS_setpriority 96132#define SYS_socket 97133#define SYS_connect 98134/* 99 is old accept */135#define SYS_getpriority 100136/* 101 is old send */137/* 102 is old recv */138#ifndef __ppc__139#define SYS_sigreturn 103140#endif141#define SYS_bind 104142#define SYS_setsockopt 105143#define SYS_listen 106144/* 107 is obsolete vtimes */145/* 108 is old sigvec */146/* 109 is old sigblock */147/* 110 is old sigsetmask */148#define SYS_sigsuspend 111149/* 112 is old sigstack */150/* 113 is old recvmsg */151/* 114 is old sendmsg */152/* 115 is obsolete vtrace */153#define SYS_gettimeofday 116154#define SYS_getrusage 117155#define SYS_getsockopt 118156/* 119 is obsolete resuba */157#define SYS_readv 120158#define SYS_writev 121159#define SYS_settimeofday 122160#define SYS_fchown 123161#define SYS_fchmod 124162/* 125 is old recvfrom */163/* 126 is old setreuid */164/* 127 is old setregid */165#define SYS_rename 128166/* 129 is old truncate */167/* 130 is old ftruncate */168#define SYS_flock 131169#define SYS_mkfifo 132170#define SYS_sendto 133171#define SYS_shutdown 134172#define SYS_socketpair 135173#define SYS_mkdir 136174#define SYS_rmdir 137175#define SYS_utimes 138176#define SYS_futimes 139177#define SYS_adjtime 140178/* 141 is old getpeername */179/* 142 is old gethostid */180/* 143 is old sethostid */181/* 144 is old getrlimit */182/* 145 is old setrlimit */183/* 146 is old killpg */184#define SYS_setsid 147185/* 148 is obsolete setquota */186/* 149 is obsolete quota */187/* 150 is old getsockname */188#define SYS_getpgid 151189#define SYS_setprivexec 152190#define SYS_pread 153191#define SYS_pwrite 154192#define SYS_nfssvc 155193/* 156 is old getdirentries */194#define SYS_statfs 157195#define SYS_fstatfs 158196#define SYS_unmount 159197/* 160 is obsolete async_daemon */198#define SYS_getfh 161199/* 162 is old getdomainname */200/* 163 is old setdomainname */201/* 164 is obsolete pcfs_mount */202#define SYS_quotactl 165203/* 166 is obsolete exportfs */204#define SYS_mount 167205/* 168 is obsolete ustat */206/* 169 is unused */207#define SYS_table 170208/* 171 is old wait_3 */209/* 172 is obsolete rpause */210/* 173 is unused */211/* 174 is obsolete getdents */212#define SYS_gc_control 175213#define SYS_add_profil 176214/* 177 is unused */215/* 178 is unused */216/* 179 is unused */217#define SYS_kdebug_trace 180218#define SYS_setgid 181219#define SYS_setegid 182220#define SYS_seteuid 183221#ifdef __ppc__222#define SYS_sigreturn 184223#endif224/* 185 is unused */225/* 186 is unused */226/* 187 is unused */227#define SYS_stat 188228#define SYS_fstat 189229#define SYS_lstat 190230#define SYS_pathconf 191231#define SYS_fpathconf 192232#if COMPAT_GETFSSTAT233#define SYS_getfsstat 193234#endif235#define SYS_getrlimit 194236#define SYS_setrlimit 195237#define SYS_getdirentries 196238#define SYS_mmap 197239#define SYS___syscall 198240#define SYS_lseek 199241#define SYS_truncate 200242#define SYS_ftruncate 201243#define SYS___sysctl 202244#define SYS_mlock 203245#define SYS_munlock 204246#define SYS_undelete 205247#define SYS_ATsocket 206248#define SYS_ATgetmsg 207249#define SYS_ATputmsg 208250#define SYS_ATPsndreq 209251#define SYS_ATPsndrsp 210252#define SYS_ATPgetreq 211253#define SYS_ATPgetrsp 212254/* 213 is reserved for AppleTalk */255#define SYS_kqueue_from_portset_np 214256#define SYS_kqueue_portset_np 215257#define SYS_mkcomplex 216258#define SYS_statv 217259#define SYS_lstatv 218260#define SYS_fstatv 219261#define SYS_getattrlist 220262#define SYS_setattrlist 221263#define SYS_getdirentriesattr 222264#define SYS_exchangedata 223265#define SYS_checkuseraccess 224266#define SYS_searchfs 225267268/* 226 - 230 are reserved for HFS expansion */269/* 231 - 241 are reserved */270#define SYS_fsctl 242271/* 243 - 246 are reserved */272#define SYS_nfsclnt 247 /* from freebsd, for lockd */273#define SYS_fhopen 248 /* from freebsd, for lockd */274/* 249 is reserved */275#define SYS_minherit 250276#define SYS_semsys 251277#define SYS_msgsys 252278#define SYS_shmsys 253279#define SYS_semctl 254280#define SYS_semget 255281#define SYS_semop 256282#define SYS_semconfig 257283#define SYS_msgctl 258284#define SYS_msgget 259285#define SYS_msgsnd 260286#define SYS_msgrcv 261287#define SYS_shmat 262288#define SYS_shmctl 263289#define SYS_shmdt 264290#define SYS_shmget 265291#define SYS_shm_open 266292#define SYS_shm_unlink 267293#define SYS_sem_open 268294#define SYS_sem_close 269295#define SYS_sem_unlink 270296#define SYS_sem_wait 271297#define SYS_sem_trywait 272298#define SYS_sem_post 273299#define SYS_sem_getvalue 274300#define SYS_sem_init 275301#define SYS_sem_destroy 276302/* 277 - 295 are reserved */303#define SYS_load_shared_file 296304#define SYS_reset_shared_file 297305#define SYS_new_system_shared_regions 298306/* 299 - 309 are reserved */307#define SYS_getsid 310308/* 311 - 312 are reserved */309#define SYS_aio_fsync 313310#define SYS_aio_return 314311#define SYS_aio_suspend 315312#define SYS_aio_cancel 316313#define SYS_aio_error 317314#define SYS_aio_read 318315#define SYS_aio_write 319316#define SYS_lio_listio 320317/* 321 - 323 are reserved */318#define SYS_mlockall 324319#define SYS_munlockall 325320/* 326 is reserved */321#define SYS_issetugid 327322#define SYS___pthread_kill 328323#define SYS_pthread_sigmask 329324#define SYS_sigwait 330325326#define SYS_audit 350 /* submit user space audit records */327#define SYS_auditon 351 /* audit subsystem control */328#define SYS_auditsvc 352 /* audit file control */329#define SYS_getauid 353330#define SYS_setauid 354331#define SYS_getaudit 355332#define SYS_setaudit 356333#define SYS_getaudit_addr 357334#define SYS_setaudit_addr 358335#define SYS_auditctl 359 /* audit control */336337#define SYS_kqueue 362338#define SYS_kevent 363339#endif /* __APPLE_API_PRIVATE */340341342