1 $FreeBSD: releng/12.0/sys/i386/ibcs2/syscalls.master 335177 2018-06-14 21:27:25Z brooks $
2
3 ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
4 ; System call name/number master file (or rather, slave, from IBCS2).
5 ; Processed to created ibcs2_sysent.c, ibcs2_syscalls.c and ibcs2_syscall.h.
6
7 ; Columns: number audit type nargs name alt{name,tag,rtyp}/comments
8 ; number system call number, must be in order
9 ; audit the audit event associated with the system call
10 ; A value of AUE_NULL means no auditing, but it also means that
11 ; there is no audit event for the call at this time. For the
12 ; case where the event exists, but we don't want auditing, the
13 ; event should be #defined to AUE_NULL in audit_kevents.h.
14 ; type one of STD, OBSOL, UNIMPL, COMPAT
15 ; name pseudo-prototype of syscall routine
16 ; If one of the following alts is different, then all appear:
17 ; altname name of system call if different
18 ; alttag name of args struct tag if different from [o]`name'"_args"
19 ; altrtyp return type if not int (bogus - syscalls always return int)
20 ; for UNIMPL/OBSOL, name continues with comments
21
22 ; types:
23 ; STD always included
24 ; COMPAT included on COMPAT #ifdef
25 ; OBSOL obsolete, not included in system, only specifies name
26 ; UNIMPL not implemented, placeholder only
27
28 #include <sys/param.h>
29 #include <sys/sysent.h>
30 #include <sys/sysproto.h>
31 #include <i386/ibcs2/ibcs2_types.h>
32 #include <i386/ibcs2/ibcs2_signal.h>
33 #include <i386/ibcs2/ibcs2_proto.h>
34
35 ; #ifdef's, etc. may be included, and are copied to the output files.
36
37 0 AUE_NULL NOPROTO { int nosys(void); } syscall nosys_args int
38 1 AUE_EXIT NOPROTO { void sys_exit(int rval); } exit \
39 sys_exit_args void
40 2 AUE_FORK NOPROTO { int fork(void); }
41 3 AUE_NULL STD { int ibcs2_read(int fd, char *buf, \
42 u_int nbytes); }
43 4 AUE_NULL NOPROTO { int write(int fd, char *buf, \
44 u_int nbytes); }
45 5 AUE_OPEN_RWTC STD { int ibcs2_open(char *path, int flags, \
46 int mode); }
47 6 AUE_CLOSE NOPROTO { int close(int fd); }
48 7 AUE_WAIT4 STD { int ibcs2_wait(int a1, int a2, int a3); }
49 8 AUE_CREAT STD { int ibcs2_creat(char *path, int mode); }
50 9 AUE_LINK NOPROTO { int link(char *path, char *link); }
51 10 AUE_UNLINK STD { int ibcs2_unlink(char *path); }
52 11 AUE_EXECVE STD { int ibcs2_execv(char *path, char **argp); }
53 12 AUE_CHDIR STD { int ibcs2_chdir(char *path); }
54 13 AUE_NULL STD { int ibcs2_time(ibcs2_time_t *tp); }
55 14 AUE_MKNOD STD { int ibcs2_mknod(char* path, int mode, \
56 int dev); }
57 15 AUE_CHMOD STD { int ibcs2_chmod(char *path, int mode); }
58 16 AUE_CHOWN STD { int ibcs2_chown(char *path, int uid, \
59 int gid); }
60 17 AUE_NULL NOPROTO { caddr_t break(caddr_t nsize); }
61 18 AUE_STAT STD { int ibcs2_stat(char* path, \
62 struct ibcs2_stat *st); }
63 19 AUE_LSEEK STD { long ibcs2_lseek(int fd, long offset, \
64 int whence); }
65 20 AUE_NULL NOPROTO { pid_t getpid(void); }
66 21 AUE_MOUNT STD { int ibcs2_mount(char *special, char *dir, \
67 int flags, int fstype, char *data, \
68 int len); }
69 22 AUE_UMOUNT STD { int ibcs2_umount(char *name); }
70 23 AUE_SETUID STD { int ibcs2_setuid(int uid); }
71 24 AUE_GETUID NOPROTO { uid_t getuid(void); }
72 25 AUE_SETTIMEOFDAY STD { int ibcs2_stime(long *timep); }
73 26 AUE_PTRACE NOPROTO { int ptrace(int req, pid_t pid, \
74 caddr_t addr, int data); }
75 27 AUE_NULL STD { int ibcs2_alarm(unsigned sec); }
76 28 AUE_FSTAT STD { int ibcs2_fstat(int fd, \
77 struct ibcs2_stat *st); }
78 29 AUE_NULL STD { int ibcs2_pause(void); }
79 30 AUE_NULL STD { int ibcs2_utime(char *path, \
80 struct ibcs2_utimbuf *buf); }
81 31 AUE_NULL UNIMPL ibcs2_stty
82 32 AUE_NULL UNIMPL ibcs2_gtty
83 33 AUE_ACCESS STD { int ibcs2_access(char *path, int amode); }
84 34 AUE_NICE STD { int ibcs2_nice(int incr); }
85 35 AUE_STATFS STD { int ibcs2_statfs(char *path, \
86 struct ibcs2_statfs *buf, int len, \
87 int fstype); }
88 36 AUE_NULL NOPROTO { int sync(void); }
89 37 AUE_KILL STD { int ibcs2_kill(int pid, int signo); }
90 38 AUE_FSTATFS STD { int ibcs2_fstatfs(int fd, \
91 struct ibcs2_statfs *buf, int len, \
92 int fstype); }
93 39 AUE_NULL STD { int ibcs2_pgrpsys(int type, caddr_t dummy, \
94 int pid, int pgid); }
95 40 AUE_NULL STD { int ibcs2_xenix(int a1, int a2, int a3, \
96 int a4, int a5); }
97 41 AUE_NULL NOPROTO { int dup(u_int fd); }
98 42 AUE_PIPE NOPROTO { int pipe(void); }
99 43 AUE_NULL STD { int ibcs2_times(struct tms *tp); }
100 44 AUE_PROFILE NOPROTO { int profil(caddr_t samples, u_int size, \
101 u_int offset, u_int scale); }
102 45 AUE_NULL STD { int ibcs2_plock(int cmd); }
103 46 AUE_SETGID STD { int ibcs2_setgid(int gid); }
104 47 AUE_GETGID NOPROTO { gid_t getgid(void); }
105 48 AUE_NULL STD { int ibcs2_sigsys(int sig, ibcs2_sig_t fp); }
106 49 AUE_MSGSYS STD { int ibcs2_msgsys(int which, int a2, \
107 int a3, int a4, int a5, int a6); }
108 50 AUE_NULL STD { int ibcs2_sysi86(int cmd, int *arg); }
109 51 AUE_NULL UNIMPL ibcs2_acct
110 52 AUE_SHMSYS STD { int ibcs2_shmsys(int which, int a2, \
111 int a3, int a4); }
112 53 AUE_SEMSYS STD { int ibcs2_semsys(int which, int a2, \
113 int a3, int a4, int a5); }
114 54 AUE_IOCTL STD { int ibcs2_ioctl(int fd, int cmd, \
115 caddr_t data); }
116 55 AUE_NULL STD { int ibcs2_uadmin(int cmd, int func, \
117 caddr_t data); }
118 56 AUE_NULL UNIMPL nosys
119 57 AUE_NULL STD { int ibcs2_utssys(int a1, int a2, \
120 int flag); }
121 58 AUE_FSYNC NOPROTO { int fsync(int fd); }
122 59 AUE_EXECVE STD { int ibcs2_execve(char *path, char **argp, \
123 char **envp); }
124 60 AUE_UMASK NOPROTO { int umask(int newmask); }
125 61 AUE_CHROOT NOPROTO { int chroot(char *path); }
126 62 AUE_FCNTL STD { int ibcs2_fcntl(int fd, int cmd, \
127 char *arg); }
128 63 AUE_NULL STD { long ibcs2_ulimit(int cmd, int newlimit); }
129 64 AUE_NULL UNIMPL reserved for unix/pc
130 65 AUE_NULL UNIMPL reserved for unix/pc
131 66 AUE_NULL UNIMPL reserved for unix/pc
132 67 AUE_NULL UNIMPL reserved for unix/pc
133 68 AUE_NULL UNIMPL reserved for unix/pc
134 69 AUE_NULL UNIMPL reserved for unix/pc
135 70 AUE_NULL OBSOL rfs_advfs
136 71 AUE_NULL OBSOL rfs_unadvfs
137 72 AUE_NULL OBSOL rfs_rmount
138 73 AUE_NULL OBSOL rfs_rumount
139 74 AUE_NULL OBSOL rfs_rfstart
140 75 AUE_NULL OBSOL rfs_sigret
141 76 AUE_NULL OBSOL rfs_rdebug
142 77 AUE_NULL OBSOL rfs_rfstop
143 78 AUE_NULL UNIMPL rfs_rfsys
144 79 AUE_RMDIR STD { int ibcs2_rmdir(char *path); }
145 80 AUE_MKDIR STD { int ibcs2_mkdir(char *path, int mode); }
146 81 AUE_GETDIRENTRIES STD { int ibcs2_getdents(int fd, char *buf, \
147 int nbytes); }
148 82 AUE_NULL UNIMPL nosys
149 83 AUE_NULL UNIMPL nosys
150 84 AUE_NULL STD { int ibcs2_sysfs(int cmd, caddr_t d1, \
151 char *buf); }
152 85 AUE_GETMSG STD { int ibcs2_getmsg(int fd, \
153 struct ibcs2_stropts *ctl, \
154 struct ibcs2_stropts *dat, int *flags); }
155 86 AUE_PUTMSG STD { int ibcs2_putmsg(int fd, \
156 struct ibcs2_stropts *ctl, \
157 struct ibcs2_stropts *dat, int flags); }
158 87 AUE_POLL NOPROTO { int poll(struct pollfd *fds, u_int nfds, \
159 int timeout); }
160 88 AUE_NULL UNIMPL nosys
161 89 AUE_NULL STD { int ibcs2_secure(int cmd, int a1, int a2, \
162 int a3, int a4, int a5); }
163 90 AUE_SYMLINK STD { int ibcs2_symlink(char *path, \
164 char *link); }
165 91 AUE_LSTAT STD { int ibcs2_lstat(char *path, \
166 struct ibcs2_stat *st); }
167 92 AUE_READLINK STD { int ibcs2_readlink(char *path, char *buf, \
168 int count); }
169 93 AUE_NULL UNIMPL nosys
170 94 AUE_NULL UNIMPL nosys
171 95 AUE_NULL UNIMPL nosys
172 96 AUE_NULL UNIMPL nosys
173 97 AUE_NULL UNIMPL nosys
174 98 AUE_NULL UNIMPL nosys
175 99 AUE_NULL UNIMPL nosys
176 100 AUE_NULL UNIMPL nosys
177 101 AUE_NULL UNIMPL nosys
178 102 AUE_NULL UNIMPL nosys
179 103 AUE_NULL NOPROTO { int sigreturn( \
180 struct sigcontext *sigcntxp); }
181 104 AUE_NULL UNIMPL nosys
182 105 AUE_NULL STD { int ibcs2_isc(void); }
183 106 AUE_NULL UNIMPL nosys
184 107 AUE_NULL UNIMPL nosys
185 108 AUE_NULL UNIMPL nosys
186 109 AUE_NULL UNIMPL nosys
187 110 AUE_NULL UNIMPL nosys
188 111 AUE_NULL UNIMPL nosys
189 112 AUE_NULL UNIMPL nosys
190 113 AUE_NULL UNIMPL nosys
191 114 AUE_NULL UNIMPL nosys
192 115 AUE_NULL UNIMPL nosys
193 116 AUE_NULL UNIMPL nosys
194 117 AUE_NULL UNIMPL nosys
195 118 AUE_NULL UNIMPL nosys
196 119 AUE_NULL UNIMPL nosys
197 120 AUE_NULL UNIMPL nosys
198 121 AUE_NULL UNIMPL nosys
199 122 AUE_NULL UNIMPL nosys
200 123 AUE_NULL UNIMPL nosys
201 124 AUE_NULL UNIMPL nosys
202 125 AUE_NULL UNIMPL nosys
203 126 AUE_NULL UNIMPL nosys
204 127 AUE_NULL UNIMPL nosys
205 ; vim: syntax=off
Cache object: cc5f3bd48c5e1d74b9ed04048e9b6d17
|