1 |
1633 |
jcastillo |
/*
|
2 |
|
|
* This file contains the system call numbers.
|
3 |
|
|
*
|
4 |
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
5 |
|
|
* License. See the file "COPYING" in the main directory of this archive
|
6 |
|
|
* for more details.
|
7 |
|
|
*
|
8 |
|
|
* Copyright (C) 1995 by Ralf Baechle
|
9 |
|
|
*/
|
10 |
|
|
#ifndef __ASM_MIPS_UNISTD_H
|
11 |
|
|
#define __ASM_MIPS_UNISTD_H
|
12 |
|
|
|
13 |
|
|
/*
|
14 |
|
|
* The syscalls 0 - 3999 are reserved for a down to the root syscall
|
15 |
|
|
* compatibility with Risc/OS and IRIX. None of these syscalls has yet been
|
16 |
|
|
* implemented. We'll see how to deal with the various "real" BSD variants
|
17 |
|
|
* like Ultrix, NetBSD ...
|
18 |
|
|
*/
|
19 |
|
|
|
20 |
|
|
/*
|
21 |
|
|
* SVR4 syscalls are in the range from 1 to 999
|
22 |
|
|
*/
|
23 |
|
|
#define __NR_SVR4 0
|
24 |
|
|
#define __NR_SVR4_syscall (__NR_SVR4 + 0)
|
25 |
|
|
#define __NR_SVR4_exit (__NR_SVR4 + 1)
|
26 |
|
|
#define __NR_SVR4_fork (__NR_SVR4 + 2)
|
27 |
|
|
#define __NR_SVR4_read (__NR_SVR4 + 3)
|
28 |
|
|
#define __NR_SVR4_write (__NR_SVR4 + 4)
|
29 |
|
|
#define __NR_SVR4_open (__NR_SVR4 + 5)
|
30 |
|
|
#define __NR_SVR4_close (__NR_SVR4 + 6)
|
31 |
|
|
#define __NR_SVR4_wait (__NR_SVR4 + 7)
|
32 |
|
|
#define __NR_SVR4_creat (__NR_SVR4 + 8)
|
33 |
|
|
#define __NR_SVR4_link (__NR_SVR4 + 9)
|
34 |
|
|
#define __NR_SVR4_unlink (__NR_SVR4 + 10)
|
35 |
|
|
#define __NR_SVR4_exec (__NR_SVR4 + 11)
|
36 |
|
|
#define __NR_SVR4_chdir (__NR_SVR4 + 12)
|
37 |
|
|
#define __NR_SVR4_gtime (__NR_SVR4 + 13)
|
38 |
|
|
#define __NR_SVR4_mknod (__NR_SVR4 + 14)
|
39 |
|
|
#define __NR_SVR4_chmod (__NR_SVR4 + 15)
|
40 |
|
|
#define __NR_SVR4_chown (__NR_SVR4 + 16)
|
41 |
|
|
#define __NR_SVR4_sbreak (__NR_SVR4 + 17)
|
42 |
|
|
#define __NR_SVR4_stat (__NR_SVR4 + 18)
|
43 |
|
|
#define __NR_SVR4_lseek (__NR_SVR4 + 19)
|
44 |
|
|
#define __NR_SVR4_getpid (__NR_SVR4 + 20)
|
45 |
|
|
#define __NR_SVR4_mount (__NR_SVR4 + 21)
|
46 |
|
|
#define __NR_SVR4_umount (__NR_SVR4 + 22)
|
47 |
|
|
#define __NR_SVR4_setuid (__NR_SVR4 + 23)
|
48 |
|
|
#define __NR_SVR4_getuid (__NR_SVR4 + 24)
|
49 |
|
|
#define __NR_SVR4_stime (__NR_SVR4 + 25)
|
50 |
|
|
#define __NR_SVR4_ptrace (__NR_SVR4 + 26)
|
51 |
|
|
#define __NR_SVR4_alarm (__NR_SVR4 + 27)
|
52 |
|
|
#define __NR_SVR4_fstat (__NR_SVR4 + 28)
|
53 |
|
|
#define __NR_SVR4_pause (__NR_SVR4 + 29)
|
54 |
|
|
#define __NR_SVR4_utime (__NR_SVR4 + 30)
|
55 |
|
|
#define __NR_SVR4_stty (__NR_SVR4 + 31)
|
56 |
|
|
#define __NR_SVR4_gtty (__NR_SVR4 + 32)
|
57 |
|
|
#define __NR_SVR4_access (__NR_SVR4 + 33)
|
58 |
|
|
#define __NR_SVR4_nice (__NR_SVR4 + 34)
|
59 |
|
|
#define __NR_SVR4_statfs (__NR_SVR4 + 35)
|
60 |
|
|
#define __NR_SVR4_sync (__NR_SVR4 + 36)
|
61 |
|
|
#define __NR_SVR4_kill (__NR_SVR4 + 37)
|
62 |
|
|
#define __NR_SVR4_fstatfs (__NR_SVR4 + 38)
|
63 |
|
|
#define __NR_SVR4_setpgrp (__NR_SVR4 + 39)
|
64 |
|
|
#define __NR_SVR4_cxenix (__NR_SVR4 + 40)
|
65 |
|
|
#define __NR_SVR4_dup (__NR_SVR4 + 41)
|
66 |
|
|
#define __NR_SVR4_pipe (__NR_SVR4 + 42)
|
67 |
|
|
#define __NR_SVR4_times (__NR_SVR4 + 43)
|
68 |
|
|
#define __NR_SVR4_profil (__NR_SVR4 + 44)
|
69 |
|
|
#define __NR_SVR4_plock (__NR_SVR4 + 45)
|
70 |
|
|
#define __NR_SVR4_setgid (__NR_SVR4 + 46)
|
71 |
|
|
#define __NR_SVR4_getgid (__NR_SVR4 + 47)
|
72 |
|
|
#define __NR_SVR4_sig (__NR_SVR4 + 48)
|
73 |
|
|
#define __NR_SVR4_msgsys (__NR_SVR4 + 49)
|
74 |
|
|
#define __NR_SVR4_sysmips (__NR_SVR4 + 50)
|
75 |
|
|
#define __NR_SVR4_sysacct (__NR_SVR4 + 51)
|
76 |
|
|
#define __NR_SVR4_shmsys (__NR_SVR4 + 52)
|
77 |
|
|
#define __NR_SVR4_semsys (__NR_SVR4 + 53)
|
78 |
|
|
#define __NR_SVR4_ioctl (__NR_SVR4 + 54)
|
79 |
|
|
#define __NR_SVR4_uadmin (__NR_SVR4 + 55)
|
80 |
|
|
#define __NR_SVR4_exch (__NR_SVR4 + 56)
|
81 |
|
|
#define __NR_SVR4_utssys (__NR_SVR4 + 57)
|
82 |
|
|
#define __NR_SVR4_fsync (__NR_SVR4 + 58)
|
83 |
|
|
#define __NR_SVR4_exece (__NR_SVR4 + 59)
|
84 |
|
|
#define __NR_SVR4_umask (__NR_SVR4 + 60)
|
85 |
|
|
#define __NR_SVR4_chroot (__NR_SVR4 + 61)
|
86 |
|
|
#define __NR_SVR4_fcntl (__NR_SVR4 + 62)
|
87 |
|
|
#define __NR_SVR4_ulimit (__NR_SVR4 + 63)
|
88 |
|
|
#define __NR_SVR4_reserved1 (__NR_SVR4 + 64)
|
89 |
|
|
#define __NR_SVR4_reserved2 (__NR_SVR4 + 65)
|
90 |
|
|
#define __NR_SVR4_reserved3 (__NR_SVR4 + 66)
|
91 |
|
|
#define __NR_SVR4_reserved4 (__NR_SVR4 + 67)
|
92 |
|
|
#define __NR_SVR4_reserved5 (__NR_SVR4 + 68)
|
93 |
|
|
#define __NR_SVR4_reserved6 (__NR_SVR4 + 69)
|
94 |
|
|
#define __NR_SVR4_advfs (__NR_SVR4 + 70)
|
95 |
|
|
#define __NR_SVR4_unadvfs (__NR_SVR4 + 71)
|
96 |
|
|
#define __NR_SVR4_unused1 (__NR_SVR4 + 72)
|
97 |
|
|
#define __NR_SVR4_unused2 (__NR_SVR4 + 73)
|
98 |
|
|
#define __NR_SVR4_rfstart (__NR_SVR4 + 74)
|
99 |
|
|
#define __NR_SVR4_unused3 (__NR_SVR4 + 75)
|
100 |
|
|
#define __NR_SVR4_rdebug (__NR_SVR4 + 76)
|
101 |
|
|
#define __NR_SVR4_rfstop (__NR_SVR4 + 77)
|
102 |
|
|
#define __NR_SVR4_rfsys (__NR_SVR4 + 78)
|
103 |
|
|
#define __NR_SVR4_rmdir (__NR_SVR4 + 79)
|
104 |
|
|
#define __NR_SVR4_mkdir (__NR_SVR4 + 80)
|
105 |
|
|
#define __NR_SVR4_getdents (__NR_SVR4 + 81)
|
106 |
|
|
#define __NR_SVR4_libattach (__NR_SVR4 + 82)
|
107 |
|
|
#define __NR_SVR4_libdetach (__NR_SVR4 + 83)
|
108 |
|
|
#define __NR_SVR4_sysfs (__NR_SVR4 + 84)
|
109 |
|
|
#define __NR_SVR4_getmsg (__NR_SVR4 + 85)
|
110 |
|
|
#define __NR_SVR4_putmsg (__NR_SVR4 + 86)
|
111 |
|
|
#define __NR_SVR4_poll (__NR_SVR4 + 87)
|
112 |
|
|
#define __NR_SVR4_lstat (__NR_SVR4 + 88)
|
113 |
|
|
#define __NR_SVR4_symlink (__NR_SVR4 + 89)
|
114 |
|
|
#define __NR_SVR4_readlink (__NR_SVR4 + 90)
|
115 |
|
|
#define __NR_SVR4_setgroups (__NR_SVR4 + 91)
|
116 |
|
|
#define __NR_SVR4_getgroups (__NR_SVR4 + 92)
|
117 |
|
|
#define __NR_SVR4_fchmod (__NR_SVR4 + 93)
|
118 |
|
|
#define __NR_SVR4_fchown (__NR_SVR4 + 94)
|
119 |
|
|
#define __NR_SVR4_sigprocmask (__NR_SVR4 + 95)
|
120 |
|
|
#define __NR_SVR4_sigsuspend (__NR_SVR4 + 96)
|
121 |
|
|
#define __NR_SVR4_sigaltstack (__NR_SVR4 + 97)
|
122 |
|
|
#define __NR_SVR4_sigaction (__NR_SVR4 + 98)
|
123 |
|
|
#define __NR_SVR4_sigpending (__NR_SVR4 + 99)
|
124 |
|
|
#define __NR_SVR4_setcontext (__NR_SVR4 + 100)
|
125 |
|
|
#define __NR_SVR4_evsys (__NR_SVR4 + 101)
|
126 |
|
|
#define __NR_SVR4_evtrapret (__NR_SVR4 + 102)
|
127 |
|
|
#define __NR_SVR4_statvfs (__NR_SVR4 + 103)
|
128 |
|
|
#define __NR_SVR4_fstatvfs (__NR_SVR4 + 104)
|
129 |
|
|
#define __NR_SVR4_reserved7 (__NR_SVR4 + 105)
|
130 |
|
|
#define __NR_SVR4_nfssys (__NR_SVR4 + 106)
|
131 |
|
|
#define __NR_SVR4_waitid (__NR_SVR4 + 107)
|
132 |
|
|
#define __NR_SVR4_sigsendset (__NR_SVR4 + 108)
|
133 |
|
|
#define __NR_SVR4_hrtsys (__NR_SVR4 + 109)
|
134 |
|
|
#define __NR_SVR4_acancel (__NR_SVR4 + 110)
|
135 |
|
|
#define __NR_SVR4_async (__NR_SVR4 + 111)
|
136 |
|
|
#define __NR_SVR4_priocntlset (__NR_SVR4 + 112)
|
137 |
|
|
#define __NR_SVR4_pathconf (__NR_SVR4 + 113)
|
138 |
|
|
#define __NR_SVR4_mincore (__NR_SVR4 + 114)
|
139 |
|
|
#define __NR_SVR4_mmap (__NR_SVR4 + 115)
|
140 |
|
|
#define __NR_SVR4_mprotect (__NR_SVR4 + 116)
|
141 |
|
|
#define __NR_SVR4_munmap (__NR_SVR4 + 117)
|
142 |
|
|
#define __NR_SVR4_fpathconf (__NR_SVR4 + 118)
|
143 |
|
|
#define __NR_SVR4_vfork (__NR_SVR4 + 119)
|
144 |
|
|
#define __NR_SVR4_fchdir (__NR_SVR4 + 120)
|
145 |
|
|
#define __NR_SVR4_readv (__NR_SVR4 + 121)
|
146 |
|
|
#define __NR_SVR4_writev (__NR_SVR4 + 122)
|
147 |
|
|
#define __NR_SVR4_xstat (__NR_SVR4 + 123)
|
148 |
|
|
#define __NR_SVR4_lxstat (__NR_SVR4 + 124)
|
149 |
|
|
#define __NR_SVR4_fxstat (__NR_SVR4 + 125)
|
150 |
|
|
#define __NR_SVR4_xmknod (__NR_SVR4 + 126)
|
151 |
|
|
#define __NR_SVR4_clocal (__NR_SVR4 + 127)
|
152 |
|
|
#define __NR_SVR4_setrlimit (__NR_SVR4 + 128)
|
153 |
|
|
#define __NR_SVR4_getrlimit (__NR_SVR4 + 129)
|
154 |
|
|
#define __NR_SVR4_lchown (__NR_SVR4 + 130)
|
155 |
|
|
#define __NR_SVR4_memcntl (__NR_SVR4 + 131)
|
156 |
|
|
#define __NR_SVR4_getpmsg (__NR_SVR4 + 132)
|
157 |
|
|
#define __NR_SVR4_putpmsg (__NR_SVR4 + 133)
|
158 |
|
|
#define __NR_SVR4_rename (__NR_SVR4 + 134)
|
159 |
|
|
#define __NR_SVR4_nuname (__NR_SVR4 + 135)
|
160 |
|
|
#define __NR_SVR4_setegid (__NR_SVR4 + 136)
|
161 |
|
|
#define __NR_SVR4_sysconf (__NR_SVR4 + 137)
|
162 |
|
|
#define __NR_SVR4_adjtime (__NR_SVR4 + 138)
|
163 |
|
|
#define __NR_SVR4_sysinfo (__NR_SVR4 + 139)
|
164 |
|
|
#define __NR_SVR4_reserved8 (__NR_SVR4 + 140)
|
165 |
|
|
#define __NR_SVR4_seteuid (__NR_SVR4 + 141)
|
166 |
|
|
#define __NR_SVR4_PYRAMID_statis (__NR_SVR4 + 142)
|
167 |
|
|
#define __NR_SVR4_PYRAMID_tuning (__NR_SVR4 + 143)
|
168 |
|
|
#define __NR_SVR4_PYRAMID_forcerr (__NR_SVR4 + 144)
|
169 |
|
|
#define __NR_SVR4_PYRAMID_mpcntl (__NR_SVR4 + 145)
|
170 |
|
|
#define __NR_SVR4_reserved9 (__NR_SVR4 + 146)
|
171 |
|
|
#define __NR_SVR4_reserved10 (__NR_SVR4 + 147)
|
172 |
|
|
#define __NR_SVR4_reserved11 (__NR_SVR4 + 148)
|
173 |
|
|
#define __NR_SVR4_reserved12 (__NR_SVR4 + 149)
|
174 |
|
|
#define __NR_SVR4_reserved13 (__NR_SVR4 + 150)
|
175 |
|
|
#define __NR_SVR4_reserved14 (__NR_SVR4 + 151)
|
176 |
|
|
#define __NR_SVR4_reserved15 (__NR_SVR4 + 152)
|
177 |
|
|
#define __NR_SVR4_reserved16 (__NR_SVR4 + 153)
|
178 |
|
|
#define __NR_SVR4_reserved17 (__NR_SVR4 + 154)
|
179 |
|
|
#define __NR_SVR4_reserved18 (__NR_SVR4 + 155)
|
180 |
|
|
#define __NR_SVR4_reserved19 (__NR_SVR4 + 156)
|
181 |
|
|
#define __NR_SVR4_reserved20 (__NR_SVR4 + 157)
|
182 |
|
|
#define __NR_SVR4_reserved21 (__NR_SVR4 + 158)
|
183 |
|
|
#define __NR_SVR4_reserved22 (__NR_SVR4 + 159)
|
184 |
|
|
#define __NR_SVR4_reserved23 (__NR_SVR4 + 160)
|
185 |
|
|
#define __NR_SVR4_reserved24 (__NR_SVR4 + 161)
|
186 |
|
|
#define __NR_SVR4_reserved25 (__NR_SVR4 + 162)
|
187 |
|
|
#define __NR_SVR4_reserved26 (__NR_SVR4 + 163)
|
188 |
|
|
#define __NR_SVR4_reserved27 (__NR_SVR4 + 164)
|
189 |
|
|
#define __NR_SVR4_reserved28 (__NR_SVR4 + 165)
|
190 |
|
|
#define __NR_SVR4_reserved29 (__NR_SVR4 + 166)
|
191 |
|
|
#define __NR_SVR4_reserved30 (__NR_SVR4 + 167)
|
192 |
|
|
#define __NR_SVR4_reserved31 (__NR_SVR4 + 168)
|
193 |
|
|
#define __NR_SVR4_reserved32 (__NR_SVR4 + 169)
|
194 |
|
|
#define __NR_SVR4_reserved33 (__NR_SVR4 + 170)
|
195 |
|
|
#define __NR_SVR4_reserved34 (__NR_SVR4 + 171)
|
196 |
|
|
#define __NR_SVR4_reserved35 (__NR_SVR4 + 172)
|
197 |
|
|
#define __NR_SVR4_reserved36 (__NR_SVR4 + 173)
|
198 |
|
|
#define __NR_SVR4_reserved37 (__NR_SVR4 + 174)
|
199 |
|
|
#define __NR_SVR4_reserved38 (__NR_SVR4 + 175)
|
200 |
|
|
#define __NR_SVR4_reserved39 (__NR_SVR4 + 176)
|
201 |
|
|
#define __NR_SVR4_reserved40 (__NR_SVR4 + 177)
|
202 |
|
|
#define __NR_SVR4_reserved41 (__NR_SVR4 + 178)
|
203 |
|
|
#define __NR_SVR4_reserved42 (__NR_SVR4 + 179)
|
204 |
|
|
#define __NR_SVR4_reserved43 (__NR_SVR4 + 180)
|
205 |
|
|
#define __NR_SVR4_reserved44 (__NR_SVR4 + 181)
|
206 |
|
|
#define __NR_SVR4_reserved45 (__NR_SVR4 + 182)
|
207 |
|
|
#define __NR_SVR4_reserved46 (__NR_SVR4 + 183)
|
208 |
|
|
#define __NR_SVR4_reserved47 (__NR_SVR4 + 184)
|
209 |
|
|
#define __NR_SVR4_reserved48 (__NR_SVR4 + 185)
|
210 |
|
|
#define __NR_SVR4_reserved49 (__NR_SVR4 + 186)
|
211 |
|
|
#define __NR_SVR4_reserved50 (__NR_SVR4 + 187)
|
212 |
|
|
#define __NR_SVR4_reserved51 (__NR_SVR4 + 188)
|
213 |
|
|
#define __NR_SVR4_reserved52 (__NR_SVR4 + 189)
|
214 |
|
|
#define __NR_SVR4_reserved53 (__NR_SVR4 + 190)
|
215 |
|
|
#define __NR_SVR4_reserved54 (__NR_SVR4 + 191)
|
216 |
|
|
#define __NR_SVR4_reserved55 (__NR_SVR4 + 192)
|
217 |
|
|
#define __NR_SVR4_reserved56 (__NR_SVR4 + 193)
|
218 |
|
|
#define __NR_SVR4_reserved57 (__NR_SVR4 + 194)
|
219 |
|
|
#define __NR_SVR4_reserved58 (__NR_SVR4 + 195)
|
220 |
|
|
#define __NR_SVR4_reserved59 (__NR_SVR4 + 196)
|
221 |
|
|
#define __NR_SVR4_reserved60 (__NR_SVR4 + 197)
|
222 |
|
|
#define __NR_SVR4_reserved61 (__NR_SVR4 + 198)
|
223 |
|
|
#define __NR_SVR4_reserved62 (__NR_SVR4 + 199)
|
224 |
|
|
#define __NR_SVR4_reserved63 (__NR_SVR4 + 200)
|
225 |
|
|
#define __NR_SVR4_aread (__NR_SVR4 + 201)
|
226 |
|
|
#define __NR_SVR4_awrite (__NR_SVR4 + 202)
|
227 |
|
|
#define __NR_SVR4_listio (__NR_SVR4 + 203)
|
228 |
|
|
#define __NR_SVR4_mips_acancel (__NR_SVR4 + 204)
|
229 |
|
|
#define __NR_SVR4_astatus (__NR_SVR4 + 205)
|
230 |
|
|
#define __NR_SVR4_await (__NR_SVR4 + 206)
|
231 |
|
|
#define __NR_SVR4_areadv (__NR_SVR4 + 207)
|
232 |
|
|
#define __NR_SVR4_awritev (__NR_SVR4 + 208)
|
233 |
|
|
#define __NR_SVR4_MIPS_reserved1 (__NR_SVR4 + 209)
|
234 |
|
|
#define __NR_SVR4_MIPS_reserved2 (__NR_SVR4 + 210)
|
235 |
|
|
#define __NR_SVR4_MIPS_reserved3 (__NR_SVR4 + 211)
|
236 |
|
|
#define __NR_SVR4_MIPS_reserved4 (__NR_SVR4 + 212)
|
237 |
|
|
#define __NR_SVR4_MIPS_reserved5 (__NR_SVR4 + 213)
|
238 |
|
|
#define __NR_SVR4_MIPS_reserved6 (__NR_SVR4 + 214)
|
239 |
|
|
#define __NR_SVR4_MIPS_reserved7 (__NR_SVR4 + 215)
|
240 |
|
|
#define __NR_SVR4_MIPS_reserved8 (__NR_SVR4 + 216)
|
241 |
|
|
#define __NR_SVR4_MIPS_reserved9 (__NR_SVR4 + 217)
|
242 |
|
|
#define __NR_SVR4_MIPS_reserved10 (__NR_SVR4 + 218)
|
243 |
|
|
#define __NR_SVR4_MIPS_reserved11 (__NR_SVR4 + 219)
|
244 |
|
|
#define __NR_SVR4_MIPS_reserved12 (__NR_SVR4 + 220)
|
245 |
|
|
#define __NR_SVR4_CDC_reserved1 (__NR_SVR4 + 221)
|
246 |
|
|
#define __NR_SVR4_CDC_reserved2 (__NR_SVR4 + 222)
|
247 |
|
|
#define __NR_SVR4_CDC_reserved3 (__NR_SVR4 + 223)
|
248 |
|
|
#define __NR_SVR4_CDC_reserved4 (__NR_SVR4 + 224)
|
249 |
|
|
#define __NR_SVR4_CDC_reserved5 (__NR_SVR4 + 225)
|
250 |
|
|
#define __NR_SVR4_CDC_reserved6 (__NR_SVR4 + 226)
|
251 |
|
|
#define __NR_SVR4_CDC_reserved7 (__NR_SVR4 + 227)
|
252 |
|
|
#define __NR_SVR4_CDC_reserved8 (__NR_SVR4 + 228)
|
253 |
|
|
#define __NR_SVR4_CDC_reserved9 (__NR_SVR4 + 229)
|
254 |
|
|
#define __NR_SVR4_CDC_reserved10 (__NR_SVR4 + 230)
|
255 |
|
|
#define __NR_SVR4_CDC_reserved11 (__NR_SVR4 + 231)
|
256 |
|
|
#define __NR_SVR4_CDC_reserved12 (__NR_SVR4 + 232)
|
257 |
|
|
#define __NR_SVR4_CDC_reserved13 (__NR_SVR4 + 233)
|
258 |
|
|
#define __NR_SVR4_CDC_reserved14 (__NR_SVR4 + 234)
|
259 |
|
|
#define __NR_SVR4_CDC_reserved15 (__NR_SVR4 + 235)
|
260 |
|
|
#define __NR_SVR4_CDC_reserved16 (__NR_SVR4 + 236)
|
261 |
|
|
#define __NR_SVR4_CDC_reserved17 (__NR_SVR4 + 237)
|
262 |
|
|
#define __NR_SVR4_CDC_reserved18 (__NR_SVR4 + 238)
|
263 |
|
|
#define __NR_SVR4_CDC_reserved19 (__NR_SVR4 + 239)
|
264 |
|
|
#define __NR_SVR4_CDC_reserved20 (__NR_SVR4 + 240)
|
265 |
|
|
|
266 |
|
|
/*
|
267 |
|
|
* SYS V syscalls are in the range from 1000 to 1999
|
268 |
|
|
*/
|
269 |
|
|
#define __NR_SYSV 1000
|
270 |
|
|
#define __NR_SYSV_syscall (__NR_SYSV + 0)
|
271 |
|
|
#define __NR_SYSV_exit (__NR_SYSV + 1)
|
272 |
|
|
#define __NR_SYSV_fork (__NR_SYSV + 2)
|
273 |
|
|
#define __NR_SYSV_read (__NR_SYSV + 3)
|
274 |
|
|
#define __NR_SYSV_write (__NR_SYSV + 4)
|
275 |
|
|
#define __NR_SYSV_open (__NR_SYSV + 5)
|
276 |
|
|
#define __NR_SYSV_close (__NR_SYSV + 6)
|
277 |
|
|
#define __NR_SYSV_wait (__NR_SYSV + 7)
|
278 |
|
|
#define __NR_SYSV_creat (__NR_SYSV + 8)
|
279 |
|
|
#define __NR_SYSV_link (__NR_SYSV + 9)
|
280 |
|
|
#define __NR_SYSV_unlink (__NR_SYSV + 10)
|
281 |
|
|
#define __NR_SYSV_execv (__NR_SYSV + 11)
|
282 |
|
|
#define __NR_SYSV_chdir (__NR_SYSV + 12)
|
283 |
|
|
#define __NR_SYSV_time (__NR_SYSV + 13)
|
284 |
|
|
#define __NR_SYSV_mknod (__NR_SYSV + 14)
|
285 |
|
|
#define __NR_SYSV_chmod (__NR_SYSV + 15)
|
286 |
|
|
#define __NR_SYSV_chown (__NR_SYSV + 16)
|
287 |
|
|
#define __NR_SYSV_brk (__NR_SYSV + 17)
|
288 |
|
|
#define __NR_SYSV_stat (__NR_SYSV + 18)
|
289 |
|
|
#define __NR_SYSV_lseek (__NR_SYSV + 19)
|
290 |
|
|
#define __NR_SYSV_getpid (__NR_SYSV + 20)
|
291 |
|
|
#define __NR_SYSV_mount (__NR_SYSV + 21)
|
292 |
|
|
#define __NR_SYSV_umount (__NR_SYSV + 22)
|
293 |
|
|
#define __NR_SYSV_setuid (__NR_SYSV + 23)
|
294 |
|
|
#define __NR_SYSV_getuid (__NR_SYSV + 24)
|
295 |
|
|
#define __NR_SYSV_stime (__NR_SYSV + 25)
|
296 |
|
|
#define __NR_SYSV_ptrace (__NR_SYSV + 26)
|
297 |
|
|
#define __NR_SYSV_alarm (__NR_SYSV + 27)
|
298 |
|
|
#define __NR_SYSV_fstat (__NR_SYSV + 28)
|
299 |
|
|
#define __NR_SYSV_pause (__NR_SYSV + 29)
|
300 |
|
|
#define __NR_SYSV_utime (__NR_SYSV + 30)
|
301 |
|
|
#define __NR_SYSV_stty (__NR_SYSV + 31)
|
302 |
|
|
#define __NR_SYSV_gtty (__NR_SYSV + 32)
|
303 |
|
|
#define __NR_SYSV_access (__NR_SYSV + 33)
|
304 |
|
|
#define __NR_SYSV_nice (__NR_SYSV + 34)
|
305 |
|
|
#define __NR_SYSV_statfs (__NR_SYSV + 35)
|
306 |
|
|
#define __NR_SYSV_sync (__NR_SYSV + 36)
|
307 |
|
|
#define __NR_SYSV_kill (__NR_SYSV + 37)
|
308 |
|
|
#define __NR_SYSV_fstatfs (__NR_SYSV + 38)
|
309 |
|
|
#define __NR_SYSV_setpgrp (__NR_SYSV + 39)
|
310 |
|
|
#define __NR_SYSV_syssgi (__NR_SYSV + 40)
|
311 |
|
|
#define __NR_SYSV_dup (__NR_SYSV + 41)
|
312 |
|
|
#define __NR_SYSV_pipe (__NR_SYSV + 42)
|
313 |
|
|
#define __NR_SYSV_times (__NR_SYSV + 43)
|
314 |
|
|
#define __NR_SYSV_profil (__NR_SYSV + 44)
|
315 |
|
|
#define __NR_SYSV_plock (__NR_SYSV + 45)
|
316 |
|
|
#define __NR_SYSV_setgid (__NR_SYSV + 46)
|
317 |
|
|
#define __NR_SYSV_getgid (__NR_SYSV + 47)
|
318 |
|
|
#define __NR_SYSV_sig (__NR_SYSV + 48)
|
319 |
|
|
#define __NR_SYSV_msgsys (__NR_SYSV + 49)
|
320 |
|
|
#define __NR_SYSV_sysmips (__NR_SYSV + 50)
|
321 |
|
|
#define __NR_SYSV_acct (__NR_SYSV + 51)
|
322 |
|
|
#define __NR_SYSV_shmsys (__NR_SYSV + 52)
|
323 |
|
|
#define __NR_SYSV_semsys (__NR_SYSV + 53)
|
324 |
|
|
#define __NR_SYSV_ioctl (__NR_SYSV + 54)
|
325 |
|
|
#define __NR_SYSV_uadmin (__NR_SYSV + 55)
|
326 |
|
|
#define __NR_SYSV_sysmp (__NR_SYSV + 56)
|
327 |
|
|
#define __NR_SYSV_utssys (__NR_SYSV + 57)
|
328 |
|
|
#define __NR_SYSV_USG_reserved1 (__NR_SYSV + 58)
|
329 |
|
|
#define __NR_SYSV_execve (__NR_SYSV + 59)
|
330 |
|
|
#define __NR_SYSV_umask (__NR_SYSV + 60)
|
331 |
|
|
#define __NR_SYSV_chroot (__NR_SYSV + 61)
|
332 |
|
|
#define __NR_SYSV_fcntl (__NR_SYSV + 62)
|
333 |
|
|
#define __NR_SYSV_ulimit (__NR_SYSV + 63)
|
334 |
|
|
#define __NR_SYSV_SAFARI4_reserved1 (__NR_SYSV + 64)
|
335 |
|
|
#define __NR_SYSV_SAFARI4_reserved2 (__NR_SYSV + 65)
|
336 |
|
|
#define __NR_SYSV_SAFARI4_reserved3 (__NR_SYSV + 66)
|
337 |
|
|
#define __NR_SYSV_SAFARI4_reserved4 (__NR_SYSV + 67)
|
338 |
|
|
#define __NR_SYSV_SAFARI4_reserved5 (__NR_SYSV + 68)
|
339 |
|
|
#define __NR_SYSV_SAFARI4_reserved6 (__NR_SYSV + 69)
|
340 |
|
|
#define __NR_SYSV_advfs (__NR_SYSV + 70)
|
341 |
|
|
#define __NR_SYSV_unadvfs (__NR_SYSV + 71)
|
342 |
|
|
#define __NR_SYSV_rmount (__NR_SYSV + 72)
|
343 |
|
|
#define __NR_SYSV_rumount (__NR_SYSV + 73)
|
344 |
|
|
#define __NR_SYSV_rfstart (__NR_SYSV + 74)
|
345 |
|
|
#define __NR_SYSV_getrlimit64 (__NR_SYSV + 75)
|
346 |
|
|
#define __NR_SYSV_setrlimit64 (__NR_SYSV + 76)
|
347 |
|
|
#define __NR_SYSV_nanosleep (__NR_SYSV + 77)
|
348 |
|
|
#define __NR_SYSV_lseek64 (__NR_SYSV + 78)
|
349 |
|
|
#define __NR_SYSV_rmdir (__NR_SYSV + 79)
|
350 |
|
|
#define __NR_SYSV_mkdir (__NR_SYSV + 80)
|
351 |
|
|
#define __NR_SYSV_getdents (__NR_SYSV + 81)
|
352 |
|
|
#define __NR_SYSV_sginap (__NR_SYSV + 82)
|
353 |
|
|
#define __NR_SYSV_sgikopt (__NR_SYSV + 83)
|
354 |
|
|
#define __NR_SYSV_sysfs (__NR_SYSV + 84)
|
355 |
|
|
#define __NR_SYSV_getmsg (__NR_SYSV + 85)
|
356 |
|
|
#define __NR_SYSV_putmsg (__NR_SYSV + 86)
|
357 |
|
|
#define __NR_SYSV_poll (__NR_SYSV + 87)
|
358 |
|
|
#define __NR_SYSV_sigreturn (__NR_SYSV + 88)
|
359 |
|
|
#define __NR_SYSV_accept (__NR_SYSV + 89)
|
360 |
|
|
#define __NR_SYSV_bind (__NR_SYSV + 90)
|
361 |
|
|
#define __NR_SYSV_connect (__NR_SYSV + 91)
|
362 |
|
|
#define __NR_SYSV_gethostid (__NR_SYSV + 92)
|
363 |
|
|
#define __NR_SYSV_getpeername (__NR_SYSV + 93)
|
364 |
|
|
#define __NR_SYSV_getsockname (__NR_SYSV + 94)
|
365 |
|
|
#define __NR_SYSV_getsockopt (__NR_SYSV + 95)
|
366 |
|
|
#define __NR_SYSV_listen (__NR_SYSV + 96)
|
367 |
|
|
#define __NR_SYSV_recv (__NR_SYSV + 97)
|
368 |
|
|
#define __NR_SYSV_recvfrom (__NR_SYSV + 98)
|
369 |
|
|
#define __NR_SYSV_recvmsg (__NR_SYSV + 99)
|
370 |
|
|
#define __NR_SYSV_select (__NR_SYSV + 100)
|
371 |
|
|
#define __NR_SYSV_send (__NR_SYSV + 101)
|
372 |
|
|
#define __NR_SYSV_sendmsg (__NR_SYSV + 102)
|
373 |
|
|
#define __NR_SYSV_sendto (__NR_SYSV + 103)
|
374 |
|
|
#define __NR_SYSV_sethostid (__NR_SYSV + 104)
|
375 |
|
|
#define __NR_SYSV_setsockopt (__NR_SYSV + 105)
|
376 |
|
|
#define __NR_SYSV_shutdown (__NR_SYSV + 106)
|
377 |
|
|
#define __NR_SYSV_socket (__NR_SYSV + 107)
|
378 |
|
|
#define __NR_SYSV_gethostname (__NR_SYSV + 108)
|
379 |
|
|
#define __NR_SYSV_sethostname (__NR_SYSV + 109)
|
380 |
|
|
#define __NR_SYSV_getdomainname (__NR_SYSV + 110)
|
381 |
|
|
#define __NR_SYSV_setdomainname (__NR_SYSV + 111)
|
382 |
|
|
#define __NR_SYSV_truncate (__NR_SYSV + 112)
|
383 |
|
|
#define __NR_SYSV_ftruncate (__NR_SYSV + 113)
|
384 |
|
|
#define __NR_SYSV_rename (__NR_SYSV + 114)
|
385 |
|
|
#define __NR_SYSV_symlink (__NR_SYSV + 115)
|
386 |
|
|
#define __NR_SYSV_readlink (__NR_SYSV + 116)
|
387 |
|
|
#define __NR_SYSV_lstat (__NR_SYSV + 117)
|
388 |
|
|
#define __NR_SYSV_nfsmount (__NR_SYSV + 118)
|
389 |
|
|
#define __NR_SYSV_nfssvc (__NR_SYSV + 119)
|
390 |
|
|
#define __NR_SYSV_getfh (__NR_SYSV + 120)
|
391 |
|
|
#define __NR_SYSV_async_daemon (__NR_SYSV + 121)
|
392 |
|
|
#define __NR_SYSV_exportfs (__NR_SYSV + 122)
|
393 |
|
|
#define __NR_SYSV_setregid (__NR_SYSV + 123)
|
394 |
|
|
#define __NR_SYSV_setreuid (__NR_SYSV + 124)
|
395 |
|
|
#define __NR_SYSV_getitimer (__NR_SYSV + 125)
|
396 |
|
|
#define __NR_SYSV_setitimer (__NR_SYSV + 126)
|
397 |
|
|
#define __NR_SYSV_adjtime (__NR_SYSV + 127)
|
398 |
|
|
#define __NR_SYSV_BSD_getime (__NR_SYSV + 128)
|
399 |
|
|
#define __NR_SYSV_sproc (__NR_SYSV + 129)
|
400 |
|
|
#define __NR_SYSV_prctl (__NR_SYSV + 130)
|
401 |
|
|
#define __NR_SYSV_procblk (__NR_SYSV + 131)
|
402 |
|
|
#define __NR_SYSV_sprocsp (__NR_SYSV + 132)
|
403 |
|
|
#define __NR_SYSV_sgigsc (__NR_SYSV + 133)
|
404 |
|
|
#define __NR_SYSV_mmap (__NR_SYSV + 134)
|
405 |
|
|
#define __NR_SYSV_munmap (__NR_SYSV + 135)
|
406 |
|
|
#define __NR_SYSV_mprotect (__NR_SYSV + 136)
|
407 |
|
|
#define __NR_SYSV_msync (__NR_SYSV + 137)
|
408 |
|
|
#define __NR_SYSV_madvise (__NR_SYSV + 138)
|
409 |
|
|
#define __NR_SYSV_pagelock (__NR_SYSV + 139)
|
410 |
|
|
#define __NR_SYSV_getpagesize (__NR_SYSV + 140)
|
411 |
|
|
#define __NR_SYSV_quotactl (__NR_SYSV + 141)
|
412 |
|
|
#define __NR_SYSV_libdetach (__NR_SYSV + 142)
|
413 |
|
|
#define __NR_SYSV_BSDgetpgrp (__NR_SYSV + 143)
|
414 |
|
|
#define __NR_SYSV_BSDsetpgrp (__NR_SYSV + 144)
|
415 |
|
|
#define __NR_SYSV_vhangup (__NR_SYSV + 145)
|
416 |
|
|
#define __NR_SYSV_fsync (__NR_SYSV + 146)
|
417 |
|
|
#define __NR_SYSV_fchdir (__NR_SYSV + 147)
|
418 |
|
|
#define __NR_SYSV_getrlimit (__NR_SYSV + 148)
|
419 |
|
|
#define __NR_SYSV_setrlimit (__NR_SYSV + 149)
|
420 |
|
|
#define __NR_SYSV_cacheflush (__NR_SYSV + 150)
|
421 |
|
|
#define __NR_SYSV_cachectl (__NR_SYSV + 151)
|
422 |
|
|
#define __NR_SYSV_fchown (__NR_SYSV + 152)
|
423 |
|
|
#define __NR_SYSV_fchmod (__NR_SYSV + 153)
|
424 |
|
|
#define __NR_SYSV_wait3 (__NR_SYSV + 154)
|
425 |
|
|
#define __NR_SYSV_socketpair (__NR_SYSV + 155)
|
426 |
|
|
#define __NR_SYSV_sysinfo (__NR_SYSV + 156)
|
427 |
|
|
#define __NR_SYSV_nuname (__NR_SYSV + 157)
|
428 |
|
|
#define __NR_SYSV_xstat (__NR_SYSV + 158)
|
429 |
|
|
#define __NR_SYSV_lxstat (__NR_SYSV + 159)
|
430 |
|
|
#define __NR_SYSV_fxstat (__NR_SYSV + 160)
|
431 |
|
|
#define __NR_SYSV_xmknod (__NR_SYSV + 161)
|
432 |
|
|
#define __NR_SYSV_ksigaction (__NR_SYSV + 162)
|
433 |
|
|
#define __NR_SYSV_sigpending (__NR_SYSV + 163)
|
434 |
|
|
#define __NR_SYSV_sigprocmask (__NR_SYSV + 164)
|
435 |
|
|
#define __NR_SYSV_sigsuspend (__NR_SYSV + 165)
|
436 |
|
|
#define __NR_SYSV_sigpoll (__NR_SYSV + 166)
|
437 |
|
|
#define __NR_SYSV_swapctl (__NR_SYSV + 167)
|
438 |
|
|
#define __NR_SYSV_getcontext (__NR_SYSV + 168)
|
439 |
|
|
#define __NR_SYSV_setcontext (__NR_SYSV + 169)
|
440 |
|
|
#define __NR_SYSV_waitsys (__NR_SYSV + 170)
|
441 |
|
|
#define __NR_SYSV_sigstack (__NR_SYSV + 171)
|
442 |
|
|
#define __NR_SYSV_sigaltstack (__NR_SYSV + 172)
|
443 |
|
|
#define __NR_SYSV_sigsendset (__NR_SYSV + 173)
|
444 |
|
|
#define __NR_SYSV_statvfs (__NR_SYSV + 174)
|
445 |
|
|
#define __NR_SYSV_fstatvfs (__NR_SYSV + 175)
|
446 |
|
|
#define __NR_SYSV_getpmsg (__NR_SYSV + 176)
|
447 |
|
|
#define __NR_SYSV_putpmsg (__NR_SYSV + 177)
|
448 |
|
|
#define __NR_SYSV_lchown (__NR_SYSV + 178)
|
449 |
|
|
#define __NR_SYSV_priocntl (__NR_SYSV + 179)
|
450 |
|
|
#define __NR_SYSV_ksigqueue (__NR_SYSV + 180)
|
451 |
|
|
#define __NR_SYSV_readv (__NR_SYSV + 181)
|
452 |
|
|
#define __NR_SYSV_writev (__NR_SYSV + 182)
|
453 |
|
|
#define __NR_SYSV_truncate64 (__NR_SYSV + 183)
|
454 |
|
|
#define __NR_SYSV_ftruncate64 (__NR_SYSV + 184)
|
455 |
|
|
#define __NR_SYSV_mmap64 (__NR_SYSV + 185)
|
456 |
|
|
#define __NR_SYSV_dmi (__NR_SYSV + 186)
|
457 |
|
|
#define __NR_SYSV_pread (__NR_SYSV + 187)
|
458 |
|
|
#define __NR_SYSV_pwrite (__NR_SYSV + 188)
|
459 |
|
|
|
460 |
|
|
/*
|
461 |
|
|
* BSD 4.3 syscalls are in the range from 2000 to 2999
|
462 |
|
|
*/
|
463 |
|
|
#define __NR_BSD43 2000
|
464 |
|
|
#define __NR_BSD43_syscall (__NR_BSD43 + 0)
|
465 |
|
|
#define __NR_BSD43_exit (__NR_BSD43 + 1)
|
466 |
|
|
#define __NR_BSD43_fork (__NR_BSD43 + 2)
|
467 |
|
|
#define __NR_BSD43_read (__NR_BSD43 + 3)
|
468 |
|
|
#define __NR_BSD43_write (__NR_BSD43 + 4)
|
469 |
|
|
#define __NR_BSD43_open (__NR_BSD43 + 5)
|
470 |
|
|
#define __NR_BSD43_close (__NR_BSD43 + 6)
|
471 |
|
|
#define __NR_BSD43_wait (__NR_BSD43 + 7)
|
472 |
|
|
#define __NR_BSD43_creat (__NR_BSD43 + 8)
|
473 |
|
|
#define __NR_BSD43_link (__NR_BSD43 + 9)
|
474 |
|
|
#define __NR_BSD43_unlink (__NR_BSD43 + 10)
|
475 |
|
|
#define __NR_BSD43_exec (__NR_BSD43 + 11)
|
476 |
|
|
#define __NR_BSD43_chdir (__NR_BSD43 + 12)
|
477 |
|
|
#define __NR_BSD43_time (__NR_BSD43 + 13)
|
478 |
|
|
#define __NR_BSD43_mknod (__NR_BSD43 + 14)
|
479 |
|
|
#define __NR_BSD43_chmod (__NR_BSD43 + 15)
|
480 |
|
|
#define __NR_BSD43_chown (__NR_BSD43 + 16)
|
481 |
|
|
#define __NR_BSD43_sbreak (__NR_BSD43 + 17)
|
482 |
|
|
#define __NR_BSD43_oldstat (__NR_BSD43 + 18)
|
483 |
|
|
#define __NR_BSD43_lseek (__NR_BSD43 + 19)
|
484 |
|
|
#define __NR_BSD43_getpid (__NR_BSD43 + 20)
|
485 |
|
|
#define __NR_BSD43_oldmount (__NR_BSD43 + 21)
|
486 |
|
|
#define __NR_BSD43_umount (__NR_BSD43 + 22)
|
487 |
|
|
#define __NR_BSD43_setuid (__NR_BSD43 + 23)
|
488 |
|
|
#define __NR_BSD43_getuid (__NR_BSD43 + 24)
|
489 |
|
|
#define __NR_BSD43_stime (__NR_BSD43 + 25)
|
490 |
|
|
#define __NR_BSD43_ptrace (__NR_BSD43 + 26)
|
491 |
|
|
#define __NR_BSD43_alarm (__NR_BSD43 + 27)
|
492 |
|
|
#define __NR_BSD43_oldfstat (__NR_BSD43 + 28)
|
493 |
|
|
#define __NR_BSD43_pause (__NR_BSD43 + 29)
|
494 |
|
|
#define __NR_BSD43_utime (__NR_BSD43 + 30)
|
495 |
|
|
#define __NR_BSD43_stty (__NR_BSD43 + 31)
|
496 |
|
|
#define __NR_BSD43_gtty (__NR_BSD43 + 32)
|
497 |
|
|
#define __NR_BSD43_access (__NR_BSD43 + 33)
|
498 |
|
|
#define __NR_BSD43_nice (__NR_BSD43 + 34)
|
499 |
|
|
#define __NR_BSD43_ftime (__NR_BSD43 + 35)
|
500 |
|
|
#define __NR_BSD43_sync (__NR_BSD43 + 36)
|
501 |
|
|
#define __NR_BSD43_kill (__NR_BSD43 + 37)
|
502 |
|
|
#define __NR_BSD43_stat (__NR_BSD43 + 38)
|
503 |
|
|
#define __NR_BSD43_oldsetpgrp (__NR_BSD43 + 39)
|
504 |
|
|
#define __NR_BSD43_lstat (__NR_BSD43 + 40)
|
505 |
|
|
#define __NR_BSD43_dup (__NR_BSD43 + 41)
|
506 |
|
|
#define __NR_BSD43_pipe (__NR_BSD43 + 42)
|
507 |
|
|
#define __NR_BSD43_times (__NR_BSD43 + 43)
|
508 |
|
|
#define __NR_BSD43_profil (__NR_BSD43 + 44)
|
509 |
|
|
#define __NR_BSD43_msgsys (__NR_BSD43 + 45)
|
510 |
|
|
#define __NR_BSD43_setgid (__NR_BSD43 + 46)
|
511 |
|
|
#define __NR_BSD43_getgid (__NR_BSD43 + 47)
|
512 |
|
|
#define __NR_BSD43_ssig (__NR_BSD43 + 48)
|
513 |
|
|
#define __NR_BSD43_reserved1 (__NR_BSD43 + 49)
|
514 |
|
|
#define __NR_BSD43_reserved2 (__NR_BSD43 + 50)
|
515 |
|
|
#define __NR_BSD43_sysacct (__NR_BSD43 + 51)
|
516 |
|
|
#define __NR_BSD43_phys (__NR_BSD43 + 52)
|
517 |
|
|
#define __NR_BSD43_lock (__NR_BSD43 + 53)
|
518 |
|
|
#define __NR_BSD43_ioctl (__NR_BSD43 + 54)
|
519 |
|
|
#define __NR_BSD43_reboot (__NR_BSD43 + 55)
|
520 |
|
|
#define __NR_BSD43_mpxchan (__NR_BSD43 + 56)
|
521 |
|
|
#define __NR_BSD43_symlink (__NR_BSD43 + 57)
|
522 |
|
|
#define __NR_BSD43_readlink (__NR_BSD43 + 58)
|
523 |
|
|
#define __NR_BSD43_execve (__NR_BSD43 + 59)
|
524 |
|
|
#define __NR_BSD43_umask (__NR_BSD43 + 60)
|
525 |
|
|
#define __NR_BSD43_chroot (__NR_BSD43 + 61)
|
526 |
|
|
#define __NR_BSD43_fstat (__NR_BSD43 + 62)
|
527 |
|
|
#define __NR_BSD43_reserved3 (__NR_BSD43 + 63)
|
528 |
|
|
#define __NR_BSD43_getpagesize (__NR_BSD43 + 64)
|
529 |
|
|
#define __NR_BSD43_mremap (__NR_BSD43 + 65)
|
530 |
|
|
#define __NR_BSD43_vfork (__NR_BSD43 + 66)
|
531 |
|
|
#define __NR_BSD43_vread (__NR_BSD43 + 67)
|
532 |
|
|
#define __NR_BSD43_vwrite (__NR_BSD43 + 68)
|
533 |
|
|
#define __NR_BSD43_sbrk (__NR_BSD43 + 69)
|
534 |
|
|
#define __NR_BSD43_sstk (__NR_BSD43 + 70)
|
535 |
|
|
#define __NR_BSD43_mmap (__NR_BSD43 + 71)
|
536 |
|
|
#define __NR_BSD43_vadvise (__NR_BSD43 + 72)
|
537 |
|
|
#define __NR_BSD43_munmap (__NR_BSD43 + 73)
|
538 |
|
|
#define __NR_BSD43_mprotect (__NR_BSD43 + 74)
|
539 |
|
|
#define __NR_BSD43_madvise (__NR_BSD43 + 75)
|
540 |
|
|
#define __NR_BSD43_vhangup (__NR_BSD43 + 76)
|
541 |
|
|
#define __NR_BSD43_vlimit (__NR_BSD43 + 77)
|
542 |
|
|
#define __NR_BSD43_mincore (__NR_BSD43 + 78)
|
543 |
|
|
#define __NR_BSD43_getgroups (__NR_BSD43 + 79)
|
544 |
|
|
#define __NR_BSD43_setgroups (__NR_BSD43 + 80)
|
545 |
|
|
#define __NR_BSD43_getpgrp (__NR_BSD43 + 81)
|
546 |
|
|
#define __NR_BSD43_setpgrp (__NR_BSD43 + 82)
|
547 |
|
|
#define __NR_BSD43_setitimer (__NR_BSD43 + 83)
|
548 |
|
|
#define __NR_BSD43_wait3 (__NR_BSD43 + 84)
|
549 |
|
|
#define __NR_BSD43_swapon (__NR_BSD43 + 85)
|
550 |
|
|
#define __NR_BSD43_getitimer (__NR_BSD43 + 86)
|
551 |
|
|
#define __NR_BSD43_gethostname (__NR_BSD43 + 87)
|
552 |
|
|
#define __NR_BSD43_sethostname (__NR_BSD43 + 88)
|
553 |
|
|
#define __NR_BSD43_getdtablesize (__NR_BSD43 + 89)
|
554 |
|
|
#define __NR_BSD43_dup2 (__NR_BSD43 + 90)
|
555 |
|
|
#define __NR_BSD43_getdopt (__NR_BSD43 + 91)
|
556 |
|
|
#define __NR_BSD43_fcntl (__NR_BSD43 + 92)
|
557 |
|
|
#define __NR_BSD43_select (__NR_BSD43 + 93)
|
558 |
|
|
#define __NR_BSD43_setdopt (__NR_BSD43 + 94)
|
559 |
|
|
#define __NR_BSD43_fsync (__NR_BSD43 + 95)
|
560 |
|
|
#define __NR_BSD43_setpriority (__NR_BSD43 + 96)
|
561 |
|
|
#define __NR_BSD43_socket (__NR_BSD43 + 97)
|
562 |
|
|
#define __NR_BSD43_connect (__NR_BSD43 + 98)
|
563 |
|
|
#define __NR_BSD43_oldaccept (__NR_BSD43 + 99)
|
564 |
|
|
#define __NR_BSD43_getpriority (__NR_BSD43 + 100)
|
565 |
|
|
#define __NR_BSD43_send (__NR_BSD43 + 101)
|
566 |
|
|
#define __NR_BSD43_recv (__NR_BSD43 + 102)
|
567 |
|
|
#define __NR_BSD43_sigreturn (__NR_BSD43 + 103)
|
568 |
|
|
#define __NR_BSD43_bind (__NR_BSD43 + 104)
|
569 |
|
|
#define __NR_BSD43_setsockopt (__NR_BSD43 + 105)
|
570 |
|
|
#define __NR_BSD43_listen (__NR_BSD43 + 106)
|
571 |
|
|
#define __NR_BSD43_vtimes (__NR_BSD43 + 107)
|
572 |
|
|
#define __NR_BSD43_sigvec (__NR_BSD43 + 108)
|
573 |
|
|
#define __NR_BSD43_sigblock (__NR_BSD43 + 109)
|
574 |
|
|
#define __NR_BSD43_sigsetmask (__NR_BSD43 + 110)
|
575 |
|
|
#define __NR_BSD43_sigpause (__NR_BSD43 + 111)
|
576 |
|
|
#define __NR_BSD43_sigstack (__NR_BSD43 + 112)
|
577 |
|
|
#define __NR_BSD43_oldrecvmsg (__NR_BSD43 + 113)
|
578 |
|
|
#define __NR_BSD43_oldsendmsg (__NR_BSD43 + 114)
|
579 |
|
|
#define __NR_BSD43_vtrace (__NR_BSD43 + 115)
|
580 |
|
|
#define __NR_BSD43_gettimeofday (__NR_BSD43 + 116)
|
581 |
|
|
#define __NR_BSD43_getrusage (__NR_BSD43 + 117)
|
582 |
|
|
#define __NR_BSD43_getsockopt (__NR_BSD43 + 118)
|
583 |
|
|
#define __NR_BSD43_reserved4 (__NR_BSD43 + 119)
|
584 |
|
|
#define __NR_BSD43_readv (__NR_BSD43 + 120)
|
585 |
|
|
#define __NR_BSD43_writev (__NR_BSD43 + 121)
|
586 |
|
|
#define __NR_BSD43_settimeofday (__NR_BSD43 + 122)
|
587 |
|
|
#define __NR_BSD43_fchown (__NR_BSD43 + 123)
|
588 |
|
|
#define __NR_BSD43_fchmod (__NR_BSD43 + 124)
|
589 |
|
|
#define __NR_BSD43_oldrecvfrom (__NR_BSD43 + 125)
|
590 |
|
|
#define __NR_BSD43_setreuid (__NR_BSD43 + 126)
|
591 |
|
|
#define __NR_BSD43_setregid (__NR_BSD43 + 127)
|
592 |
|
|
#define __NR_BSD43_rename (__NR_BSD43 + 128)
|
593 |
|
|
#define __NR_BSD43_truncate (__NR_BSD43 + 129)
|
594 |
|
|
#define __NR_BSD43_ftruncate (__NR_BSD43 + 130)
|
595 |
|
|
#define __NR_BSD43_flock (__NR_BSD43 + 131)
|
596 |
|
|
#define __NR_BSD43_semsys (__NR_BSD43 + 132)
|
597 |
|
|
#define __NR_BSD43_sendto (__NR_BSD43 + 133)
|
598 |
|
|
#define __NR_BSD43_shutdown (__NR_BSD43 + 134)
|
599 |
|
|
#define __NR_BSD43_socketpair (__NR_BSD43 + 135)
|
600 |
|
|
#define __NR_BSD43_mkdir (__NR_BSD43 + 136)
|
601 |
|
|
#define __NR_BSD43_rmdir (__NR_BSD43 + 137)
|
602 |
|
|
#define __NR_BSD43_utimes (__NR_BSD43 + 138)
|
603 |
|
|
#define __NR_BSD43_sigcleanup (__NR_BSD43 + 139)
|
604 |
|
|
#define __NR_BSD43_adjtime (__NR_BSD43 + 140)
|
605 |
|
|
#define __NR_BSD43_oldgetpeername (__NR_BSD43 + 141)
|
606 |
|
|
#define __NR_BSD43_gethostid (__NR_BSD43 + 142)
|
607 |
|
|
#define __NR_BSD43_sethostid (__NR_BSD43 + 143)
|
608 |
|
|
#define __NR_BSD43_getrlimit (__NR_BSD43 + 144)
|
609 |
|
|
#define __NR_BSD43_setrlimit (__NR_BSD43 + 145)
|
610 |
|
|
#define __NR_BSD43_killpg (__NR_BSD43 + 146)
|
611 |
|
|
#define __NR_BSD43_shmsys (__NR_BSD43 + 147)
|
612 |
|
|
#define __NR_BSD43_quota (__NR_BSD43 + 148)
|
613 |
|
|
#define __NR_BSD43_qquota (__NR_BSD43 + 149)
|
614 |
|
|
#define __NR_BSD43_oldgetsockname (__NR_BSD43 + 150)
|
615 |
|
|
#define __NR_BSD43_sysmips (__NR_BSD43 + 151)
|
616 |
|
|
#define __NR_BSD43_cacheflush (__NR_BSD43 + 152)
|
617 |
|
|
#define __NR_BSD43_cachectl (__NR_BSD43 + 153)
|
618 |
|
|
#define __NR_BSD43_debug (__NR_BSD43 + 154)
|
619 |
|
|
#define __NR_BSD43_reserved5 (__NR_BSD43 + 155)
|
620 |
|
|
#define __NR_BSD43_reserved6 (__NR_BSD43 + 156)
|
621 |
|
|
#define __NR_BSD43_nfs_mount (__NR_BSD43 + 157)
|
622 |
|
|
#define __NR_BSD43_nfs_svc (__NR_BSD43 + 158)
|
623 |
|
|
#define __NR_BSD43_getdirentries (__NR_BSD43 + 159)
|
624 |
|
|
#define __NR_BSD43_statfs (__NR_BSD43 + 160)
|
625 |
|
|
#define __NR_BSD43_fstatfs (__NR_BSD43 + 161)
|
626 |
|
|
#define __NR_BSD43_unmount (__NR_BSD43 + 162)
|
627 |
|
|
#define __NR_BSD43_async_daemon (__NR_BSD43 + 163)
|
628 |
|
|
#define __NR_BSD43_nfs_getfh (__NR_BSD43 + 164)
|
629 |
|
|
#define __NR_BSD43_getdomainname (__NR_BSD43 + 165)
|
630 |
|
|
#define __NR_BSD43_setdomainname (__NR_BSD43 + 166)
|
631 |
|
|
#define __NR_BSD43_pcfs_mount (__NR_BSD43 + 167)
|
632 |
|
|
#define __NR_BSD43_quotactl (__NR_BSD43 + 168)
|
633 |
|
|
#define __NR_BSD43_oldexportfs (__NR_BSD43 + 169)
|
634 |
|
|
#define __NR_BSD43_smount (__NR_BSD43 + 170)
|
635 |
|
|
#define __NR_BSD43_mipshwconf (__NR_BSD43 + 171)
|
636 |
|
|
#define __NR_BSD43_exportfs (__NR_BSD43 + 172)
|
637 |
|
|
#define __NR_BSD43_nfsfh_open (__NR_BSD43 + 173)
|
638 |
|
|
#define __NR_BSD43_libattach (__NR_BSD43 + 174)
|
639 |
|
|
#define __NR_BSD43_libdetach (__NR_BSD43 + 175)
|
640 |
|
|
#define __NR_BSD43_accept (__NR_BSD43 + 176)
|
641 |
|
|
#define __NR_BSD43_reserved7 (__NR_BSD43 + 177)
|
642 |
|
|
#define __NR_BSD43_reserved8 (__NR_BSD43 + 178)
|
643 |
|
|
#define __NR_BSD43_recvmsg (__NR_BSD43 + 179)
|
644 |
|
|
#define __NR_BSD43_recvfrom (__NR_BSD43 + 180)
|
645 |
|
|
#define __NR_BSD43_sendmsg (__NR_BSD43 + 181)
|
646 |
|
|
#define __NR_BSD43_getpeername (__NR_BSD43 + 182)
|
647 |
|
|
#define __NR_BSD43_getsockname (__NR_BSD43 + 183)
|
648 |
|
|
#define __NR_BSD43_aread (__NR_BSD43 + 184)
|
649 |
|
|
#define __NR_BSD43_awrite (__NR_BSD43 + 185)
|
650 |
|
|
#define __NR_BSD43_listio (__NR_BSD43 + 186)
|
651 |
|
|
#define __NR_BSD43_acancel (__NR_BSD43 + 187)
|
652 |
|
|
#define __NR_BSD43_astatus (__NR_BSD43 + 188)
|
653 |
|
|
#define __NR_BSD43_await (__NR_BSD43 + 189)
|
654 |
|
|
#define __NR_BSD43_areadv (__NR_BSD43 + 190)
|
655 |
|
|
#define __NR_BSD43_awritev (__NR_BSD43 + 191)
|
656 |
|
|
|
657 |
|
|
/*
|
658 |
|
|
* POSIX syscalls are in the range from 3000 to 3999
|
659 |
|
|
*/
|
660 |
|
|
#define __NR_POSIX 3000
|
661 |
|
|
#define __NR_POSIX_syscall (__NR_POSIX + 0)
|
662 |
|
|
#define __NR_POSIX_exit (__NR_POSIX + 1)
|
663 |
|
|
#define __NR_POSIX_fork (__NR_POSIX + 2)
|
664 |
|
|
#define __NR_POSIX_read (__NR_POSIX + 3)
|
665 |
|
|
#define __NR_POSIX_write (__NR_POSIX + 4)
|
666 |
|
|
#define __NR_POSIX_open (__NR_POSIX + 5)
|
667 |
|
|
#define __NR_POSIX_close (__NR_POSIX + 6)
|
668 |
|
|
#define __NR_POSIX_wait (__NR_POSIX + 7)
|
669 |
|
|
#define __NR_POSIX_creat (__NR_POSIX + 8)
|
670 |
|
|
#define __NR_POSIX_link (__NR_POSIX + 9)
|
671 |
|
|
#define __NR_POSIX_unlink (__NR_POSIX + 10)
|
672 |
|
|
#define __NR_POSIX_exec (__NR_POSIX + 11)
|
673 |
|
|
#define __NR_POSIX_chdir (__NR_POSIX + 12)
|
674 |
|
|
#define __NR_POSIX_gtime (__NR_POSIX + 13)
|
675 |
|
|
#define __NR_POSIX_mknod (__NR_POSIX + 14)
|
676 |
|
|
#define __NR_POSIX_chmod (__NR_POSIX + 15)
|
677 |
|
|
#define __NR_POSIX_chown (__NR_POSIX + 16)
|
678 |
|
|
#define __NR_POSIX_sbreak (__NR_POSIX + 17)
|
679 |
|
|
#define __NR_POSIX_stat (__NR_POSIX + 18)
|
680 |
|
|
#define __NR_POSIX_lseek (__NR_POSIX + 19)
|
681 |
|
|
#define __NR_POSIX_getpid (__NR_POSIX + 20)
|
682 |
|
|
#define __NR_POSIX_mount (__NR_POSIX + 21)
|
683 |
|
|
#define __NR_POSIX_umount (__NR_POSIX + 22)
|
684 |
|
|
#define __NR_POSIX_setuid (__NR_POSIX + 23)
|
685 |
|
|
#define __NR_POSIX_getuid (__NR_POSIX + 24)
|
686 |
|
|
#define __NR_POSIX_stime (__NR_POSIX + 25)
|
687 |
|
|
#define __NR_POSIX_ptrace (__NR_POSIX + 26)
|
688 |
|
|
#define __NR_POSIX_alarm (__NR_POSIX + 27)
|
689 |
|
|
#define __NR_POSIX_fstat (__NR_POSIX + 28)
|
690 |
|
|
#define __NR_POSIX_pause (__NR_POSIX + 29)
|
691 |
|
|
#define __NR_POSIX_utime (__NR_POSIX + 30)
|
692 |
|
|
#define __NR_POSIX_stty (__NR_POSIX + 31)
|
693 |
|
|
#define __NR_POSIX_gtty (__NR_POSIX + 32)
|
694 |
|
|
#define __NR_POSIX_access (__NR_POSIX + 33)
|
695 |
|
|
#define __NR_POSIX_nice (__NR_POSIX + 34)
|
696 |
|
|
#define __NR_POSIX_statfs (__NR_POSIX + 35)
|
697 |
|
|
#define __NR_POSIX_sync (__NR_POSIX + 36)
|
698 |
|
|
#define __NR_POSIX_kill (__NR_POSIX + 37)
|
699 |
|
|
#define __NR_POSIX_fstatfs (__NR_POSIX + 38)
|
700 |
|
|
#define __NR_POSIX_getpgrp (__NR_POSIX + 39)
|
701 |
|
|
#define __NR_POSIX_syssgi (__NR_POSIX + 40)
|
702 |
|
|
#define __NR_POSIX_dup (__NR_POSIX + 41)
|
703 |
|
|
#define __NR_POSIX_pipe (__NR_POSIX + 42)
|
704 |
|
|
#define __NR_POSIX_times (__NR_POSIX + 43)
|
705 |
|
|
#define __NR_POSIX_profil (__NR_POSIX + 44)
|
706 |
|
|
#define __NR_POSIX_lock (__NR_POSIX + 45)
|
707 |
|
|
#define __NR_POSIX_setgid (__NR_POSIX + 46)
|
708 |
|
|
#define __NR_POSIX_getgid (__NR_POSIX + 47)
|
709 |
|
|
#define __NR_POSIX_sig (__NR_POSIX + 48)
|
710 |
|
|
#define __NR_POSIX_msgsys (__NR_POSIX + 49)
|
711 |
|
|
#define __NR_POSIX_sysmips (__NR_POSIX + 50)
|
712 |
|
|
#define __NR_POSIX_sysacct (__NR_POSIX + 51)
|
713 |
|
|
#define __NR_POSIX_shmsys (__NR_POSIX + 52)
|
714 |
|
|
#define __NR_POSIX_semsys (__NR_POSIX + 53)
|
715 |
|
|
#define __NR_POSIX_ioctl (__NR_POSIX + 54)
|
716 |
|
|
#define __NR_POSIX_uadmin (__NR_POSIX + 55)
|
717 |
|
|
#define __NR_POSIX_exch (__NR_POSIX + 56)
|
718 |
|
|
#define __NR_POSIX_utssys (__NR_POSIX + 57)
|
719 |
|
|
#define __NR_POSIX_USG_reserved1 (__NR_POSIX + 58)
|
720 |
|
|
#define __NR_POSIX_exece (__NR_POSIX + 59)
|
721 |
|
|
#define __NR_POSIX_umask (__NR_POSIX + 60)
|
722 |
|
|
#define __NR_POSIX_chroot (__NR_POSIX + 61)
|
723 |
|
|
#define __NR_POSIX_fcntl (__NR_POSIX + 62)
|
724 |
|
|
#define __NR_POSIX_ulimit (__NR_POSIX + 63)
|
725 |
|
|
#define __NR_POSIX_SAFARI4_reserved1 (__NR_POSIX + 64)
|
726 |
|
|
#define __NR_POSIX_SAFARI4_reserved2 (__NR_POSIX + 65)
|
727 |
|
|
#define __NR_POSIX_SAFARI4_reserved3 (__NR_POSIX + 66)
|
728 |
|
|
#define __NR_POSIX_SAFARI4_reserved4 (__NR_POSIX + 67)
|
729 |
|
|
#define __NR_POSIX_SAFARI4_reserved5 (__NR_POSIX + 68)
|
730 |
|
|
#define __NR_POSIX_SAFARI4_reserved6 (__NR_POSIX + 69)
|
731 |
|
|
#define __NR_POSIX_advfs (__NR_POSIX + 70)
|
732 |
|
|
#define __NR_POSIX_unadvfs (__NR_POSIX + 71)
|
733 |
|
|
#define __NR_POSIX_rmount (__NR_POSIX + 72)
|
734 |
|
|
#define __NR_POSIX_rumount (__NR_POSIX + 73)
|
735 |
|
|
#define __NR_POSIX_rfstart (__NR_POSIX + 74)
|
736 |
|
|
#define __NR_POSIX_reserved1 (__NR_POSIX + 75)
|
737 |
|
|
#define __NR_POSIX_rdebug (__NR_POSIX + 76)
|
738 |
|
|
#define __NR_POSIX_rfstop (__NR_POSIX + 77)
|
739 |
|
|
#define __NR_POSIX_rfsys (__NR_POSIX + 78)
|
740 |
|
|
#define __NR_POSIX_rmdir (__NR_POSIX + 79)
|
741 |
|
|
#define __NR_POSIX_mkdir (__NR_POSIX + 80)
|
742 |
|
|
#define __NR_POSIX_getdents (__NR_POSIX + 81)
|
743 |
|
|
#define __NR_POSIX_sginap (__NR_POSIX + 82)
|
744 |
|
|
#define __NR_POSIX_sgikopt (__NR_POSIX + 83)
|
745 |
|
|
#define __NR_POSIX_sysfs (__NR_POSIX + 84)
|
746 |
|
|
#define __NR_POSIX_getmsg (__NR_POSIX + 85)
|
747 |
|
|
#define __NR_POSIX_putmsg (__NR_POSIX + 86)
|
748 |
|
|
#define __NR_POSIX_poll (__NR_POSIX + 87)
|
749 |
|
|
#define __NR_POSIX_sigreturn (__NR_POSIX + 88)
|
750 |
|
|
#define __NR_POSIX_accept (__NR_POSIX + 89)
|
751 |
|
|
#define __NR_POSIX_bind (__NR_POSIX + 90)
|
752 |
|
|
#define __NR_POSIX_connect (__NR_POSIX + 91)
|
753 |
|
|
#define __NR_POSIX_gethostid (__NR_POSIX + 92)
|
754 |
|
|
#define __NR_POSIX_getpeername (__NR_POSIX + 93)
|
755 |
|
|
#define __NR_POSIX_getsockname (__NR_POSIX + 94)
|
756 |
|
|
#define __NR_POSIX_getsockopt (__NR_POSIX + 95)
|
757 |
|
|
#define __NR_POSIX_listen (__NR_POSIX + 96)
|
758 |
|
|
#define __NR_POSIX_recv (__NR_POSIX + 97)
|
759 |
|
|
#define __NR_POSIX_recvfrom (__NR_POSIX + 98)
|
760 |
|
|
#define __NR_POSIX_recvmsg (__NR_POSIX + 99)
|
761 |
|
|
#define __NR_POSIX_select (__NR_POSIX + 100)
|
762 |
|
|
#define __NR_POSIX_send (__NR_POSIX + 101)
|
763 |
|
|
#define __NR_POSIX_sendmsg (__NR_POSIX + 102)
|
764 |
|
|
#define __NR_POSIX_sendto (__NR_POSIX + 103)
|
765 |
|
|
#define __NR_POSIX_sethostid (__NR_POSIX + 104)
|
766 |
|
|
#define __NR_POSIX_setsockopt (__NR_POSIX + 105)
|
767 |
|
|
#define __NR_POSIX_shutdown (__NR_POSIX + 106)
|
768 |
|
|
#define __NR_POSIX_socket (__NR_POSIX + 107)
|
769 |
|
|
#define __NR_POSIX_gethostname (__NR_POSIX + 108)
|
770 |
|
|
#define __NR_POSIX_sethostname (__NR_POSIX + 109)
|
771 |
|
|
#define __NR_POSIX_getdomainname (__NR_POSIX + 110)
|
772 |
|
|
#define __NR_POSIX_setdomainname (__NR_POSIX + 111)
|
773 |
|
|
#define __NR_POSIX_truncate (__NR_POSIX + 112)
|
774 |
|
|
#define __NR_POSIX_ftruncate (__NR_POSIX + 113)
|
775 |
|
|
#define __NR_POSIX_rename (__NR_POSIX + 114)
|
776 |
|
|
#define __NR_POSIX_symlink (__NR_POSIX + 115)
|
777 |
|
|
#define __NR_POSIX_readlink (__NR_POSIX + 116)
|
778 |
|
|
#define __NR_POSIX_lstat (__NR_POSIX + 117)
|
779 |
|
|
#define __NR_POSIX_nfs_mount (__NR_POSIX + 118)
|
780 |
|
|
#define __NR_POSIX_nfs_svc (__NR_POSIX + 119)
|
781 |
|
|
#define __NR_POSIX_nfs_getfh (__NR_POSIX + 120)
|
782 |
|
|
#define __NR_POSIX_async_daemon (__NR_POSIX + 121)
|
783 |
|
|
#define __NR_POSIX_exportfs (__NR_POSIX + 122)
|
784 |
|
|
#define __NR_POSIX_SGI_setregid (__NR_POSIX + 123)
|
785 |
|
|
#define __NR_POSIX_SGI_setreuid (__NR_POSIX + 124)
|
786 |
|
|
#define __NR_POSIX_getitimer (__NR_POSIX + 125)
|
787 |
|
|
#define __NR_POSIX_setitimer (__NR_POSIX + 126)
|
788 |
|
|
#define __NR_POSIX_adjtime (__NR_POSIX + 127)
|
789 |
|
|
#define __NR_POSIX_SGI_bsdgettime (__NR_POSIX + 128)
|
790 |
|
|
#define __NR_POSIX_SGI_sproc (__NR_POSIX + 129)
|
791 |
|
|
#define __NR_POSIX_SGI_prctl (__NR_POSIX + 130)
|
792 |
|
|
#define __NR_POSIX_SGI_blkproc (__NR_POSIX + 131)
|
793 |
|
|
#define __NR_POSIX_SGI_reserved1 (__NR_POSIX + 132)
|
794 |
|
|
#define __NR_POSIX_SGI_sgigsc (__NR_POSIX + 133)
|
795 |
|
|
#define __NR_POSIX_SGI_mmap (__NR_POSIX + 134)
|
796 |
|
|
#define __NR_POSIX_SGI_munmap (__NR_POSIX + 135)
|
797 |
|
|
#define __NR_POSIX_SGI_mprotect (__NR_POSIX + 136)
|
798 |
|
|
#define __NR_POSIX_SGI_msync (__NR_POSIX + 137)
|
799 |
|
|
#define __NR_POSIX_SGI_madvise (__NR_POSIX + 138)
|
800 |
|
|
#define __NR_POSIX_SGI_mpin (__NR_POSIX + 139)
|
801 |
|
|
#define __NR_POSIX_SGI_getpagesize (__NR_POSIX + 140)
|
802 |
|
|
#define __NR_POSIX_SGI_libattach (__NR_POSIX + 141)
|
803 |
|
|
#define __NR_POSIX_SGI_libdetach (__NR_POSIX + 142)
|
804 |
|
|
#define __NR_POSIX_SGI_getpgrp (__NR_POSIX + 143)
|
805 |
|
|
#define __NR_POSIX_SGI_setpgrp (__NR_POSIX + 144)
|
806 |
|
|
#define __NR_POSIX_SGI_reserved2 (__NR_POSIX + 145)
|
807 |
|
|
#define __NR_POSIX_SGI_reserved3 (__NR_POSIX + 146)
|
808 |
|
|
#define __NR_POSIX_SGI_reserved4 (__NR_POSIX + 147)
|
809 |
|
|
#define __NR_POSIX_SGI_reserved5 (__NR_POSIX + 148)
|
810 |
|
|
#define __NR_POSIX_SGI_reserved6 (__NR_POSIX + 149)
|
811 |
|
|
#define __NR_POSIX_cacheflush (__NR_POSIX + 150)
|
812 |
|
|
#define __NR_POSIX_cachectl (__NR_POSIX + 151)
|
813 |
|
|
#define __NR_POSIX_fchown (__NR_POSIX + 152)
|
814 |
|
|
#define __NR_POSIX_fchmod (__NR_POSIX + 153)
|
815 |
|
|
#define __NR_POSIX_wait3 (__NR_POSIX + 154)
|
816 |
|
|
#define __NR_POSIX_mmap (__NR_POSIX + 155)
|
817 |
|
|
#define __NR_POSIX_munmap (__NR_POSIX + 156)
|
818 |
|
|
#define __NR_POSIX_madvise (__NR_POSIX + 157)
|
819 |
|
|
#define __NR_POSIX_BSD_getpagesize (__NR_POSIX + 158)
|
820 |
|
|
#define __NR_POSIX_setreuid (__NR_POSIX + 159)
|
821 |
|
|
#define __NR_POSIX_setregid (__NR_POSIX + 160)
|
822 |
|
|
#define __NR_POSIX_setpgid (__NR_POSIX + 161)
|
823 |
|
|
#define __NR_POSIX_getgroups (__NR_POSIX + 162)
|
824 |
|
|
#define __NR_POSIX_setgroups (__NR_POSIX + 163)
|
825 |
|
|
#define __NR_POSIX_gettimeofday (__NR_POSIX + 164)
|
826 |
|
|
#define __NR_POSIX_getrusage (__NR_POSIX + 165)
|
827 |
|
|
#define __NR_POSIX_getrlimit (__NR_POSIX + 166)
|
828 |
|
|
#define __NR_POSIX_setrlimit (__NR_POSIX + 167)
|
829 |
|
|
#define __NR_POSIX_waitpid (__NR_POSIX + 168)
|
830 |
|
|
#define __NR_POSIX_dup2 (__NR_POSIX + 169)
|
831 |
|
|
#define __NR_POSIX_reserved2 (__NR_POSIX + 170)
|
832 |
|
|
#define __NR_POSIX_reserved3 (__NR_POSIX + 171)
|
833 |
|
|
#define __NR_POSIX_reserved4 (__NR_POSIX + 172)
|
834 |
|
|
#define __NR_POSIX_reserved5 (__NR_POSIX + 173)
|
835 |
|
|
#define __NR_POSIX_reserved6 (__NR_POSIX + 174)
|
836 |
|
|
#define __NR_POSIX_reserved7 (__NR_POSIX + 175)
|
837 |
|
|
#define __NR_POSIX_reserved8 (__NR_POSIX + 176)
|
838 |
|
|
#define __NR_POSIX_reserved9 (__NR_POSIX + 177)
|
839 |
|
|
#define __NR_POSIX_reserved10 (__NR_POSIX + 178)
|
840 |
|
|
#define __NR_POSIX_reserved11 (__NR_POSIX + 179)
|
841 |
|
|
#define __NR_POSIX_reserved12 (__NR_POSIX + 180)
|
842 |
|
|
#define __NR_POSIX_reserved13 (__NR_POSIX + 181)
|
843 |
|
|
#define __NR_POSIX_reserved14 (__NR_POSIX + 182)
|
844 |
|
|
#define __NR_POSIX_reserved15 (__NR_POSIX + 183)
|
845 |
|
|
#define __NR_POSIX_reserved16 (__NR_POSIX + 184)
|
846 |
|
|
#define __NR_POSIX_reserved17 (__NR_POSIX + 185)
|
847 |
|
|
#define __NR_POSIX_reserved18 (__NR_POSIX + 186)
|
848 |
|
|
#define __NR_POSIX_reserved19 (__NR_POSIX + 187)
|
849 |
|
|
#define __NR_POSIX_reserved20 (__NR_POSIX + 188)
|
850 |
|
|
#define __NR_POSIX_reserved21 (__NR_POSIX + 189)
|
851 |
|
|
#define __NR_POSIX_reserved22 (__NR_POSIX + 190)
|
852 |
|
|
#define __NR_POSIX_reserved23 (__NR_POSIX + 191)
|
853 |
|
|
#define __NR_POSIX_reserved24 (__NR_POSIX + 192)
|
854 |
|
|
#define __NR_POSIX_reserved25 (__NR_POSIX + 193)
|
855 |
|
|
#define __NR_POSIX_reserved26 (__NR_POSIX + 194)
|
856 |
|
|
#define __NR_POSIX_reserved27 (__NR_POSIX + 195)
|
857 |
|
|
#define __NR_POSIX_reserved28 (__NR_POSIX + 196)
|
858 |
|
|
#define __NR_POSIX_reserved29 (__NR_POSIX + 197)
|
859 |
|
|
#define __NR_POSIX_reserved30 (__NR_POSIX + 198)
|
860 |
|
|
#define __NR_POSIX_reserved31 (__NR_POSIX + 199)
|
861 |
|
|
#define __NR_POSIX_reserved32 (__NR_POSIX + 200)
|
862 |
|
|
#define __NR_POSIX_reserved33 (__NR_POSIX + 201)
|
863 |
|
|
#define __NR_POSIX_reserved34 (__NR_POSIX + 202)
|
864 |
|
|
#define __NR_POSIX_reserved35 (__NR_POSIX + 203)
|
865 |
|
|
#define __NR_POSIX_reserved36 (__NR_POSIX + 204)
|
866 |
|
|
#define __NR_POSIX_reserved37 (__NR_POSIX + 205)
|
867 |
|
|
#define __NR_POSIX_reserved38 (__NR_POSIX + 206)
|
868 |
|
|
#define __NR_POSIX_reserved39 (__NR_POSIX + 207)
|
869 |
|
|
#define __NR_POSIX_reserved40 (__NR_POSIX + 208)
|
870 |
|
|
#define __NR_POSIX_reserved41 (__NR_POSIX + 209)
|
871 |
|
|
#define __NR_POSIX_reserved42 (__NR_POSIX + 210)
|
872 |
|
|
#define __NR_POSIX_reserved43 (__NR_POSIX + 211)
|
873 |
|
|
#define __NR_POSIX_reserved44 (__NR_POSIX + 212)
|
874 |
|
|
#define __NR_POSIX_reserved45 (__NR_POSIX + 213)
|
875 |
|
|
#define __NR_POSIX_reserved46 (__NR_POSIX + 214)
|
876 |
|
|
#define __NR_POSIX_reserved47 (__NR_POSIX + 215)
|
877 |
|
|
#define __NR_POSIX_reserved48 (__NR_POSIX + 216)
|
878 |
|
|
#define __NR_POSIX_reserved49 (__NR_POSIX + 217)
|
879 |
|
|
#define __NR_POSIX_reserved50 (__NR_POSIX + 218)
|
880 |
|
|
#define __NR_POSIX_reserved51 (__NR_POSIX + 219)
|
881 |
|
|
#define __NR_POSIX_reserved52 (__NR_POSIX + 220)
|
882 |
|
|
#define __NR_POSIX_reserved53 (__NR_POSIX + 221)
|
883 |
|
|
#define __NR_POSIX_reserved54 (__NR_POSIX + 222)
|
884 |
|
|
#define __NR_POSIX_reserved55 (__NR_POSIX + 223)
|
885 |
|
|
#define __NR_POSIX_reserved56 (__NR_POSIX + 224)
|
886 |
|
|
#define __NR_POSIX_reserved57 (__NR_POSIX + 225)
|
887 |
|
|
#define __NR_POSIX_reserved58 (__NR_POSIX + 226)
|
888 |
|
|
#define __NR_POSIX_reserved59 (__NR_POSIX + 227)
|
889 |
|
|
#define __NR_POSIX_reserved60 (__NR_POSIX + 228)
|
890 |
|
|
#define __NR_POSIX_reserved61 (__NR_POSIX + 229)
|
891 |
|
|
#define __NR_POSIX_reserved62 (__NR_POSIX + 230)
|
892 |
|
|
#define __NR_POSIX_reserved63 (__NR_POSIX + 231)
|
893 |
|
|
#define __NR_POSIX_reserved64 (__NR_POSIX + 232)
|
894 |
|
|
#define __NR_POSIX_reserved65 (__NR_POSIX + 233)
|
895 |
|
|
#define __NR_POSIX_reserved66 (__NR_POSIX + 234)
|
896 |
|
|
#define __NR_POSIX_reserved67 (__NR_POSIX + 235)
|
897 |
|
|
#define __NR_POSIX_reserved68 (__NR_POSIX + 236)
|
898 |
|
|
#define __NR_POSIX_reserved69 (__NR_POSIX + 237)
|
899 |
|
|
#define __NR_POSIX_reserved70 (__NR_POSIX + 238)
|
900 |
|
|
#define __NR_POSIX_reserved71 (__NR_POSIX + 239)
|
901 |
|
|
#define __NR_POSIX_reserved72 (__NR_POSIX + 240)
|
902 |
|
|
#define __NR_POSIX_reserved73 (__NR_POSIX + 241)
|
903 |
|
|
#define __NR_POSIX_reserved74 (__NR_POSIX + 242)
|
904 |
|
|
#define __NR_POSIX_reserved75 (__NR_POSIX + 243)
|
905 |
|
|
#define __NR_POSIX_reserved76 (__NR_POSIX + 244)
|
906 |
|
|
#define __NR_POSIX_reserved77 (__NR_POSIX + 245)
|
907 |
|
|
#define __NR_POSIX_reserved78 (__NR_POSIX + 246)
|
908 |
|
|
#define __NR_POSIX_reserved79 (__NR_POSIX + 247)
|
909 |
|
|
#define __NR_POSIX_reserved80 (__NR_POSIX + 248)
|
910 |
|
|
#define __NR_POSIX_reserved81 (__NR_POSIX + 249)
|
911 |
|
|
#define __NR_POSIX_reserved82 (__NR_POSIX + 250)
|
912 |
|
|
#define __NR_POSIX_reserved83 (__NR_POSIX + 251)
|
913 |
|
|
#define __NR_POSIX_reserved84 (__NR_POSIX + 252)
|
914 |
|
|
#define __NR_POSIX_reserved85 (__NR_POSIX + 253)
|
915 |
|
|
#define __NR_POSIX_reserved86 (__NR_POSIX + 254)
|
916 |
|
|
#define __NR_POSIX_reserved87 (__NR_POSIX + 255)
|
917 |
|
|
#define __NR_POSIX_reserved88 (__NR_POSIX + 256)
|
918 |
|
|
#define __NR_POSIX_reserved89 (__NR_POSIX + 257)
|
919 |
|
|
#define __NR_POSIX_reserved90 (__NR_POSIX + 258)
|
920 |
|
|
#define __NR_POSIX_reserved91 (__NR_POSIX + 259)
|
921 |
|
|
#define __NR_POSIX_netboot (__NR_POSIX + 260)
|
922 |
|
|
#define __NR_POSIX_netunboot (__NR_POSIX + 261)
|
923 |
|
|
#define __NR_POSIX_rdump (__NR_POSIX + 262)
|
924 |
|
|
#define __NR_POSIX_setsid (__NR_POSIX + 263)
|
925 |
|
|
#define __NR_POSIX_getmaxsig (__NR_POSIX + 264)
|
926 |
|
|
#define __NR_POSIX_sigpending (__NR_POSIX + 265)
|
927 |
|
|
#define __NR_POSIX_sigprocmask (__NR_POSIX + 266)
|
928 |
|
|
#define __NR_POSIX_sigsuspend (__NR_POSIX + 267)
|
929 |
|
|
#define __NR_POSIX_sigaction (__NR_POSIX + 268)
|
930 |
|
|
#define __NR_POSIX_MIPS_reserved1 (__NR_POSIX + 269)
|
931 |
|
|
#define __NR_POSIX_MIPS_reserved2 (__NR_POSIX + 270)
|
932 |
|
|
#define __NR_POSIX_MIPS_reserved3 (__NR_POSIX + 271)
|
933 |
|
|
#define __NR_POSIX_MIPS_reserved4 (__NR_POSIX + 272)
|
934 |
|
|
#define __NR_POSIX_MIPS_reserved5 (__NR_POSIX + 273)
|
935 |
|
|
#define __NR_POSIX_MIPS_reserved6 (__NR_POSIX + 274)
|
936 |
|
|
#define __NR_POSIX_MIPS_reserved7 (__NR_POSIX + 275)
|
937 |
|
|
#define __NR_POSIX_MIPS_reserved8 (__NR_POSIX + 276)
|
938 |
|
|
#define __NR_POSIX_MIPS_reserved9 (__NR_POSIX + 277)
|
939 |
|
|
#define __NR_POSIX_MIPS_reserved10 (__NR_POSIX + 278)
|
940 |
|
|
#define __NR_POSIX_MIPS_reserved11 (__NR_POSIX + 279)
|
941 |
|
|
#define __NR_POSIX_TANDEM_reserved1 (__NR_POSIX + 280)
|
942 |
|
|
#define __NR_POSIX_TANDEM_reserved2 (__NR_POSIX + 281)
|
943 |
|
|
#define __NR_POSIX_TANDEM_reserved3 (__NR_POSIX + 282)
|
944 |
|
|
#define __NR_POSIX_TANDEM_reserved4 (__NR_POSIX + 283)
|
945 |
|
|
#define __NR_POSIX_TANDEM_reserved5 (__NR_POSIX + 284)
|
946 |
|
|
#define __NR_POSIX_TANDEM_reserved6 (__NR_POSIX + 285)
|
947 |
|
|
#define __NR_POSIX_TANDEM_reserved7 (__NR_POSIX + 286)
|
948 |
|
|
#define __NR_POSIX_TANDEM_reserved8 (__NR_POSIX + 287)
|
949 |
|
|
#define __NR_POSIX_TANDEM_reserved9 (__NR_POSIX + 288)
|
950 |
|
|
#define __NR_POSIX_TANDEM_reserved10 (__NR_POSIX + 289)
|
951 |
|
|
#define __NR_POSIX_TANDEM_reserved11 (__NR_POSIX + 290)
|
952 |
|
|
#define __NR_POSIX_TANDEM_reserved12 (__NR_POSIX + 291)
|
953 |
|
|
#define __NR_POSIX_TANDEM_reserved13 (__NR_POSIX + 292)
|
954 |
|
|
#define __NR_POSIX_TANDEM_reserved14 (__NR_POSIX + 293)
|
955 |
|
|
#define __NR_POSIX_TANDEM_reserved15 (__NR_POSIX + 294)
|
956 |
|
|
#define __NR_POSIX_TANDEM_reserved16 (__NR_POSIX + 295)
|
957 |
|
|
#define __NR_POSIX_TANDEM_reserved17 (__NR_POSIX + 296)
|
958 |
|
|
#define __NR_POSIX_TANDEM_reserved18 (__NR_POSIX + 297)
|
959 |
|
|
#define __NR_POSIX_TANDEM_reserved19 (__NR_POSIX + 298)
|
960 |
|
|
#define __NR_POSIX_TANDEM_reserved20 (__NR_POSIX + 299)
|
961 |
|
|
#define __NR_POSIX_SGI_reserved7 (__NR_POSIX + 300)
|
962 |
|
|
#define __NR_POSIX_SGI_reserved8 (__NR_POSIX + 301)
|
963 |
|
|
#define __NR_POSIX_SGI_reserved9 (__NR_POSIX + 302)
|
964 |
|
|
#define __NR_POSIX_SGI_reserved10 (__NR_POSIX + 303)
|
965 |
|
|
#define __NR_POSIX_SGI_reserved11 (__NR_POSIX + 304)
|
966 |
|
|
#define __NR_POSIX_SGI_reserved12 (__NR_POSIX + 305)
|
967 |
|
|
#define __NR_POSIX_SGI_reserved13 (__NR_POSIX + 306)
|
968 |
|
|
#define __NR_POSIX_SGI_reserved14 (__NR_POSIX + 307)
|
969 |
|
|
#define __NR_POSIX_SGI_reserved15 (__NR_POSIX + 308)
|
970 |
|
|
#define __NR_POSIX_SGI_reserved16 (__NR_POSIX + 309)
|
971 |
|
|
#define __NR_POSIX_SGI_reserved17 (__NR_POSIX + 310)
|
972 |
|
|
#define __NR_POSIX_SGI_reserved18 (__NR_POSIX + 311)
|
973 |
|
|
#define __NR_POSIX_SGI_reserved19 (__NR_POSIX + 312)
|
974 |
|
|
#define __NR_POSIX_SGI_reserved20 (__NR_POSIX + 313)
|
975 |
|
|
#define __NR_POSIX_SGI_reserved21 (__NR_POSIX + 314)
|
976 |
|
|
#define __NR_POSIX_SGI_reserved22 (__NR_POSIX + 315)
|
977 |
|
|
#define __NR_POSIX_SGI_reserved23 (__NR_POSIX + 316)
|
978 |
|
|
#define __NR_POSIX_SGI_reserved24 (__NR_POSIX + 317)
|
979 |
|
|
#define __NR_POSIX_SGI_reserved25 (__NR_POSIX + 318)
|
980 |
|
|
#define __NR_POSIX_SGI_reserved26 (__NR_POSIX + 319)
|
981 |
|
|
|
982 |
|
|
/*
|
983 |
|
|
* Linux syscalls are in the range from 4000 to 4999
|
984 |
|
|
* Hopefully these syscall numbers are unused ... If not everyone using
|
985 |
|
|
* statically linked binaries is pretty upsh*t. You've been warned.
|
986 |
|
|
*/
|
987 |
|
|
#define __NR_Linux 4000
|
988 |
|
|
#define __NR_syscall (__NR_Linux + 0)
|
989 |
|
|
#define __NR_exit (__NR_Linux + 1)
|
990 |
|
|
#define __NR_fork (__NR_Linux + 2)
|
991 |
|
|
#define __NR_read (__NR_Linux + 3)
|
992 |
|
|
#define __NR_write (__NR_Linux + 4)
|
993 |
|
|
#define __NR_open (__NR_Linux + 5)
|
994 |
|
|
#define __NR_close (__NR_Linux + 6)
|
995 |
|
|
#define __NR_waitpid (__NR_Linux + 7)
|
996 |
|
|
#define __NR_creat (__NR_Linux + 8)
|
997 |
|
|
#define __NR_link (__NR_Linux + 9)
|
998 |
|
|
#define __NR_unlink (__NR_Linux + 10)
|
999 |
|
|
#define __NR_execve (__NR_Linux + 11)
|
1000 |
|
|
#define __NR_chdir (__NR_Linux + 12)
|
1001 |
|
|
#define __NR_time (__NR_Linux + 13)
|
1002 |
|
|
#define __NR_mknod (__NR_Linux + 14)
|
1003 |
|
|
#define __NR_chmod (__NR_Linux + 15)
|
1004 |
|
|
#define __NR_chown (__NR_Linux + 16)
|
1005 |
|
|
#define __NR_break (__NR_Linux + 17)
|
1006 |
|
|
#define __NR_oldstat (__NR_Linux + 18)
|
1007 |
|
|
#define __NR_lseek (__NR_Linux + 19)
|
1008 |
|
|
#define __NR_getpid (__NR_Linux + 20)
|
1009 |
|
|
#define __NR_mount (__NR_Linux + 21)
|
1010 |
|
|
#define __NR_umount (__NR_Linux + 22)
|
1011 |
|
|
#define __NR_setuid (__NR_Linux + 23)
|
1012 |
|
|
#define __NR_getuid (__NR_Linux + 24)
|
1013 |
|
|
#define __NR_stime (__NR_Linux + 25)
|
1014 |
|
|
#define __NR_ptrace (__NR_Linux + 26)
|
1015 |
|
|
#define __NR_alarm (__NR_Linux + 27)
|
1016 |
|
|
#define __NR_oldfstat (__NR_Linux + 28)
|
1017 |
|
|
#define __NR_pause (__NR_Linux + 29)
|
1018 |
|
|
#define __NR_utime (__NR_Linux + 30)
|
1019 |
|
|
#define __NR_stty (__NR_Linux + 31)
|
1020 |
|
|
#define __NR_gtty (__NR_Linux + 32)
|
1021 |
|
|
#define __NR_access (__NR_Linux + 33)
|
1022 |
|
|
#define __NR_nice (__NR_Linux + 34)
|
1023 |
|
|
#define __NR_ftime (__NR_Linux + 35)
|
1024 |
|
|
#define __NR_sync (__NR_Linux + 36)
|
1025 |
|
|
#define __NR_kill (__NR_Linux + 37)
|
1026 |
|
|
#define __NR_rename (__NR_Linux + 38)
|
1027 |
|
|
#define __NR_mkdir (__NR_Linux + 39)
|
1028 |
|
|
#define __NR_rmdir (__NR_Linux + 40)
|
1029 |
|
|
#define __NR_dup (__NR_Linux + 41)
|
1030 |
|
|
#define __NR_pipe (__NR_Linux + 42)
|
1031 |
|
|
#define __NR_times (__NR_Linux + 43)
|
1032 |
|
|
#define __NR_prof (__NR_Linux + 44)
|
1033 |
|
|
#define __NR_brk (__NR_Linux + 45)
|
1034 |
|
|
#define __NR_setgid (__NR_Linux + 46)
|
1035 |
|
|
#define __NR_getgid (__NR_Linux + 47)
|
1036 |
|
|
#define __NR_signal (__NR_Linux + 48)
|
1037 |
|
|
#define __NR_geteuid (__NR_Linux + 49)
|
1038 |
|
|
#define __NR_getegid (__NR_Linux + 50)
|
1039 |
|
|
#define __NR_acct (__NR_Linux + 51)
|
1040 |
|
|
#define __NR_phys (__NR_Linux + 52)
|
1041 |
|
|
#define __NR_lock (__NR_Linux + 53)
|
1042 |
|
|
#define __NR_ioctl (__NR_Linux + 54)
|
1043 |
|
|
#define __NR_fcntl (__NR_Linux + 55)
|
1044 |
|
|
#define __NR_mpx (__NR_Linux + 56)
|
1045 |
|
|
#define __NR_setpgid (__NR_Linux + 57)
|
1046 |
|
|
#define __NR_ulimit (__NR_Linux + 58)
|
1047 |
|
|
#define __NR_oldolduname (__NR_Linux + 59)
|
1048 |
|
|
#define __NR_umask (__NR_Linux + 60)
|
1049 |
|
|
#define __NR_chroot (__NR_Linux + 61)
|
1050 |
|
|
#define __NR_ustat (__NR_Linux + 62)
|
1051 |
|
|
#define __NR_dup2 (__NR_Linux + 63)
|
1052 |
|
|
#define __NR_getppid (__NR_Linux + 64)
|
1053 |
|
|
#define __NR_getpgrp (__NR_Linux + 65)
|
1054 |
|
|
#define __NR_setsid (__NR_Linux + 66)
|
1055 |
|
|
#define __NR_sigaction (__NR_Linux + 67)
|
1056 |
|
|
#define __NR_sgetmask (__NR_Linux + 68)
|
1057 |
|
|
#define __NR_ssetmask (__NR_Linux + 69)
|
1058 |
|
|
#define __NR_setreuid (__NR_Linux + 70)
|
1059 |
|
|
#define __NR_setregid (__NR_Linux + 71)
|
1060 |
|
|
#define __NR_sigsuspend (__NR_Linux + 72)
|
1061 |
|
|
#define __NR_sigpending (__NR_Linux + 73)
|
1062 |
|
|
#define __NR_sethostname (__NR_Linux + 74)
|
1063 |
|
|
#define __NR_setrlimit (__NR_Linux + 75)
|
1064 |
|
|
#define __NR_getrlimit (__NR_Linux + 76)
|
1065 |
|
|
#define __NR_getrusage (__NR_Linux + 77)
|
1066 |
|
|
#define __NR_gettimeofday (__NR_Linux + 78)
|
1067 |
|
|
#define __NR_settimeofday (__NR_Linux + 79)
|
1068 |
|
|
#define __NR_getgroups (__NR_Linux + 80)
|
1069 |
|
|
#define __NR_setgroups (__NR_Linux + 81)
|
1070 |
|
|
#define __NR_select (__NR_Linux + 82)
|
1071 |
|
|
#define __NR_symlink (__NR_Linux + 83)
|
1072 |
|
|
#define __NR_oldlstat (__NR_Linux + 84)
|
1073 |
|
|
#define __NR_readlink (__NR_Linux + 85)
|
1074 |
|
|
#define __NR_uselib (__NR_Linux + 86)
|
1075 |
|
|
#define __NR_swapon (__NR_Linux + 87)
|
1076 |
|
|
#define __NR_reboot (__NR_Linux + 88)
|
1077 |
|
|
#define __NR_readdir (__NR_Linux + 89)
|
1078 |
|
|
#define __NR_mmap (__NR_Linux + 90)
|
1079 |
|
|
#define __NR_munmap (__NR_Linux + 91)
|
1080 |
|
|
#define __NR_truncate (__NR_Linux + 92)
|
1081 |
|
|
#define __NR_ftruncate (__NR_Linux + 93)
|
1082 |
|
|
#define __NR_fchmod (__NR_Linux + 94)
|
1083 |
|
|
#define __NR_fchown (__NR_Linux + 95)
|
1084 |
|
|
#define __NR_getpriority (__NR_Linux + 96)
|
1085 |
|
|
#define __NR_setpriority (__NR_Linux + 97)
|
1086 |
|
|
#define __NR_profil (__NR_Linux + 98)
|
1087 |
|
|
#define __NR_statfs (__NR_Linux + 99)
|
1088 |
|
|
#define __NR_fstatfs (__NR_Linux + 100)
|
1089 |
|
|
#define __NR_ioperm (__NR_Linux + 101)
|
1090 |
|
|
#define __NR_socketcall (__NR_Linux + 102)
|
1091 |
|
|
#define __NR_syslog (__NR_Linux + 103)
|
1092 |
|
|
#define __NR_setitimer (__NR_Linux + 104)
|
1093 |
|
|
#define __NR_getitimer (__NR_Linux + 105)
|
1094 |
|
|
#define __NR_stat (__NR_Linux + 106)
|
1095 |
|
|
#define __NR_lstat (__NR_Linux + 107)
|
1096 |
|
|
#define __NR_fstat (__NR_Linux + 108)
|
1097 |
|
|
#define __NR_olduname (__NR_Linux + 109)
|
1098 |
|
|
#define __NR_iopl (__NR_Linux + 110)
|
1099 |
|
|
#define __NR_vhangup (__NR_Linux + 111)
|
1100 |
|
|
#define __NR_idle (__NR_Linux + 112)
|
1101 |
|
|
#define __NR_vm86 (__NR_Linux + 113)
|
1102 |
|
|
#define __NR_wait4 (__NR_Linux + 114)
|
1103 |
|
|
#define __NR_swapoff (__NR_Linux + 115)
|
1104 |
|
|
#define __NR_sysinfo (__NR_Linux + 116)
|
1105 |
|
|
#define __NR_ipc (__NR_Linux + 117)
|
1106 |
|
|
#define __NR_fsync (__NR_Linux + 118)
|
1107 |
|
|
#define __NR_sigreturn (__NR_Linux + 119)
|
1108 |
|
|
#define __NR_clone (__NR_Linux + 120)
|
1109 |
|
|
#define __NR_setdomainname (__NR_Linux + 121)
|
1110 |
|
|
#define __NR_uname (__NR_Linux + 122)
|
1111 |
|
|
#define __NR_modify_ldt (__NR_Linux + 123)
|
1112 |
|
|
#define __NR_adjtimex (__NR_Linux + 124)
|
1113 |
|
|
#define __NR_mprotect (__NR_Linux + 125)
|
1114 |
|
|
#define __NR_sigprocmask (__NR_Linux + 126)
|
1115 |
|
|
#define __NR_create_module (__NR_Linux + 127)
|
1116 |
|
|
#define __NR_init_module (__NR_Linux + 128)
|
1117 |
|
|
#define __NR_delete_module (__NR_Linux + 129)
|
1118 |
|
|
#define __NR_get_kernel_syms (__NR_Linux + 130)
|
1119 |
|
|
#define __NR_quotactl (__NR_Linux + 131)
|
1120 |
|
|
#define __NR_getpgid (__NR_Linux + 132)
|
1121 |
|
|
#define __NR_fchdir (__NR_Linux + 133)
|
1122 |
|
|
#define __NR_bdflush (__NR_Linux + 134)
|
1123 |
|
|
#define __NR_sysfs (__NR_Linux + 135)
|
1124 |
|
|
#define __NR_personality (__NR_Linux + 136)
|
1125 |
|
|
#define __NR_afs_syscall (__NR_Linux + 137) /* Syscall for Andrew File System */
|
1126 |
|
|
#define __NR_setfsuid (__NR_Linux + 138)
|
1127 |
|
|
#define __NR_setfsgid (__NR_Linux + 139)
|
1128 |
|
|
#define __NR__llseek (__NR_Linux + 140)
|
1129 |
|
|
#define __NR_getdents (__NR_Linux + 141)
|
1130 |
|
|
#define __NR__newselect (__NR_Linux + 142)
|
1131 |
|
|
#define __NR_flock (__NR_Linux + 143)
|
1132 |
|
|
#define __NR_msync (__NR_Linux + 144)
|
1133 |
|
|
#define __NR_readv (__NR_Linux + 145)
|
1134 |
|
|
#define __NR_writev (__NR_Linux + 146)
|
1135 |
|
|
#define __NR_cacheflush (__NR_Linux + 147)
|
1136 |
|
|
#define __NR_cachectl (__NR_Linux + 148)
|
1137 |
|
|
#define __NR_sysmips (__NR_Linux + 149)
|
1138 |
|
|
#define __NR_setup (__NR_Linux + 150) /* used only by init, to get system going */
|
1139 |
|
|
#define __NR_getsid (__NR_Linux + 151)
|
1140 |
|
|
#define __NR_reserved1 (__NR_Linux + 152)
|
1141 |
|
|
#define __NR_reserved2 (__NR_Linux + 153)
|
1142 |
|
|
#define __NR_mlock (__NR_Linux + 154)
|
1143 |
|
|
#define __NR_munlock (__NR_Linux + 155)
|
1144 |
|
|
#define __NR_mlockall (__NR_Linux + 156)
|
1145 |
|
|
#define __NR_munlockall (__NR_Linux + 157)
|
1146 |
|
|
|
1147 |
|
|
|
1148 |
|
|
/*
|
1149 |
|
|
* Offset of the last Linux flavoured syscall
|
1150 |
|
|
*/
|
1151 |
|
|
#define __NR_Linux_syscalls 157
|
1152 |
|
|
|
1153 |
|
|
#ifndef __LANGUAGE_ASSEMBLY__
|
1154 |
|
|
|
1155 |
|
|
/* XXX - _foo needs to be __foo, while __NR_bar could be _NR_bar. */
|
1156 |
|
|
#define _syscall0(type,name) \
|
1157 |
|
|
type name(void) \
|
1158 |
|
|
{ \
|
1159 |
|
|
register long __res __asm__ ("$2"); \
|
1160 |
|
|
register long __err __asm__ ("$7"); \
|
1161 |
|
|
__asm__ volatile ("li\t$2,%2\n\t" \
|
1162 |
|
|
"syscall" \
|
1163 |
|
|
: "=r" (__res), "=r" (__err) \
|
1164 |
|
|
: "i" (__NR_##name)); \
|
1165 |
|
|
if (__err == 0) \
|
1166 |
|
|
return (type) __res; \
|
1167 |
|
|
errno = __res; \
|
1168 |
|
|
return -1; \
|
1169 |
|
|
}
|
1170 |
|
|
|
1171 |
|
|
/*
|
1172 |
|
|
* DANGER: This macro isn't usable for the pipe(2) call
|
1173 |
|
|
* which has a unusual return convention.
|
1174 |
|
|
*/
|
1175 |
|
|
#define _syscall1(type,name,atype,a) \
|
1176 |
|
|
type name(atype a) \
|
1177 |
|
|
{ \
|
1178 |
|
|
register long __res __asm__ ("$2"); \
|
1179 |
|
|
register long __err __asm__ ("$7"); \
|
1180 |
|
|
__asm__ volatile ("move\t$4,%3\n\t" \
|
1181 |
|
|
"li\t$2,%2\n\t" \
|
1182 |
|
|
"syscall" \
|
1183 |
|
|
: "=r" (__res), "=r" (__err) \
|
1184 |
|
|
: "i" (__NR_##name),"r" ((long)(a)) \
|
1185 |
|
|
: "$4"); \
|
1186 |
|
|
if (__err == 0) \
|
1187 |
|
|
return (type) __res; \
|
1188 |
|
|
errno = __res; \
|
1189 |
|
|
return -1; \
|
1190 |
|
|
}
|
1191 |
|
|
|
1192 |
|
|
#define _syscall2(type,name,atype,a,btype,b) \
|
1193 |
|
|
type name(atype a,btype b) \
|
1194 |
|
|
{ \
|
1195 |
|
|
register long __res __asm__ ("$2"); \
|
1196 |
|
|
register long __err __asm__ ("$7"); \
|
1197 |
|
|
__asm__ volatile ("move\t$4,%3\n\t" \
|
1198 |
|
|
"move\t$5,%4\n\t" \
|
1199 |
|
|
"li\t$2,%2\n\t" \
|
1200 |
|
|
"syscall" \
|
1201 |
|
|
: "=r" (__res), "=r" (__err) \
|
1202 |
|
|
: "i" (__NR_##name),"r" ((long)(a)), \
|
1203 |
|
|
"r" ((long)(b)) \
|
1204 |
|
|
: "$4","$5"); \
|
1205 |
|
|
if (__err == 0) \
|
1206 |
|
|
return (type) __res; \
|
1207 |
|
|
errno = __res; \
|
1208 |
|
|
return -1; \
|
1209 |
|
|
}
|
1210 |
|
|
|
1211 |
|
|
#define _syscall3(type,name,atype,a,btype,b,ctype,c) \
|
1212 |
|
|
type name (atype a, btype b, ctype c) \
|
1213 |
|
|
{ \
|
1214 |
|
|
register long __res __asm__ ("$2"); \
|
1215 |
|
|
register long __err __asm__ ("$7"); \
|
1216 |
|
|
__asm__ volatile ("move\t$4,%3\n\t" \
|
1217 |
|
|
"move\t$5,%4\n\t" \
|
1218 |
|
|
"move\t$6,%5\n\t" \
|
1219 |
|
|
"li\t$2,%2\n\t" \
|
1220 |
|
|
"syscall" \
|
1221 |
|
|
: "=r" (__res), "=r" (__err) \
|
1222 |
|
|
: "i" (__NR_##name),"r" ((long)(a)), \
|
1223 |
|
|
"r" ((long)(b)), \
|
1224 |
|
|
"r" ((long)(c)) \
|
1225 |
|
|
: "$4","$5","$6"); \
|
1226 |
|
|
if (__err == 0) \
|
1227 |
|
|
return (type) __res; \
|
1228 |
|
|
errno = __res; \
|
1229 |
|
|
return -1; \
|
1230 |
|
|
}
|
1231 |
|
|
|
1232 |
|
|
#define _syscall4(type,name,atype,a,btype,b,ctype,c,dtype,d) \
|
1233 |
|
|
type name (atype a, btype b, ctype c, dtype d) \
|
1234 |
|
|
{ \
|
1235 |
|
|
register long __res __asm__ ("$2"); \
|
1236 |
|
|
register long __err __asm__ ("$7"); \
|
1237 |
|
|
__asm__ volatile ("move\t$4,%3\n\t" \
|
1238 |
|
|
"move\t$5,%4\n\t" \
|
1239 |
|
|
"move\t$6,%5\n\t" \
|
1240 |
|
|
"move\t$7,%6\n\t" \
|
1241 |
|
|
"li\t$2,%2\n\t" \
|
1242 |
|
|
"syscall" \
|
1243 |
|
|
: "=r" (__res), "=r" (__err) \
|
1244 |
|
|
: "i" (__NR_##name),"r" ((long)(a)), \
|
1245 |
|
|
"r" ((long)(b)), \
|
1246 |
|
|
"r" ((long)(c)), \
|
1247 |
|
|
"r" ((long)(d)) \
|
1248 |
|
|
: "$4","$5","$6"); \
|
1249 |
|
|
if (__err == 0) \
|
1250 |
|
|
return (type) __res; \
|
1251 |
|
|
errno = __res; \
|
1252 |
|
|
return -1; \
|
1253 |
|
|
}
|
1254 |
|
|
|
1255 |
|
|
#define _syscall5(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e) \
|
1256 |
|
|
type name (atype a,btype b,ctype c,dtype d,etype e) \
|
1257 |
|
|
{ \
|
1258 |
|
|
register long __res __asm__ ("$2"); \
|
1259 |
|
|
register long __err __asm__ ("$7"); \
|
1260 |
|
|
__asm__ volatile ("move\t$4,%3\n\t" \
|
1261 |
|
|
"move\t$5,%4\n\t" \
|
1262 |
|
|
"move\t$6,%5\n\t" \
|
1263 |
|
|
"move\t$7,%6\n\t" \
|
1264 |
|
|
"move\t$3,%7\n\t" \
|
1265 |
|
|
"li\t$2,%2\n\t" \
|
1266 |
|
|
"syscall" \
|
1267 |
|
|
: "=r" (__res), "=r" (__err) \
|
1268 |
|
|
: "i" (__NR_##name),"r" ((long)(a)), \
|
1269 |
|
|
"r" ((long)(b)), \
|
1270 |
|
|
"r" ((long)(c)), \
|
1271 |
|
|
"r" ((long)(d)), \
|
1272 |
|
|
"r" ((long)(e)) \
|
1273 |
|
|
: "$3","$4","$5","$6"); \
|
1274 |
|
|
if (__err == 0) \
|
1275 |
|
|
return (type) __res; \
|
1276 |
|
|
errno = __res; \
|
1277 |
|
|
return -1; \
|
1278 |
|
|
}
|
1279 |
|
|
|
1280 |
|
|
#ifdef __KERNEL_SYSCALLS__
|
1281 |
|
|
|
1282 |
|
|
/*
|
1283 |
|
|
* we need this inline - forking from kernel space will result
|
1284 |
|
|
* in NO COPY ON WRITE (!!!), until an execve is executed. This
|
1285 |
|
|
* is no problem, but for the stack. This is handled by not letting
|
1286 |
|
|
* main() use the stack at all after fork(). Thus, no function
|
1287 |
|
|
* calls - which means inline code for fork too, as otherwise we
|
1288 |
|
|
* would use the stack upon exit from 'fork()'.
|
1289 |
|
|
*
|
1290 |
|
|
* Actually only pause and fork are needed inline, so that there
|
1291 |
|
|
* won't be any messing with the stack from main(), but we define
|
1292 |
|
|
* some others too.
|
1293 |
|
|
*/
|
1294 |
|
|
#define __NR__exit __NR_exit
|
1295 |
|
|
static inline _syscall0(int,idle)
|
1296 |
|
|
static inline _syscall0(int,fork)
|
1297 |
|
|
static inline _syscall2(int,clone,unsigned long,flags,char *,esp)
|
1298 |
|
|
static inline _syscall0(int,pause)
|
1299 |
|
|
static inline _syscall0(int,setup)
|
1300 |
|
|
static inline _syscall0(int,sync)
|
1301 |
|
|
static inline _syscall0(pid_t,setsid)
|
1302 |
|
|
static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
|
1303 |
|
|
static inline _syscall1(int,dup,int,fd)
|
1304 |
|
|
static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp)
|
1305 |
|
|
static inline _syscall3(int,open,const char *,file,int,flag,int,mode)
|
1306 |
|
|
static inline _syscall1(int,close,int,fd)
|
1307 |
|
|
static inline _syscall1(int,_exit,int,exitcode)
|
1308 |
|
|
static inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options)
|
1309 |
|
|
|
1310 |
|
|
static inline pid_t wait(int * wait_stat)
|
1311 |
|
|
{
|
1312 |
|
|
return waitpid(-1,wait_stat,0);
|
1313 |
|
|
}
|
1314 |
|
|
|
1315 |
|
|
/*
|
1316 |
|
|
* This is the mechanism for creating a new kernel thread.
|
1317 |
|
|
*
|
1318 |
|
|
* NOTE! Only a kernel-only process(ie the swapper or direct descendants
|
1319 |
|
|
* who haven't done an "execve()") should use this: it will work within
|
1320 |
|
|
* a system call from a "real" process, but the process memory space will
|
1321 |
|
|
* not be free'd until both the parent and the child have exited.
|
1322 |
|
|
*/
|
1323 |
|
|
static inline pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
|
1324 |
|
|
{
|
1325 |
|
|
long retval;
|
1326 |
|
|
|
1327 |
|
|
__asm__ __volatile__(
|
1328 |
|
|
".set\tnoreorder\n\t"
|
1329 |
|
|
"move\t$8,$sp\n\t"
|
1330 |
|
|
"move\t$4,%5\n\t"
|
1331 |
|
|
"li\t$2,%1\n\t"
|
1332 |
|
|
"syscall\n\t"
|
1333 |
|
|
"beq\t$8,$sp,1f\n\t"
|
1334 |
|
|
"subu\t$sp,16\n\t" /* delay slot */
|
1335 |
|
|
"jalr\t%4\n\t"
|
1336 |
|
|
"move\t$4,%3\n\t" /* delay slot */
|
1337 |
|
|
"move\t$4,$2\n\t"
|
1338 |
|
|
"li\t$2,%2\n\t"
|
1339 |
|
|
"syscall\n"
|
1340 |
|
|
"1:\taddiu\t$sp,16\n\t"
|
1341 |
|
|
"move\t%0,$2\n\t"
|
1342 |
|
|
".set\treorder"
|
1343 |
|
|
:"=r" (retval)
|
1344 |
|
|
:"i" (__NR_clone), "i" (__NR_exit),
|
1345 |
|
|
"r" (arg), "r" (fn),
|
1346 |
|
|
"r" (flags | CLONE_VM)
|
1347 |
|
|
/*
|
1348 |
|
|
* The called subroutine might have destroyed any of the
|
1349 |
|
|
* at, result, argument or temporary registers ...
|
1350 |
|
|
*/
|
1351 |
|
|
:"$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8",
|
1352 |
|
|
"$9","$10","$11","$12","$13","$14","$15","$24","$25");
|
1353 |
|
|
|
1354 |
|
|
return retval;
|
1355 |
|
|
}
|
1356 |
|
|
|
1357 |
|
|
#endif /* !defined (__KERNEL_SYSCALLS__) */
|
1358 |
|
|
#endif /* !defined (__LANGUAGE_ASSEMBLY__) */
|
1359 |
|
|
|
1360 |
|
|
#endif /* __ASM_MIPS_UNISTD_H */
|