Pristine Ack-5.5
[Ack-5.5.git] / mach / i86 / libsys / libmon_s.a
1 eÿ_alarm.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\93\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
2 .define __alarm
3 .extern __alarm, cerror
4 __alarm:        int 0x9b
5         jb 9f
6         ret
7 9:
8         jmp cerror
9 \0_sbrk.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\17\ 1.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
10 .define __sbrk
11 __sbrk:
12 push    bp
13 mov     bp,sp
14 mov     ax,4(bp)
15 mov     bx,(.limhp)
16 add     ax,bx
17 mov     cx,sp
18 sub     cx,128
19 sub     cx,ax
20 jbe     1f
21 mov     (.limhp),ax
22 sub     ax,bx
23 jbe     2f
24 call    xbrk
25 2:
26 mov     ax,bx
27 pop     bp
28 ret
29 1:
30 mov     ax,0xc
31 pop     bp
32 jmp     cerror
33 \0_brk.s\0\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0k\ 1.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
34 .define __brk
35 .define xbrk
36 __brk:  
37         mov bx,sp
38         mov ax,2(bx)
39         mov cx,sp
40         sub cx,128
41         jbe 1f
42         mov bx,(.limhp)
43         mov (.limhp),ax
44         sub ax,bx
45         jbe 2f
46         call xbrk
47 2:
48         xor ax,ax
49         ret
50 1:
51         mov ax,0xc
52         jmp cerror
53 xbrk:
54         push di
55         mov di,bx
56         mov cx,ax
57         xor ax,ax
58         shr cx,1
59         repz stos
60         jae 3f
61         stosb
62 3:
63         pop di
64         ret
65 \0_close.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9d\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
66 .define __close
67 .extern __close, cerror
68 __close:        int 0x86
69         jb 9f
70         xor ax,ax
71         ret
72 9: jmp cerror
73  _creat.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\92\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
74 .define __creat
75 .extern __creat, cerror
76 __creat:        int 0x88
77         jb 9f
78         ret
79 9: jmp cerror
80 _dup.s\0s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8d\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
81
82 .define __dup
83 .extern __dup, cerror
84 __dup:  int 0xc9
85         jb 9f
86         ret
87 9: jmp cerror
88 r_execl.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\18\ 1.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
89
90 .define __execl
91 .extern __execl, _environ, __execve
92 __execl:
93         push    si
94         push    di
95         push    bp
96         mov     bp,sp
97         push    (_environ)
98         lea     ax,10(bp)
99         push    ax
100         push    8(bp)
101         call    __execve
102         add     sp,6
103         mov     sp,bp
104         pop     bp
105         pop     di
106         pop     si
107         ret
108 _execve.s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\96\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
109 .define __execve
110 .extern __execve, cerror
111 __execve:
112         int 0x8b
113         jb 9f
114         ret
115 9: jmp cerror
116 _fork.s\0s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0§\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
117 .define __fork
118 .extern __fork, cerror
119 __fork: int 0x82
120         jmp 1f
121         jae 2f
122         jmp cerror
123 1:
124         xor ax,ax
125 2:
126         ret
127         _fstat.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9d\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
128 .define __fstat
129 .extern __fstat, cerror
130 __fstat:        int 0x9c
131         jb 9f
132         xor ax,ax
133         ret
134 9: jmp cerror
135 x_ftime.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\93\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
136 .define __ftime
137 .extern __ftime, cerror
138 __ftime:        int 0xa3
139         jb 9f
140         ret
141 9:
142         jmp cerror
143 m_getpid.s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\96\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
144 .define __getpid
145 .extern __getpid, cerror
146 __getpid:       int 0x94
147         jb 9f
148         ret
149 9:
150         jmp cerror
151 _gtty.s\0s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0Ø\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
152 .define __gtty
153 .extern __gtty, __ioctl
154 __gtty:
155         push    bp
156         mov     bp,sp
157 push 6(bp)
158 mov ax,0x5401
159 push ax
160 push 4(bp)
161 call __ioctl
162 add sp,6
163 mov sp,bp
164 pop bp
165 ret
166 _ioctl.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\92\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
167 .define __ioctl
168 .extern __ioctl, cerror
169 __ioctl:        int 0xb6
170         jb 9f
171         ret
172 9: jmp cerror
173 _kill.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9a\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
174 .define __kill
175 .extern __kill, cerror
176 __kill: int 0xa5
177         jb 9f
178         xor ax,ax
179         ret
180 9: jmp cerror
181 _link.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8f\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
182 .define __link
183 .extern __link, cerror
184 __link: int 0x89
185         jb 9f
186         ret
187 9: jmp cerror
188 j_lseek.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\92\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
189 .define __lseek
190 .extern __lseek, cerror
191 __lseek:        int 0x93
192         jb 9f
193         ret
194 9: jmp cerror
195 _open.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8f\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
196 .define __open
197 .extern __open, cerror
198 __open: int 0x85
199         jb 9f
200         ret
201 9: jmp cerror
202 o_pause.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\93\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
203 .define __pause
204 .extern __pause, cerror
205 __pause:        int 0x9d
206         jb 9f
207         ret
208 9:
209         jmp cerror
210 c_pipe.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9a\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
211 .define __pipe
212 .extern __pipe, cerror
213 __pipe: int 0xaa
214         jb 9f
215         xor ax,ax
216         ret
217 9: jmp cerror
218 _read.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8f\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
219 .define __read
220 .extern __read, cerror
221 __read: int 0x83
222         jb 9f
223         ret
224 9: jmp cerror
225 j_unlink.s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0 \0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
226 .define __unlink
227 .extern __unlink, cerror
228 __unlink:       int 0x8a
229         jb 9f
230         xor ax,ax
231         ret
232 9: jmp cerror
233 _wait.s\0s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0X\ 1.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
234 .define __wait
235 .extern __wait, cerror
236 __wait:
237         mov bx,sp
238         mov ax,2        ! void info about unused memory
239         ! Should be 0 according to /usr/include/sys.s, but
240         ! that doesn't work
241         push ax
242         push 2(bx)
243         push ax         ! dummy return address
244         int 0x87
245         jb 9f
246         add sp,6
247         ret
248 9:      add sp,6
249         jmp cerror
250 _write.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\92\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
251 .define __write
252 .extern __write, cerror
253 __write:        int 0x84
254         jb 9f
255         ret
256 9: jmp cerror
257 exit.s\0s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0Ê\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
258 .define _exit
259 .extern _exit, __cleanup, __exit
260 _exit:
261         push    bp
262         mov     bp,sp
263 call __cleanup
264 push 4(bp)
265 call __exit
266 pop si
267 mov sp,bp
268 pop bp
269 ret
270 _exit.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0Æ\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
271 .define __exit
272 .sect .text
273 __exit:
274         mov bx,sp
275         xor ax,ax
276         push ax ! unused memory
277         push 2(bx)
278         push ax ! dummy return address
279         int 0x81
280 abort.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0º\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
281 .define _abort
282 .extern _abort
283 _abort: push    si
284         push    di
285         push    bp
286         mov     bp,sp
287         int     128
288         mov     sp,bp
289         pop     bp
290         pop     di
291         pop     si
292         ret
293 access.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9e\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
294 .define _access
295 .extern _access, cerror
296 _access:        int 0xa1
297         jb 9f
298         xor ax,ax
299         ret
300 9:
301         jmp cerror
302 chdir.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9a\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
303 .define _chdir
304 .extern _chdir, cerror
305 _chdir: int 0x8c
306         jb 9f
307         xor ax,ax
308         ret
309 9: jmp cerror
310 chmod.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9a\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
311 .define _chmod
312 .extern _chmod, cerror
313 _chmod: int 0x8f
314         jb 9f
315         xor ax,ax
316         ret
317 9: jmp cerror
318 chown.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9a\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
319 .define _chown
320 .extern _chown, cerror
321 _chown: int 0x90
322         jb 9f
323         xor ax,ax
324         ret
325 9: jmp cerror
326 cleanup.s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\96\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
327 .define __cleanup
328 .extern __cleanup
329 __cleanup:
330         push    bp
331         mov     bp,sp
332 mov sp,bp
333 pop bp
334 ret
335 close.s\0s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9a\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
336 .define _close
337 .extern _close, cerror
338 _close: int 0x86
339         jb 9f
340         xor ax,ax
341         ret
342 9: jmp cerror
343 creat.s\0s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8f\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
344 .define _creat
345 .extern _creat, cerror
346 _creat: int 0x88
347         jb 9f
348         ret
349 9: jmp cerror
350 jdup.s\0s\0s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8a\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
351
352 .define _dup
353 .extern _dup, cerror
354 _dup:   int 0xc9
355         jb 9f
356         ret
357 9: jmp cerror
358 execl.s\0s\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\13\ 1.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
359
360 .define _execl
361 .extern _execl, _environ, _execve
362 _execl:
363         push    si
364         push    di
365         push    bp
366         mov     bp,sp
367         push    (_environ)
368         lea     ax,10(bp)
369         push    ax
370         push    8(bp)
371         call    _execve
372         add     sp,6
373         mov     sp,bp
374         pop     bp
375         pop     di
376         pop     si
377         ret
378 texecle.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0?\ 1.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
379 .define _execle
380 .extern _execle, _execve
381 _execle:
382         push    si
383         push    di
384         push    bp
385         mov     bp,sp
386         lea     si,10(bp)
387 1:      mov     di,si
388         add     si,2
389         cmp     (di),0
390         jne     1b
391         push    (si)
392         lea     ax,10(bp)
393         push    ax
394         push    8(bp)
395         call    _execve
396         add     sp,6
397         mov     sp,bp
398         pop     bp
399         pop     di
400         pop     si
401         ret
402
403 execv.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0Ó\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
404 .define _execv
405 .extern _execv, _environ, cerror
406 _execv:
407         mov     bx,sp
408         push    (_environ)
409         push    4(bx)
410         push    2(bx)
411         push    ax
412         int     0xbb
413         add     sp,8
414         jmp     cerror
415 sexecve.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\93\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
416 .define _execve
417 .extern _execve, cerror
418 _execve:
419         int 0x8b
420         jb 9f
421         ret
422 9: jmp cerror
423 ptime.s\0s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0o\ 1.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
424 .define _time
425 .extern _time, _ftime
426 _time:
427         push    si
428         push    di
429         push    bp
430         mov     bp,sp
431         sub     sp,10
432         lea     ax,-10(bp)
433         push    ax
434         call    _ftime
435         add     sp,2
436         cmp     8(bp),0
437         je      1f
438         mov     ax,-10(bp)
439         mov     dx,-8(bp)
440         mov     di,8(bp)
441         mov     (di),ax
442         mov     2(di),dx
443 1:      mov     ax,-10(bp)
444         mov     dx,-8(bp)
445         mov     sp,bp
446         pop     bp
447         pop     di
448         pop     si
449         ret
450 \0exece.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8f\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
451 .define _exece
452 .extern _exece, cerror
453 _exece: int 0xdb
454         jb 9f
455         ret
456 9: jmp cerror
457         fork.s\0\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0¤\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
458 .define _fork
459 .extern _fork, cerror
460 _fork:  int 0x82
461         jmp 1f
462         jae 2f
463         jmp cerror
464 1:
465         xor ax,ax
466 2:
467         ret
468 fstat.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9a\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
469 .define _fstat
470 .extern _fstat, cerror
471 _fstat: int 0x9c
472         jb 9f
473         xor ax,ax
474         ret
475 9: jmp cerror
476 getgid.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\93\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
477 .define _getgid
478 .extern _getgid, cerror
479 _getgid:        int 0xaf
480         jb 9f
481         ret
482 9:
483         jmp cerror
484 cgetpid.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\93\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
485 .define _getpid
486 .extern _getpid, cerror
487 _getpid:        int 0x94
488         jb 9f
489         ret
490 9:
491         jmp cerror
492 cgetuid.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\93\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
493 .define _getuid
494 .extern _getuid, cerror
495 _getuid:        int 0x98
496         jb 9f
497         ret
498 9:
499         jmp cerror
500 cgtty.s\0s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0Ó\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
501 .define _gtty
502 .extern _gtty, _ioctl
503 _gtty:
504         push    bp
505         mov     bp,sp
506 push 6(bp)
507 mov ax,0x5401
508 push ax
509 push 4(bp)
510 call _ioctl
511 add sp,6
512 mov sp,bp
513 pop bp
514 ret
515 )stty.s\0s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0Ó\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
516 .define _stty
517 .extern _stty, _ioctl
518 _stty:
519         push    bp
520         mov     bp,sp
521 push 6(bp)
522 mov ax,0x5402
523 push ax
524 push 4(bp)
525 call _ioctl
526 add sp,6
527 mov sp,bp
528 pop bp
529 ret
530 )ioctl.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8f\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
531 .define _ioctl
532 .extern _ioctl, cerror
533 _ioctl: int 0xb6
534         jb 9f
535         ret
536 9: jmp cerror
537 0kill.s\0\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\97\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
538 .define _kill
539 .extern _kill, cerror
540 _kill:  int 0xa5
541         jb 9f
542         xor ax,ax
543         ret
544 9: jmp cerror
545 ulink.s\0\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8c\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
546 .define _link
547 .extern _link, cerror
548 _link:  int 0x89
549         jb 9f
550         ret
551 9: jmp cerror
552 lseek.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8f\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
553 .define _lseek
554 .extern _lseek, cerror
555 _lseek: int 0x93
556         jb 9f
557         ret
558 9: jmp cerror
559  mknod.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9a\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
560 .define _mknod
561 .extern _mknod, cerror
562 _mknod: int 0x8e
563         jb 9f
564         xor ax,ax
565         ret
566 9: jmp cerror
567 mount.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9a\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
568 .define _mount
569 .extern _mount, cerror
570 _mount: int 0x95
571         jb 9f
572         xor ax,ax
573         ret
574 9: jmp cerror
575 nice.s\0\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8d\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
576 .define _nice
577 .extern _nice, cerror
578 _nice:  int 0xa2
579         jb 9f
580         ret
581 9:
582         jmp cerror
583 :open.s\0\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8c\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
584 .define _open
585 .extern _open, cerror
586 _open:  int 0x85
587         jb 9f
588         ret
589 9: jmp cerror
590 pipe.s\0\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\97\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
591 .define _pipe
592 .extern _pipe, cerror
593 _pipe:  int 0xaa
594         jb 9f
595         xor ax,ax
596         ret
597 9: jmp cerror
598 oprofil.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\93\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
599 .define _profil
600 .extern _profil, cerror
601 _profil:        int 0xac
602         jb 9f
603         ret
604 9:
605         jmp cerror
606 rread.s\0s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8c\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
607 .define _read
608 .extern _read, cerror
609 _read:  int 0x83
610         jb 9f
611         ret
612 9: jmp cerror
613 sbrk.s\0s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0_\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
614 .define _sbrk
615 _sbrk:
616         jmp __sbrk
617 obrk.s\0\0s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0]\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
618 .define _brk
619 _brk:   
620         jmp __brk
621 ksetgid.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9c\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
622 .define _setgid
623 .extern _setgid, cerror
624 setgid: int 0xae
625         jb 9f
626         xor ax,ax
627         ret
628 9: jmp cerror
629 setuid.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9d\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
630 .define _setuid
631 .extern _setuid, cerror
632 _setuid:        int 0x97
633         jb 9f
634         xor ax,ax
635         ret
636 9: jmp cerror
637
638 signal.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0³\ 2.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
639 .define _signal
640 .extern _signal, cerror
641 NSIG=16
642 _signal:        mov     bx,sp
643         mov cx,4(bx)
644         mov bx,2(bx)
645         cmp bx,NSIG
646         jae 1f
647         shl bx,1
648         mov dx,dvect(bx)
649         cmp cx,1
650         jbe 2f
651         mov dvect(bx),cx
652         mov bx,sp
653         mov 4(bx),entry
654         mov bx,dx
655         int 0xb0
656         mov dx,bx
657         mov bx,sp
658         mov 4(bx),cx
659         jb 3f
660         jmp 4f
661 2:
662         int 0xb0
663         jb 3f
664         mov dvect(bx),cx
665 4:
666         cmp ax,1
667         jbe 5f
668         mov ax,dx
669 5:
670         ret
671 1:
672         mov ax,22
673 3:
674         jmp cerror
675
676 entry:
677         push bx
678         push cx
679         push dx
680         push di
681         push si
682         mov bx,sp
683         mov di,10(bx)
684         mov 10(bx),ax
685         push di
686         shl di,1
687         call dvect(di)
688         add sp,2
689         pop si
690         pop di
691         pop dx
692         pop cx
693         pop bx
694         pop ax
695         popf
696         ret
697 .sect .bss
698 dvect:  .space 2*NSIG
699 .sect .text
700 \0stat.s\0s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\97\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
701 .define _stat
702 .extern _stat, cerror
703 _stat:  int 0x92
704         jb 9f
705         xor ax,ax
706         ret
707 9: jmp cerror
708 2sync.s\0s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8d\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
709 .define _sync
710 .extern _sync, cerror
711 _sync:  int 0xa4
712         jb 9f
713         ret
714 9:
715         jmp cerror
716 mumount.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9e\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
717 .define _umount
718 .extern _umount, cerror
719 _umount:        int 0x96
720         jb 9f
721         xor ax,ax
722         ret
723 9:
724         jmp cerror
725 unlink.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9d\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
726 .define _unlink
727 .extern _unlink, cerror
728 _unlink:        int 0x8a
729         jb 9f
730         xor ax,ax
731         ret
732 9: jmp cerror
733
734 wait.s\0s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0U\ 1.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
735 .define _wait
736 .extern _wait, cerror
737 _wait:
738         mov bx,sp
739         mov ax,2        ! void info about unused memory
740         ! Should be 0 according to /usr/include/sys.s, but
741         ! that doesn't work
742         push ax
743         push 2(bx)
744         push ax         ! dummy return address
745         int 0x87
746         jb 9f
747         add sp,6
748         ret
749 9:      add sp,6
750         jmp cerror
751
752 write.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\8f\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
753 .define _write
754 .extern _write, cerror
755 _write: int 0x84
756         jb 9f
757         ret
758 9: jmp cerror
759  cerror.s\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\9f\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
760 .define cerror
761 .extern cerror
762 .extern _errno
763 cerror:
764         mov (_errno),ax
765         mov dx,-1
766         mov ax,dx
767         ret
768 !error.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0n\0.sect .text; .sect .rom; .sect .data; .sect .bss
769 .define _errno
770 .extern _errno
771
772 _errno:
773         .space 2
774 .sect .text
775 pause.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\90\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
776 .define _pause
777 .extern _pause, cerror
778 _pause: int 0x9d
779         jb 9f
780         ret
781 9:
782         jmp cerror
783 alarm.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\90\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
784 .define _alarm
785 .extern _alarm, cerror
786 _alarm: int 0x9b
787         jb 9f
788         ret
789 9:
790         jmp cerror
791 ftime.s\0\0\0\0\0\0\0\0\0\0\0\ 2\ 2¤\ 1\0\0\90\0.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
792 .define _ftime
793 .extern _ftime, cerror
794 _ftime: int 0xa3
795         jb 9f
796         ret
797 9:
798         jmp cerror