Pristine Ack-5.5
[Ack-5.5.git] / mach / sun2 / libsys / libmon_s.a
1 eÿaccept.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
2 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
3 .define _accept
4 _accept: SYSTEM(SYS_accept)
5 \0access.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
6 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
7 .define _access
8 _access: SYSTEM(SYS_access)
9 \0acct.s\0s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0y\0#include "syscall.h"
10 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
11 .define _acct
12 _acct: SYSTEM(SYS_acct)
13 cadjtime.s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
14 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
15 .define _adjtime
16 _adjtime: SYSTEM(SYS_adjtime)
17 alarm.c\0s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0Æ\0unsigned
18 alarm(n)
19         unsigned n;
20 {
21         struct { long l1,l2,l3,l4; } t1,t2;
22         t1.l1 = 0;
23         t1.l2 = 0;
24         t1.l4 = 0;
25         t1.l3 = n;
26         if (setitimer(0,&t1,&t2) < 0) return -1;
27         if (t2.l4) t2.l3++;
28         return t2.l3;
29 }
30 _alarm.c\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0È\0unsigned
31 _alarm(n)
32         unsigned n;
33 {
34         struct { long l1,l2,l3,l4; } t1,t2;
35         t1.l1 = 0;
36         t1.l2 = 0;
37         t1.l4 = 0;
38         t1.l3 = n;
39         if (_setitimer(0,&t1,&t2) < 0) return -1;
40         if (t2.l4) t2.l3++;
41         return t2.l3;
42 }
43 async_dem.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\91\0#include "syscall.h"
44 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
45 .define _async_daemon
46 _async_daemon: SYSTEM(SYS_async_daemon)
47  bind.s\0em.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0y\0#include "syscall.h"
48 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
49 .define _bind
50 _bind: SYSTEM(SYS_bind)
51 Ycerror.s\0.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9f\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
52 .define cerror,_errno
53 cerror:
54         move.l  d0,_errno
55         move.l  #-1,d0
56         rts
57
58 .sect .bss
59 _errno: .space 4
60 1chdir.s\0\0.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
61 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
62 .define _chdir
63 _chdir: SYSTEM(SYS_chdir)
64 chmod.s\0\0.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
65 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
66 .define _chmod
67 _chmod: SYSTEM(SYS_chmod)
68 chown.s\0\0.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
69 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
70 .define _chown
71 _chown: SYSTEM(SYS_chown)
72 chroot.s\0.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
73 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
74 .define _chroot
75 _chroot: SYSTEM(SYS_chroot)
76 tcleanup.c\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\ f\0_cleanup() { }
77 lclose.s\0c\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
78 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
79 .define _close
80 _close: SYSTEM(SYS_close)
81 _close.s\0\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0~\0#include "syscall.h"
82 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
83 .define __close
84 __close: SYSTEM(SYS_close)
85 connect.s\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
86 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
87 .define _connect
88 _connect: SYSTEM(SYS_connect)
89 creat.s\0s\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
90 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
91 .define _creat
92 _creat: SYSTEM(SYS_creat)
93 _creat.s\0\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0~\0#include "syscall.h"
94 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
95 .define __creat
96 __creat: SYSTEM(SYS_creat)
97 dup.s\0.s\0\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0v\0#include "syscall.h"
98 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
99 .define _dup
100 _dup: SYSTEM(SYS_dup)
101 _dup.s\0s\0\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0x\0#include "syscall.h"
102 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
103 .define __dup
104 __dup: SYSTEM(SYS_dup)
105 dup2.s\0s\0\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0y\0#include "syscall.h"
106 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
107 .define _dup2
108 _dup2: SYSTEM(SYS_dup2)
109 e_dup2.s\0\0\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0{\0#include "syscall.h"
110 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
111 .define __dup2
112 __dup2: SYSTEM(SYS_dup2)
113 texecl.c\0\0\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0c\0execl(name,args)
114         char *name;
115         int args;
116 {
117         extern char **environ;
118
119         execve(name,&args,environ);
120 }
121 __execl.c\0\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0e\0_execl(name,args)
122         char *name;
123         int args;
124 {
125         extern char **environ;
126
127         _execve(name,&args,environ);
128 }
129 uexecle.c\0\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0l\0execle(name,args)
130         char *name;
131         char *args;
132 {
133         char **p = &args;
134         while (*p++) ;
135
136         execve(name,&args,*p);
137 }
138 execv.c\0\0\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0d\0execv(name,args)
139         char *name;
140         char **args;
141 {
142         extern char **environ;
143         execve(name,args,environ);
144 }
145 execve.s\0\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
146 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
147 .define _execve
148 _execve: SYSTEM(SYS_execve)
149 t_execve.s\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\81\0#include "syscall.h"
150 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
151 .define __execve
152 __execve: SYSTEM(SYS_execve)
153
154 exit.c\0.s\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0$\0exit(n)
155 {
156         _cleanup();
157         _exit(n);
158 }
159 exportfs.s\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\85\0#include "syscall.h"
160 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
161 .define _exportfs
162 _exportfs: SYSTEM(SYS_exportfs)
163 efchmod.s\0s\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
164 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
165 .define _fchmod
166 _fchmod: SYSTEM(SYS_fchmod)
167 rfchown.s\0s\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
168 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
169 .define _fchown
170 _fchown: SYSTEM(SYS_fchown)
171 rfcntl.s\0\0s\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
172 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
173 .define _fcntl
174 _fcntl: SYSTEM(SYS_fcntl)
175 _fcntl.s\0s\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0~\0#include "syscall.h"
176 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
177 .define __fcntl
178 __fcntl: SYSTEM(SYS_fcntl)
179 flock.s\0\0s\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
180 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
181 .define _flock
182 _flock: SYSTEM(SYS_flock)
183 fork.s\0\0\0s\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0º\0#include "syscall.h"
184 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
185 .define _fork
186 _fork:
187         pea     SYS_fork
188         trap    #0
189         bcs     1f
190         tst.l   d1
191         beq     2f
192         clr.l   d0
193 2:
194         rts
195 1:
196         jmp     cerror
197 _fork.s\0\0s\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0¼\0#include "syscall.h"
198 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
199 .define __fork
200 __fork:
201         pea     SYS_fork
202         trap    #0
203         bcs     1f
204         tst.l   d1
205         beq     2f
206         clr.l   d0
207 2:
208         rts
209 1:
210         jmp     cerror
211 fstat.s\0\0s\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
212 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
213 .define _fstat
214 _fstat: SYSTEM(SYS_fstat)
215 _fstat.s\0s\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0~\0#include "syscall.h"
216 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
217 .define __fstat
218 __fstat: SYSTEM(SYS_fstat)
219 fstatfs.s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
220 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
221 .define _fstatfs
222 _fstatfs: SYSTEM(SYS_fstatfs)
223 fsync.s\0s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
224 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
225 .define _fsync
226 _fsync: SYSTEM(SYS_fsync)
227 ftime.c\0s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0)\ 1#include <sys/types.h>
228
229 ftime(p)
230         struct { time_t time; unsigned short millitm;
231                  short timezone; short dstflag; } *p;
232 {
233         struct { long l1,l2; } t1,t2;
234
235         if (gettimeofday(&t1,&t2) < 0) return -1;
236         p->time = t1.l1;
237         p->millitm = t1.l2/1000;
238         p->dstflag = t2.l2;
239         p->timezone = t2.l1;
240         return 0;
241 }
242 \0_ftime.c\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0+\ 1#include <sys/types.h>
243
244 _ftime(p)
245         struct { time_t time; unsigned short millitm;
246                  short timezone; short dstflag; } *p;
247 {
248         struct { long l1,l2; } t1,t2;
249
250         if (_gettimeofday(&t1,&t2) < 0) return -1;
251         p->time = t1.l1;
252         p->millitm = t1.l2/1000;
253         p->dstflag = t2.l2;
254         p->timezone = t2.l1;
255         return 0;
256 }
257 \0ftruncate.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\88\0#include "syscall.h"
258 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
259 .define _ftruncate
260 _ftruncate: SYSTEM(SYS_ftruncate)
261 getdirent.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\94\0#include "syscall.h"
262 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
263 .define _getdirentries
264 _getdirentries: SYSTEM(SYS_getdirentries)
265 getdomnam.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\94\0#include "syscall.h"
266 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
267 .define _getdomainname
268 _getdomainname: SYSTEM(SYS_getdomainname)
269 getdopt.s\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
270 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
271 .define _getdopt
272 _getdopt: SYSTEM(SYS_getdopt)
273 getdtabsz.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\94\0#include "syscall.h"
274 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
275 .define _getdtablesize
276 _getdtablesize: SYSTEM(SYS_getdtablesize)
277 getfh.s\0z.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
278 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
279 .define _getfh
280 _getfh: SYSTEM(SYS_getfh)
281 getgid.s\0.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
282 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
283 .define _getgid
284 _getgid: SYSTEM(SYS_getgid)
285 Mgetgroups.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\88\0#include "syscall.h"
286 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
287 .define _getgroups
288 _getgroups: SYSTEM(SYS_getgroups)
289 gethostid.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\88\0#include "syscall.h"
290 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
291 .define _gethostid
292 _gethostid: SYSTEM(SYS_gethostid)
293 gethostnam.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8e\0#include "syscall.h"
294 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
295 .define _gethostname
296 _gethostname: SYSTEM(SYS_gethostname)
297 getitimer.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\88\0#include "syscall.h"
298 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
299 .define _getitimer
300 _getitimer: SYSTEM(SYS_getitimer)
301 getpagesiz.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8e\0#include "syscall.h"
302 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
303 .define _getpagesize
304 _getpagesize: SYSTEM(SYS_getpagesize)
305 getpeernam.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8e\0#include "syscall.h"
306 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
307 .define _getpeername
308 _getpeername: SYSTEM(SYS_getpeername)
309 getpgrp.s\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
310 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
311 .define _getpgrp
312 _getpgrp: SYSTEM(SYS_getpgrp)
313 getpid.s\0\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
314 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
315 .define _getpid
316 _getpid: SYSTEM(SYS_getpid)
317 p_getpid.s\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\81\0#include "syscall.h"
318 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
319 .define __getpid
320 __getpid: SYSTEM(SYS_getpid)
321
322 getprio.s\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8e\0#include "syscall.h"
323 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
324 .define _getpriority
325 _getpriority: SYSTEM(SYS_getpriority)
326 getrlimit.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\88\0#include "syscall.h"
327 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
328 .define _getrlimit
329 _getrlimit: SYSTEM(SYS_getrlimit)
330 getrusage.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\88\0#include "syscall.h"
331 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
332 .define _getrusage
333 _getrusage: SYSTEM(SYS_getrusage)
334 _getrusage.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8a\0#include "syscall.h"
335 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
336 .define __getrusage
337 __getrusage: SYSTEM(SYS_getrusage)
338 getsocknam.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8e\0#include "syscall.h"
339 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
340 .define _getsockname
341 _getsockname: SYSTEM(SYS_getsockname)
342 getsockopt.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8b\0#include "syscall.h"
343 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
344 .define _getsockopt
345 _getsockopt: SYSTEM(SYS_getsockopt)
346 egettimday.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\91\0#include "syscall.h"
347 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
348 .define _gettimeofday
349 _gettimeofday: SYSTEM(SYS_gettimeofday)
350 e_gettimday.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\93\0#include "syscall.h"
351 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
352 .define __gettimeofday
353 __gettimeofday: SYSTEM(SYS_gettimeofday)
354
355 getuid.s\0y.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
356 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
357 .define _getuid
358 _getuid: SYSTEM(SYS_getuid)
359 Mioctl.s\0\0y.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
360 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
361 .define _ioctl
362 _ioctl: SYSTEM(SYS_ioctl)
363 _ioctl.s\0y.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0~\0#include "syscall.h"
364 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
365 .define __ioctl
366 __ioctl: SYSTEM(SYS_ioctl)
367 kill.s\0s\0y.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0y\0#include "syscall.h"
368 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
369 .define _kill
370 _kill: SYSTEM(SYS_kill)
371 c_kill.s\0\0y.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0{\0#include "syscall.h"
372 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
373 .define __kill
374 __kill: SYSTEM(SYS_kill)
375 lkillpg.s\0y.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
376 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
377 .define _killpg
378 _killpg: SYSTEM(SYS_killpg)
379 Mlink.s\0s\0y.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0y\0#include "syscall.h"
380 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
381 .define _link
382 _link: SYSTEM(SYS_link)
383 l_link.s\0\0y.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0{\0#include "syscall.h"
384 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
385 .define __link
386 __link: SYSTEM(SYS_link)
387 plisten.s\0y.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
388 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
389 .define _listen
390 _listen: SYSTEM(SYS_listen)
391 Mlseek.s\0\0y.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
392 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
393 .define _lseek
394 _lseek: SYSTEM(SYS_lseek)
395 _lseek.s\0y.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0~\0#include "syscall.h"
396 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
397 .define __lseek
398 __lseek: SYSTEM(SYS_lseek)
399 lstat.s\0\0y.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
400 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
401 .define _lstat
402 _lstat: SYSTEM(SYS_lstat)
403 madvise.s\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
404 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
405 .define _madvise
406 _madvise: SYSTEM(SYS_madvise)
407 mincore.s\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
408 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
409 .define _mincore
410 _mincore: SYSTEM(SYS_mincore)
411 mkdir.s\0s\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
412 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
413 .define _mkdir
414 _mkdir: SYSTEM(SYS_mkdir)
415 mknod.s\0s\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
416 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
417 .define _mknod
418 _mknod: SYSTEM(SYS_mknod)
419 mmap.s\0\0s\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0y\0#include "syscall.h"
420 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
421 .define _mmap
422 _mmap: SYSTEM(SYS_mmap)
423 dmount.s\0s\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
424 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
425 .define _mount
426 _mount: SYSTEM(SYS_mount)
427 mprotect.s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\85\0#include "syscall.h"
428 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
429 .define _mprotect
430 _mprotect: SYSTEM(SYS_mprotect)
431 gmremap.s\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
432 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
433 .define _mremap
434 _mremap: SYSTEM(SYS_mremap)
435 tmunmap.s\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
436 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
437 .define _munmap
438 _munmap: SYSTEM(SYS_munmap)
439 tnfssvc.s\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
440 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
441 .define _nfssvc
442 _nfssvc: SYSTEM(SYS_nfssvc)
443 tnice.c\0s\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0Ô\0nice(incr)
444 {
445         extern int errno;
446         int sav = errno;
447         int prio;
448
449         errno = 0;
450         prio = getpriority(0,0);
451         if (prio == -1 && errno) return -1;
452         if (setpriority(0,0,prio+incr) < 0) return -1;
453         errno = sav;
454         return 0;
455 }
456 open.s\0s\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0y\0#include "syscall.h"
457 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
458 .define _open
459 _open: SYSTEM(SYS_open)
460 r_open.s\0\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0{\0#include "syscall.h"
461 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
462 .define __open
463 __open: SYSTEM(SYS_open)
464 opause.c\0\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0#\0pause() {
465         sigpause(sigblock());
466 }
467 s_pause.c\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0&\0_pause() {
468         _sigpause(_sigblock());
469 }
470 pipe.s\0c\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0×\0#include "syscall.h"
471 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
472 .define _pipe
473 _pipe:
474         pea     SYS_pipe
475         trap    #0
476         bcs     1f
477         move.l  4(sp),a0
478         move.l  d0,(a0)+
479         move.l  d1,(a0)
480         clr.l   d0
481         rts
482 1:
483         jmp     cerror
484 ;_pipe.s\0\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0Ù\0#include "syscall.h"
485 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
486 .define __pipe
487 __pipe:
488         pea     SYS_pipe
489         trap    #0
490         bcs     1f
491         move.l  4(sp),a0
492         move.l  d0,(a0)+
493         move.l  d1,(a0)
494         clr.l   d0
495         rts
496 1:
497         jmp     cerror
498         profil.s\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
499 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
500 .define _profil
501 _profil: SYSTEM(SYS_profil)
502 0ptrace.s\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9d\0#include "syscall.h"
503 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
504 .define _ptrace
505 .extern _errno
506 _ptrace:
507         clr.l   _errno
508         SYSTEM(SYS_ptrace)
509 vquotactl.s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\85\0#include "syscall.h"
510 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
511 .define _quotactl
512 _quotactl: SYSTEM(SYS_quotactl)
513 rread.s\0l.s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0y\0#include "syscall.h"
514 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
515 .define _read
516 _read: SYSTEM(SYS_read)
517 S_read.s\0.s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0{\0#include "syscall.h"
518 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
519 .define __read
520 __read: SYSTEM(SYS_read)
521 qreadlink.s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\85\0#include "syscall.h"
522 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
523 .define _readlink
524 _readlink: SYSTEM(SYS_readlink)
525 rreadv.s\0.s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
526 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
527 .define _readv
528 _readv: SYSTEM(SYS_readv)
529 reboot.s\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0¥\0#include "syscall.h"
530 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
531 .define _reboot
532 _reboot:
533         pea     SYS_reboot
534         trap    #0
535         bcs     1f
536         stop    #0
537 1:
538         jmp     cerror
539 (recv.s\0s\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0y\0#include "syscall.h"
540 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
541 .define _recv
542 _recv: SYSTEM(SYS_recv)
543 orecvfrom.s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\85\0#include "syscall.h"
544 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
545 .define _recvfrom
546 _recvfrom: SYSTEM(SYS_recvfrom)
547         recvmsg.s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
548 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
549 .define _recvmsg
550 _recvmsg: SYSTEM(SYS_recvmsg)
551 rename.s\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
552 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
553 .define _rename
554 _rename: SYSTEM(SYS_rename)
555 grmdir.s\0\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
556 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
557 .define _rmdir
558 _rmdir: SYSTEM(SYS_rmdir)
559 sbrk.s\0\0\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\ 3\ 2#include "syscall.h"
560 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
561 .define _sbrk,_brk
562 _sbrk:
563         move.l  4(sp),d0
564         add.l   #3,d0
565         move.l  #~3,d1
566         and.l   d1,d0
567         move.l  d0,a0
568         move.l  .limhp,d0
569         add.l   #3,d0
570         and.l   d1,d0
571         move.l  d0,.limhp
572         add.l   d0,a0
573         move.l  a0,4(sp)
574         pea     17      ! not SYS_sbrk
575         trap    #0
576         bcs     1f
577         move.l  .limhp,d0
578         move.l  4(sp),.limhp
579         rts
580 1:
581         jmp     cerror
582
583 _brk:
584         move.l  4(sp),d0
585         add.l   #3,d0
586         move.l  #~3,d1
587         and.l   d1,d0
588         move.l  d0,4(sp)
589         pea     17
590         trap    #0
591         bcs     1b
592         move.l  4(sp),.limhp
593         clr.l   d0
594         rts
595 \0_sbrk.s\0\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\a\ 2#include "syscall.h"
596 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
597 .define __sbrk,__brk
598 __sbrk:
599         move.l  4(sp),d0
600         add.l   #3,d0
601         move.l  #~3,d1
602         and.l   d1,d0
603         move.l  d0,a0
604         move.l  .limhp,d0
605         add.l   #3,d0
606         and.l   d1,d0
607         move.l  d0,.limhp
608         add.l   d0,a0
609         move.l  a0,4(sp)
610         pea     17      ! not SYS_sbrk
611         trap    #0
612         bcs     1f
613         move.l  .limhp,d0
614         move.l  4(sp),.limhp
615         rts
616 1:
617         jmp     cerror
618
619 __brk:
620         move.l  4(sp),d0
621         add.l   #3,d0
622         move.l  #~3,d1
623         and.l   d1,d0
624         move.l  d0,4(sp)
625         pea     17
626         trap    #0
627         bcs     1b
628         move.l  4(sp),.limhp
629         clr.l   d0
630         rts
631 \0select.s\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
632 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
633 .define _select
634 _select: SYSTEM(SYS_select)
635 0send.s\0s\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0y\0#include "syscall.h"
636 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
637 .define _send
638 _send: SYSTEM(SYS_send)
639 lsendmsg.s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
640 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
641 .define _sendmsg
642 _sendmsg: SYSTEM(SYS_sendmsg)
643 sendto.s\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
644 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
645 .define _sendto
646 _sendto: SYSTEM(SYS_sendto)
647 gsetdomnam.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\94\0#include "syscall.h"
648 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
649 .define _setdomainname
650 _setdomainname: SYSTEM(SYS_setdomainname)
651 setdopt.s\0s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
652 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
653 .define _setdopt
654 _setdopt: SYSTEM(SYS_setdopt)
655 setgroups.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\88\0#include "syscall.h"
656 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
657 .define _setgroups
658 _setgroups: SYSTEM(SYS_setgroups)
659 sethostnam.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8e\0#include "syscall.h"
660 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
661 .define _sethostname
662 _sethostname: SYSTEM(SYS_sethostname)
663 setitimer.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\88\0#include "syscall.h"
664 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
665 .define _setitimer
666 _setitimer: SYSTEM(SYS_setitimer)
667 _setitimer.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8a\0#include "syscall.h"
668 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
669 .define __setitimer
670 __setitimer: SYSTEM(SYS_setitimer)
671 setpgrp.s\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
672 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
673 .define _setpgrp
674 _setpgrp: SYSTEM(SYS_setpgrp)
675 setprio.s\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8e\0#include "syscall.h"
676 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
677 .define _setpriority
678 _setpriority: SYSTEM(SYS_setpriority)
679 setregid.s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\85\0#include "syscall.h"
680 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
681 .define _setregid
682 _setregid: SYSTEM(SYS_setregid)
683 rsetreuid.s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\85\0#include "syscall.h"
684 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
685 .define _setreuid
686 _setreuid: SYSTEM(SYS_setreuid)
687 rsetrlimit.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\88\0#include "syscall.h"
688 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
689 .define _setrlimit
690 _setrlimit: SYSTEM(SYS_setrlimit)
691 setsockopt.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8b\0#include "syscall.h"
692 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
693 .define _setsockopt
694 _setsockopt: SYSTEM(SYS_setsockopt)
695 ysettimday.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\91\0#include "syscall.h"
696 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
697 .define _settimeofday
698 _settimeofday: SYSTEM(SYS_settimeofday)
699 eshutdown.s\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\85\0#include "syscall.h"
700 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
701 .define _shutdown
702 _shutdown: SYSTEM(SYS_shutdown)
703 tsigblock.s\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\85\0#include "syscall.h"
704 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
705 .define _sigblock
706 _sigblock: SYSTEM(SYS_sigblock)
707 t_sigblock.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\87\0#include "syscall.h"
708 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
709 .define __sigblock
710 __sigblock: SYSTEM(SYS_sigblock)
711 isignal.c\0.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\06\ 2static long masks[32];
712 static long flags[32];
713 void (*
714 signal(sig,handler))()
715         void (*handler)();
716 {
717         struct {
718                 void (*sv_handler)();
719                 long    sv_mask;
720                 long    sv_flags;
721         } v, ov;
722
723         v.sv_handler = handler;
724         v.sv_mask = masks[sig];
725         v.sv_flags = flags[sig];
726         if (sigvec(sig,&v, &ov) < 0) return (void (*)()) -1;
727         if (v.sv_mask != ov.sv_mask || v.sv_flags != ov.sv_flags) {
728                 v.sv_mask = ov.sv_mask;
729                 masks[sig] = ov.sv_mask;
730                 v.sv_flags = ov.sv_flags;
731                 flags[sig] = ov.sv_flags;
732                 if (sigvec(sig,&v,(char *) 0) < 0) return (void (*)()) -1;
733         }
734         return ov.sv_handler;
735 }
736 sigpause.s\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\85\0#include "syscall.h"
737 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
738 .define _sigpause
739 _sigpause: SYSTEM(SYS_sigpause)
740         _sigpause.s\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\87\0#include "syscall.h"
741 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
742 .define __sigpause
743 __sigpause: SYSTEM(SYS_sigpause)
744 lsigsetmask.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8b\0#include "syscall.h"
745 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
746 .define _sigsetmask
747 _sigsetmask: SYSTEM(SYS_sigsetmask)
748         _sigsetmask.s\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8d\0#include "syscall.h"
749 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
750 .define __sigsetmask
751 __sigsetmask: SYSTEM(SYS_sigsetmask)
752 vsigstack.s\0.s\0\0\0\0\0\ 2\ 2¤\ 1\0\0\85\0#include "syscall.h"
753 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
754 .define _sigstack
755 _sigstack: SYSTEM(SYS_sigstack)
756 esigtramp.s\0.s\0\0\0\0\0\ 2\ 2¤\ 1\0\0@\ 1.sect .text
757 .define __sigtramp
758 __sigtramp:
759         movem.l d0/d1/a0/a1,-(sp)
760         move.l  #__sigfunc,d1
761         move.l  0x10(sp),d0
762         lsl.l   #2,d0
763         add.l   d1,d0
764         move.l  d0,a0
765         move.l  (a0),a0
766         move.l  0x18(sp),-(sp)
767         move.l  0x18(sp),-(sp)
768         move.l  0x18(sp),-(sp)
769         jsr     (a0)
770         add.l   #12,sp
771         movem.l (sp)+,d0/d1/a0/a1
772         add.l   #8,sp
773         pea     0x8b
774         trap    #0
775 _sigvec.c\0\0.s\0\0\0\0\0\ 2\ 2¤\ 1\0\0±\ 2#include "syscall.h"
776 #include <errno.h>
777 struct sigvec { int (*handler)(); int mask,flags; };
778 int (*(_sigfunc[32]))();
779 extern int _sigtramp();
780 extern int errno;
781
782 _sigvec(sig,vec,ovec)
783         register struct sigvec *vec;
784         struct sigvec *ovec;
785 {
786         struct sigvec tmp;
787         int (*old)();
788
789         if ((unsigned) sig >= 32) {
790                 errno = EINVAL;
791                 return -1;
792         }
793         old = _sigfunc[sig];
794         if (vec) {
795                 tmp = *vec;
796                 vec = &tmp;
797                 if (vec->handler && vec->handler != (int (*)()) 1) {
798                         _sigfunc[sig] = vec->handler;
799                         vec->handler = _sigtramp;
800                 }
801         }
802         if (_syscall(SYS_sigvec,sig,vec,ovec) < 0) {
803                 _sigfunc[sig] = old;
804                 return -1;
805         }
806         if (ovec && ovec->handler == _sigtramp) {
807                 ovec->handler = old;
808         }
809         return 0;
810 }
811 \0sigvec.c\0\0\0.s\0\0\0\0\0\ 2\ 2¤\ 1\0\0¯\ 2#include "syscall.h"
812 #include <errno.h>
813 struct sigvec { int (*handler)(); int mask,flags; };
814 int (*(_sigfunc[32]))();
815 extern int _sigtramp();
816 extern int errno;
817
818 sigvec(sig,vec,ovec)
819         register struct sigvec *vec;
820         struct sigvec *ovec;
821 {
822         struct sigvec tmp;
823         int (*old)();
824
825         if ((unsigned) sig >= 32) {
826                 errno = EINVAL;
827                 return -1;
828         }
829         old = _sigfunc[sig];
830         if (vec) {
831                 tmp = *vec;
832                 vec = &tmp;
833                 if (vec->handler && vec->handler != (int (*)()) 1) {
834                         _sigfunc[sig] = vec->handler;
835                         vec->handler = _sigtramp;
836                 }
837         }
838         if (syscall(SYS_sigvec,sig,vec,ovec) < 0) {
839                 _sigfunc[sig] = old;
840                 return -1;
841         }
842         if (ovec && ovec->handler == _sigtramp) {
843                 ovec->handler = old;
844         }
845         return 0;
846 }
847 }socket.s\0\0\0.s\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
848 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
849 .define _socket
850 _socket: SYSTEM(SYS_socket)
851 tsocketpair.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8b\0#include "syscall.h"
852 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
853 .define _socketpair
854 _socketpair: SYSTEM(SYS_socketpair)
855 )sstk.s\0air.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0y\0#include "syscall.h"
856 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
857 .define _sstk
858 _sstk: SYSTEM(SYS_sstk)
859 Mstat.s\0air.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0y\0#include "syscall.h"
860 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
861 .define _stat
862 _stat: SYSTEM(SYS_stat)
863 Mstatfs.s\0r.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
864 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
865 .define _statfs
866 _statfs: SYSTEM(SYS_statfs)
867 sswapon.s\0r.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
868 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
869 .define _swapon
870 _swapon: SYSTEM(SYS_swapon)
871 ssymlink.s\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
872 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
873 .define _symlink
874 _symlink: SYSTEM(SYS_symlink)
875 sync.s\0.s\0.s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0y\0#include "syscall.h"
876 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
877 .define _sync
878 _sync: SYSTEM(SYS_sync)
879 s_syscall.s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0¸\0.sect .text
880 .define __syscall
881 __syscall:
882         move.l  4(sp),d0
883         move.l  (sp),4(sp)
884         move.l  d0,(sp)
885         trap    #0
886         bcs     1f
887         move.l  (sp),a0
888         jmp     (a0)
889 1:
890         move.l  (sp),a0
891         move.l  a0,-(sp)
892         jmp     cerror
893 syscall.s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\0.sect .text
894 .define _syscall
895 _syscall:
896         move.l  4(sp),d0
897         move.l  (sp),4(sp)
898         move.l  d0,(sp)
899         trap    #0
900         bcs     1f
901         move.l  (sp),a0
902         jmp     (a0)
903 1:
904         move.l  (sp),a0
905         move.l  a0,-(sp)
906         jmp     cerror
907 time.c\0.s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9d\0long
908 time(loc)
909         long *loc;
910 {
911         struct { long l1,l2; } t1;
912
913         if (gettimeofday(&t1, (char *) 0) < 0) {
914                 return -1;
915         }
916         if (loc) *loc = t1.l1;
917         return t1.l1;
918 }
919 etimes.c\0s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0b\ 1#include <sys/types.h>
920
921 #define Xval(xx)        ((xx).l1*60+(xx).l2/(100000/6))
922
923 times(bp)
924         struct { time_t l1,l2,l3,l4;} *bp;
925 {
926         struct { struct { long l1,l2; }s1,s2; long x[20]; } t;
927         if (getrusage(0,&t) < 0) return -1;
928         bp->l1 = Xval(t.s1);
929         bp->l2 = Xval(t.s2);
930         if (getrusage(-1,&t) < 0) return -1;
931         bp->l3 = Xval(t.s1);
932         bp->l4 = Xval(t.s2);
933         return 0;
934 }
935 _times.c\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0e\ 1#include <sys/types.h>
936
937 #define Xval(xx)        ((xx).l1*60+(xx).l2/(100000/6))
938
939 _times(bp)
940         struct { time_t l1,l2,l3,l4;} *bp;
941 {
942         struct { struct { long l1,l2; }s1,s2; long x[20]; } t;
943         if (_getrusage(0,&t) < 0) return -1;
944         bp->l1 = Xval(t.s1);
945         bp->l2 = Xval(t.s2);
946         if (_getrusage(-1,&t) < 0) return -1;
947         bp->l3 = Xval(t.s1);
948         bp->l4 = Xval(t.s2);
949         return 0;
950 }
951         truncate.s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\85\0#include "syscall.h"
952 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
953 .define _truncate
954 _truncate: SYSTEM(SYS_truncate)
955 sumask.s\0.s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
956 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
957 .define _umask
958 _umask: SYSTEM(SYS_umask)
959 unlink.s\0s\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
960 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
961 .define _unlink
962 _unlink: SYSTEM(SYS_unlink)
963 c_unlink.s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\81\0#include "syscall.h"
964 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
965 .define __unlink
966 __unlink: SYSTEM(SYS_unlink)
967 tumount.s\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
968 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
969 .define _umount
970 _umount: SYSTEM(SYS_umount)
971 )unmount.s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\81\0#include "syscall.h"
972 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
973 .define _unmount
974 _unmount: SYSTEM(SYS_umount)
975 tutime.c\0s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0¿\0#include <sys/types.h>
976
977 utime(file, timep)
978         char *file;
979         time_t timep[2];
980 {
981         struct { long l1,l2,l3,l4; } x;
982
983         x.l2 = x.l4 = 0;
984         x.l1 = timep[0];
985         x.l3 = timep[1];
986         return utimes(file,&x);
987 }
988 autimes.s\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
989 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
990 .define _utimes
991 _utimes: SYSTEM(SYS_utimes)
992
993 vhangup.s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
994 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
995 .define _vhangup
996 _vhangup: SYSTEM(SYS_vhangup)
997 wait.s\0.s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0Õ\0#include "syscall.h"
998 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
999 .define _wait
1000 _wait:  
1001         pea     SYS_wait
1002         trap    #0
1003         bcs     1f
1004         tst.l   4(sp)
1005         beq     2f
1006         move.l  4(sp),a0
1007         move.l  d1,(a0)
1008 2:
1009         rts
1010 1:
1011         jmp     cerror
1012 -_wait.s\0s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0×\0#include "syscall.h"
1013 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
1014 .define __wait
1015 __wait: 
1016         pea     SYS_wait
1017         trap    #0
1018         bcs     1f
1019         tst.l   4(sp)
1020         beq     2f
1021         move.l  4(sp),a0
1022         move.l  d1,(a0)
1023 2:
1024         rts
1025 1:
1026         jmp     cerror
1027 ;write.s\0s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0|\0#include "syscall.h"
1028 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
1029 .define _write
1030 _write: SYSTEM(SYS_write)
1031 _write.s\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0~\0#include "syscall.h"
1032 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
1033 .define __write
1034 __write: SYSTEM(SYS_write)
1035 writev.s\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\7f\0#include "syscall.h"
1036 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
1037 .define _writev
1038 _writev: SYSTEM(SYS_writev)
1039 #_exit.s\0\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8d\0#include "syscall.h"
1040 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
1041 .define __exit
1042 __exit:
1043         pea     SYS_exit
1044         trap    #0
1045         jmp     cerror
1046 tstty.c\0\0\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0x\0#include <sgtty.h>
1047 int
1048 stty(fildes,argp)
1049         int fildes ;
1050         struct sgttyb *argp ;
1051 {
1052         return ioctl(fildes,TIOCSETP,argp) ;
1053 }
1054 _stty.c\0\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0z\0#include <sgtty.h>
1055 int
1056 _stty(fildes,argp)
1057         int fildes ;
1058         struct sgttyb *argp ;
1059 {
1060         return _ioctl(fildes,TIOCSETP,argp) ;
1061 }
1062 gtty.c\0\0\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0x\0#include <sgtty.h>
1063 int
1064 gtty(fildes,argp)
1065         int fildes ;
1066         struct sgttyb *argp ;
1067 {
1068         return ioctl(fildes,TIOCGETP,argp) ;
1069 }
1070 _gtty.c\0\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0z\0#include <sgtty.h>
1071 int
1072 _gtty(fildes,argp)
1073         int fildes ;
1074         struct sgttyb *argp ;
1075 {
1076         return _ioctl(fildes,TIOCGETP,argp) ;
1077 }
1078 getegid.s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9a\0#include "syscall.h"
1079 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
1080 .define _getegid
1081 _getegid:
1082         pea     SYS_getgid
1083         trap    #0
1084         move.l  d1,d0
1085         rts
1086 geteuid.s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9a\0#include "syscall.h"
1087 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
1088 .define _geteuid
1089 _geteuid:
1090         pea     SYS_getuid
1091         trap    #0
1092         move.l  d1,d0
1093         rts
1094 getppid.s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9a\0#include "syscall.h"
1095 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
1096 .define _getppid
1097 _getppid:
1098         pea     SYS_getpid
1099         trap    #0
1100         move.l  d1,d0
1101         rts
1102 lockf.c\0s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0;\ 2#include <errno.h>
1103 lockf(fildes, mode, size)
1104         long size;
1105 {
1106         struct {
1107                 short type, whence; long start, end; short pid;
1108         } x;
1109         int i = 8;
1110         extern int errno;
1111
1112         x.type = 2;
1113         x.whence = 1;
1114         x.start = 0;
1115         x.end = size;
1116         switch(mode) {
1117         case 0:
1118                 x.type = 3;
1119                 break;
1120         case 1:
1121                 i = 9;
1122                 break;
1123         case 2:
1124                 break;
1125         case 3:
1126                 if (fcntl(fildes,7,&x) == -1) {
1127                         return -1;
1128                 }
1129                 if (x.type == 3) {
1130                         return 0;
1131                 }
1132                 errno = EACCES;
1133                 return -1;
1134         default:
1135                 errno = EINVAL;
1136                 return -1;
1137         }
1138         if (fcntl(fildes,i,&x) == -1) {
1139                 if (errno = 79) {
1140                         errno = 78;
1141                 }
1142                 return -1;
1143         }
1144 }
1145 gsetgid.c\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0%\0setgid(u)
1146 {
1147         return setregid(u,u);
1148 }
1149 ,setuid.c\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0%\0setuid(u)
1150 {
1151         return setreuid(u,u);
1152 }
1153 ,stime.c\0\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0s\0stime(tp)
1154         long *tp;
1155 {
1156         struct { long l1,l2; } x;
1157
1158         x.l1 = *tp;
1159         x.l2 = 0;
1160         return settimeofday(&x, (char *) 0);
1161 }
1162 itell.c\0\0\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0:\0long
1163 tell(f)
1164 {
1165         long lseek();
1166
1167         return lseek(f, 0L, 1);
1168 }
1169 ulimit.c\0\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0°\ 1#include <errno.h>
1170
1171 ulimit(cmd, newlimit)
1172         long newlimit;
1173 {
1174         extern int errno;
1175         struct {
1176                 long soft, hard;
1177         } x;
1178                 
1179         switch(cmd) {
1180         case 1:
1181                 if (getrlimit(1, &x) < 0) return -1;
1182                 return ((x.soft + 511) & ~511) >> 9;
1183         case 2:
1184                 x.soft = x.hard = (newlimit << 9);
1185                 if (setrlimit(1, &x) < 0) return -1;
1186                 return x.soft;
1187         case 3:
1188                 if (getrlimit(2, &x) < 0) return -1;
1189                 return x.soft;
1190         default:
1191                 errno = EINVAL;
1192                 return -1;
1193         }
1194 }
1195 vadvise.s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\82\0#include "syscall.h"
1196 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
1197 .define _vadvise
1198 _vadvise: SYSTEM(SYS_vadvise)
1199 vfork.s\0s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0ü\0#include "syscall.h"
1200 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
1201 .define _vfork
1202 _vfork:
1203         move.l  (sp)+,a0
1204         pea     SYS_vfork
1205         trap    #0
1206         bcs     1f
1207         tst.l   d1
1208         bne     2f
1209         jmp     (a0)
1210 1:
1211         move.l  d0,_errno
1212         move.l  #-1,d0
1213         jmp     (a0)
1214 2:
1215         clr.l   d0
1216         jmp     (a0)
1217 wait3.s\0s\0\0s\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0        \ 1#include "syscall.h"
1218 .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
1219 .define _wait3
1220 _wait3:
1221         move.l  8(sp),d0
1222         move.l  12(sp),d1
1223         pea     SYS_wait
1224         or.b    #0x1f,ccr
1225         trap    #0
1226         bcc     1f
1227         jmp     cerror
1228 1:
1229         tst.l   4(sp)
1230         beq     1f
1231         move.l  4(sp),a0
1232         move.l  d1,(a0)
1233 1:
1234         rts
1235