blob: d25667eeae10f6563ee269990ecd6b305c5cd4ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
|
/* $Id: systbl.S,v 1.11 2000/03/13 21:57:35 davem Exp $
* systbl.S: System call entry point table for Solaris compatibility.
*
* Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
* Copyright (C) 1996 Miguel de Icaza (miguel@nuclecu.unam.mx)
*/
#include <asm/unistd.h>
/* Fall back to sys_call_table32 entry */
#define CHAIN(name) __NR_##name
/* Pass pt_regs pointer as first argument */
#define REGS(name) name+1
/* Hack till all be implemented */
#define solaris_getpmsg solaris_unimplemented
#define solaris_hrtsys solaris_unimplemented
#define solaris_msgsys solaris_unimplemented
#define solaris_putpmsg solaris_unimplemented
#define solaris_semsys solaris_unimplemented
.data
.globl solaris_sys_table
solaris_sys_table:
.word solaris_unimplemented /* nosys 0 */
.word CHAIN(exit) /* exit d 1 */
.word CHAIN(fork) /* fork 2 */
.word CHAIN(read) /* read dpd 3 */
.word CHAIN(write) /* write dpd 4 */
.word solaris_open /* open soo 5 */
.word CHAIN(close) /* close d 6 */
.word solaris_wait /* wait xxx 7 */
.word CHAIN(creat) /* creat so 8 */
.word CHAIN(link) /* link ss 9 */
.word CHAIN(unlink) /* unlink s 10 */
.word solaris_unimplemented /* exec sxx 11 */
.word CHAIN(chdir) /* chdir s 12 */
.word CHAIN(time) /* time 13 */
.word solaris_mknod /* mknod sox 14 */
.word CHAIN(chmod) /* chmod so 15 */
.word CHAIN(chown) /* chown sdd 16 */
.word solaris_brk /* brk/break x 17 */
.word solaris_stat /* stat sp 18 */
.word CHAIN(lseek) /* seek/lseek ddd 19 */
.word solaris_getpid /* getpid 20 */
.word solaris_unimplemented /* mount 21 */
.word CHAIN(umount) /* umount s 22 */
.word CHAIN(setuid) /* setuid d 23 */
.word solaris_getuid /* getuid 24 */
.word CHAIN(stime) /* stime d 25 */
#if 0
.word solaris_ptrace /* ptrace xdxx 26 */
#else
.word CHAIN(ptrace) /* ptrace xdxx 26 */
#endif
.word CHAIN(alarm) /* alarm d 27 */
.word solaris_fstat /* fstat dp 28 */
.word CHAIN(pause) /* pause 29 */
.word CHAIN(utime) /* utime xx 30 */
.word solaris_unimplemented /* stty 31 */
.word solaris_unimplemented /* gtty 32 */
.word solaris_access /* access so 33 */
.word CHAIN(nice) /* nice d 34 */
.word solaris_statfs /* statfs spdd 35 */
.word CHAIN(sync) /* sync 36 */
.word solaris_kill /* kill dd 37 */
.word solaris_fstatfs /* fstatfs dpdd 38 */
.word solaris_procids /* pgrpsys ddd 39 */
.word solaris_unimplemented /* xenix 40 */
.word CHAIN(dup) /* dup d 41 */
.word CHAIN(pipe) /* pipe 42 */
.word CHAIN(times) /* times p 43 */
.word 44 /*CHAIN(profil)*/ /* prof xxxx 44 */
.word solaris_unimplemented /* lock/plock 45 */
.word CHAIN(setgid) /* setgid d 46 */
.word solaris_getgid /* getgid 47 */
.word solaris_sigfunc /* sigfunc xx 48 */
.word REGS(solaris_msgsys) /* msgsys dxddd 49 */
.word solaris_unimplemented /* syssun/3b 50 */
.word CHAIN(acct) /* acct/sysacct x 51 */
.word solaris_shmsys /* shmsys ddxo 52 */
.word REGS(solaris_semsys) /* semsys dddx 53 */
.word solaris_ioctl /* ioctl dxx 54 */
.word solaris_unimplemented /* uadmin xxx 55 */
.word solaris_unimplemented /* reserved:exch 56 */
.word solaris_utssys /* utssys x 57 */
.word CHAIN(fsync) /* fsync d 58 */
.word CHAIN(execve) /* execv spp 59 */
.word CHAIN(umask) /* umask o 60 */
.word CHAIN(chroot) /* chroot s 61 */
.word solaris_fcntl /* fcntl dxx 62 */
.word solaris_ulimit /* ulimit xx 63 */
.word solaris_unimplemented /* ? 64 */
.word solaris_unimplemented /* ? 65 */
.word solaris_unimplemented /* ? 66 */
.word solaris_unimplemented /* ? 67 */
.word solaris_unimplemented /* ? 68 */
.word solaris_unimplemented /* ? 69 */
.word solaris_unimplemented /* advfs 70 */
.word solaris_unimplemented /* unadvfs 71 */
.word solaris_unimplemented /* rmount 72 */
.word solaris_unimplemented /* rumount 73 */
.word solaris_unimplemented /* rfstart 74 */
.word solaris_unimplemented /* ? 75 */
.word solaris_unimplemented /* rdebug 76 */
.word solaris_unimplemented /* rfstop 77 */
.word solaris_unimplemented /* rfsys 78 */
.word CHAIN(rmdir) /* rmdir s 79 */
.word CHAIN(mkdir) /* mkdir so 80 */
.word CHAIN(getdents) /* getdents dxd 81 */
.word solaris_unimplemented /* libattach 82 */
.word solaris_unimplemented /* libdetach 83 */
.word CHAIN(sysfs) /* sysfs dxx 84 */
.word solaris_getmsg /* getmsg dxxx 85 */
.word solaris_putmsg /* putmsg dxxd 86 */
.word CHAIN(poll) /* poll xdd 87 */
.word solaris_lstat /* lstat sp 88 */
.word CHAIN(symlink) /* symlink ss 89 */
.word CHAIN(readlink) /* readlink spd 90 */
.word CHAIN(setgroups) /* setgroups dp 91 */
.word CHAIN(getgroups) /* getgroups dp 92 */
.word CHAIN(fchmod) /* fchmod do 93 */
.word CHAIN(fchown) /* fchown ddd 94 */
.word solaris_sigprocmask /* sigprocmask dxx 95 */
.word solaris_sigsuspend /* sigsuspend x 96 */
.word solaris_sigaltstack /* sigaltstack xx 97 */
.word solaris_sigaction /* sigaction dxx 98 */
.word solaris_sigpending /* sigpending dd 99 */
.word REGS(solaris_context) /* context 100 */
.word solaris_unimplemented /* evsys 101 */
.word solaris_unimplemented /* evtrapret 102 */
.word solaris_statvfs /* statvfs sp 103 */
.word solaris_fstatvfs /* fstatvfs dp 104 */
.word solaris_unimplemented /* unknown 105 */
.word solaris_unimplemented /* nfssys 106 */
.word solaris_waitid /* waitid ddxd 107 */
.word solaris_unimplemented /* sigsendsys ddd 108
|