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.
7 # '.' = Ok, with comment
8 # '*' = Needs libc code (Prefix __)
9 # '-' = Obsolete/not required
10 # '@' = May be required later
11 # '=' = Depends on stated config variable
13 # An initial plus on the call number specifies that this call is
14 # implemented in the kernel.
17 # Name No Args Flag, comment
19 exit +1 1 * c exit does stdio, _exit in crt0
26 creat 8 0 - Not needed alias for open
29 execve +11 3 * execve minix style
31 time 13 1 - Use settimeofday
35 brk +17 1 * This is only to tell the system
37 lseek +19 3 * nb 2nd arg is an io ptr to long not a long.
38 getpid +20 1 * this gets both pid & ppid
42 getuid +24 1 * this gets both uid and euid
43 stime 25 2 - this must not exist - even as a libc.
44 ptrace 26 4 @ adb/sdb/dbx need this.
59 dup +41 1 . There is a fcntl lib function too.
61 times 43 2 * 2nd arg is pointer for long ret val.
65 getgid 47 1 * this gets both gid and egid
66 signal +48 2 * have put the despatch table in user space.
67 getinfo 49 1 @ possible? gets pid,ppid,uid,euid etc
69 acct 51 1 @ Accounting to named file (off if null)
70 phys 52 3 - Replaced by mmap()
71 lock 53 1 @ Prevent swapping for this proc if flg!=0
72 ioctl +54 3 . make this and fcntl the same ?
73 reboot +55 3 . the magic number is 0xfee1,0xdead,...
74 mpx 56 2 - Replaced by fifos and select.
81 select +63 5 . 5 paramaters is possible
83 insmod 65 1 - Removed support for modules
92 knlvsn +74 1 = CONFIG_SYS_VERSION
94 # Name No Args Flag&comment
96 # ( awk '{$2=NR+500;OFS="\t";print ;}'| expand -24,32,40 | unexpand ) <<!
103 FLOCK 506 2 - Use fcntl
106 FTIME 509 1 - Use gettimeofday
112 GETPGRP 515 0 - Use getpgid(0)
117 IPC 520 5 @ This is for all SYSV IPC (c/f mpx)
118 LLSEEK 521 3 @ 2nd arg is ptr to two longs
127 SCHED_GETPARAM 530 X @
128 SCHED_GETSCHEDULER 531 X @
129 SCHED_GET_PRIORITY_MAX 532 X @
130 SCHED_GET_PRIORITY_MIN 533 X @
131 SCHED_RR_GET_INTERVAL 534 X @
132 SCHED_SETPARAM 535 X @
133 SCHED_SETSCHEDULER 536 X @
135 SETDOMAINNAME 538 X @
160 SYSINFO 563 X - Use /proc
161 SYSLOG 564 X @ Poss fifo & libc implementation.