3 # This file is used to generate the system call lists for Dev86(elks)
4 # ELKSemu and elks itself. Changes to this may require changes in
5 # all three of those packages.
8 # * = Needs libc code (Prefix __)
9 # - = Obsolete/not required
10 # @ = May be required later
12 # An initial plus on the call number specifies that this call is
13 # implemented in the kernel.
15 # Package versions are matched.
16 # Dev86/Elksemu version - 0.13.1
17 # Elks version - 0.0.66
19 # Name No Args Flag, comment
21 exit +1 1 * c exit does stdio, _exit in crt0
28 creat 8 0 - Not needed alias for open
31 execve +11 3 * execve minix style
33 time 13 1 - Use settimeofday
37 brk +17 1 * This is only to tell the system
39 lseek +19 3 * nb 2nd arg is an io ptr to long not a long.
40 getpid +20 1 * this gets both pid & ppid
44 getuid +24 1 * this gets both uid and euid
45 stime 25 2 - this must not exist - even as a libc.
46 ptrace 26 4 @ adb/sdb/dbx need this.
61 dup +41 1 . There is a fcntl lib function too.
63 times 43 2 * 2nd arg is pointer for long ret val.
67 getgid 47 1 * this gets both gid and egid
68 signal 48 2 * have put the despatch table in user space.
69 getinfo 49 1 @ possible? gets pid,ppid,uid,euid etc
71 acct 51 1 @ Accounting to named file (off if null)
72 phys 52 3 - Replaced my mmap()
73 lock 53 1 @ Prevent swapping for this proc if flg!=0
74 ioctl +54 3 . make this and fcntl the same ?
75 reboot +55 3 . the magic number is 0xfee1,0xdead,...
76 mpx 56 2 - Replaced by fifos and select.
87 # Name No Args Flag&comment
89 # ( awk '{$2=NR+500;OFS="\t";print ;}'| expand -24,32,40 | unexpand ) <<!
96 FLOCK 506 2 - Use fcntl
99 FTIME 509 1 - Use gettimeofday
105 GETPGRP 515 0 - Use getpgid(0)
110 IPC 520 5 @ This is for all SYSV IPC (c/f mpx)
111 LLSEEK 521 3 @ 2nd arg is ptr to two longs
120 SCHED_GETPARAM 530 X @
121 SCHED_GETSCHEDULER 531 X @
122 SCHED_GET_PRIORITY_MAX 532 X @
123 SCHED_GET_PRIORITY_MIN 533 X @
124 SCHED_RR_GET_INTERVAL 534 X @
125 SCHED_SETPARAM 535 X @
126 SCHED_SETSCHEDULER 536 X @
128 SETDOMAINNAME 538 X @
153 SYSINFO 563 X - Use /proc
154 SYSLOG 564 X @ Poss fifo & libc implementation.