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