kernel tree reorganization stage 1: Major cvs repository work (not logged as
[dragonfly.git] / sys / emulation / ibcs2 / i386 / syscalls.master
1  $DragonFly: src/sys/emulation/ibcs2/i386/Attic/syscalls.master,v 1.3 2003/08/07 21:17:17 dillon Exp $
2
3 ;       @(#)syscalls.master     8.1 (Berkeley) 7/19/93
4 ; $FreeBSD: src/sys/i386/ibcs2/syscalls.master,v 1.9.2.2 2001/10/05 07:34:36 peter Exp $
5 ;
6 ; System call name/number master file (or rather, slave, from IBCS2).
7 ; Processed to created ibcs2_sysent.c, ibcs2_syscalls.c and ibcs2_syscall.h.
8
9 ; Columns: number type nargs namespc name alt{name,tag,rtyp}/comments
10 ;       number  system call number, must be in order
11 ;       type    one of STD, OBSOL, UNIMPL, COMPAT
12 ;       namespc one of POSIX, BSD, SVR3, SCO, NOHIDE
13 ;       name    psuedo-prototype of syscall routine
14 ;               If one of the following alts is different, then all appear:
15 ;       altname name of system call if different
16 ;       alttag  name of args struct tag if different from [o]`name'"_args"
17 ;       altrtyp return type if not int (bogus - syscalls always return int)
18 ;               for UNIMPL/OBSOL, name continues with comments
19
20 ; types:
21 ;       STD     always included
22 ;       COMPAT  included on COMPAT #ifdef
23 ;       LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
24 ;       OBSOL   obsolete, not included in system, only specifies name
25 ;       UNIMPL  not implemented, placeholder only
26
27 #include <sys/param.h>
28 #include <sys/sysent.h>
29 #include <sys/sysproto.h>
30 #include "ibcs2_types.h"
31 #include "ibcs2_signal.h"
32 #include "ibcs2_proto.h"
33
34 ; #ifdef's, etc. may be included, and are copied to the output files.
35
36 0       NOPROTO NOHIDE  { int nosys(void); } syscall nosys_args int
37 1       NOPROTO NOHIDE  { void sys_exit(int rval); } exit sys_exit_args void
38 2       NOPROTO POSIX   { int fork(void); }
39 3       STD     POSIX   { int ibcs2_read(int fd, char *buf, u_int nbytes); }
40 4       NOPROTO POSIX   { int write(int fd, char *buf, u_int nbytes); }
41 5       STD     POSIX   { int ibcs2_open(char *path, int flags, int mode); }
42 6       NOPROTO POSIX   { int close(int fd); }
43 7       STD     SVR3    { int ibcs2_wait(int a1, int a2, int a3); }
44 8       STD     SVR3    { int ibcs2_creat(char *path, int mode); }
45 9       NOPROTO POSIX   { int link(char *path, char *link); }
46 10      STD     POSIX   { int ibcs2_unlink(char *path); }
47 11      STD     NOHIDE  { int ibcs2_execv(char *path, char **argp); }
48 12      STD     POSIX   { int ibcs2_chdir(char *path); }
49 13      STD     SVR3    { int ibcs2_time(ibcs2_time_t *tp); }
50 14      STD     SVR3    { int ibcs2_mknod(char* path, int mode, int dev); }
51 15      STD     SVR3    { int ibcs2_chmod(char *path, int mode); }
52 16      STD     SVR3    { int ibcs2_chown(char *path, int uid, int gid); }
53 17      NOPROTO SVR3    { int obreak(caddr_t nsize); }
54 18      STD     SVR3    { int ibcs2_stat(char* path, struct ibcs2_stat *st); }
55 19      STD     POSIX   { long ibcs2_lseek(int fd, long offset, int whence); }
56 20      NOPROTO POSIX   { pid_t getpid(void); }
57 21      STD     SVR3    { int ibcs2_mount(char *special, char *dir, int flags,\
58                                       int fstype, char *data, int len); }
59 22      STD     SVR3    { int ibcs2_umount(char *name); }
60 23      STD     POSIX   { int ibcs2_setuid(int uid); }
61 24      NOPROTO SVR3    { uid_t getuid(void); }
62 25      STD     SVR3    { int ibcs2_stime(long *timep); }
63 26      NOPROTO SVR3    { int ptrace(int req, pid_t pid, caddr_t addr, \
64                             int data); }
65 27      STD     SVR3    { int ibcs2_alarm(unsigned sec); }
66 28      STD     SVR3    { int ibcs2_fstat(int fd, struct ibcs2_stat *st); }
67 29      STD     SVR3    { int ibcs2_pause(void); }
68 30      STD     SVR3    { int ibcs2_utime(char *path, \
69                                           struct ibcs2_utimbuf *buf); }
70 31      STD     SCO     { int ibcs2_stty(int fd, struct sgttyb *buf); }
71 32      STD     SCO     { int ibcs2_gtty(int fd, struct sgttyb *buf); }
72 33      STD     POSIX   { int ibcs2_access(char *path, int flags); }
73 34      STD     SVR3    { int ibcs2_nice(int incr); }
74 35      STD     SVR3    { int ibcs2_statfs(char *path, \
75                                            struct ibcs2_statfs *buf, \
76                                            int len, int fstype); }
77 36      NOPROTO SVR3    { int sync(void); }
78 37      STD     POSIX   { int ibcs2_kill(int pid, int signo); }
79 38      STD     SVR3    { int ibcs2_fstatfs(int fd, struct ibcs2_statfs *buf, \
80                                             int len, int fstype); }
81 39      STD     SVR3    { int ibcs2_pgrpsys(int type, caddr_t dummy, int pid, \
82                                             int pgid); }
83 40      STD     SCO     { int ibcs2_xenix(int a1, int a2, int a3, int a4, \
84                             int a5); }
85 41      NOPROTO POSIX   { int dup(u_int fd); }
86 42      NOPROTO POSIX   { int pipe(void); }
87 43      STD     SVR3    { int ibcs2_times(struct tms *tp); }
88 44      NOPROTO SVR3    { int profil(caddr_t samples, u_int size, \
89                             u_int offset, u_int scale); }
90 45      STD     SVR3    { int ibcs2_plock(int cmd); }
91 46      STD     SVR3    { int ibcs2_setgid(int gid); }
92 47      NOPROTO SVR3    { gid_t getgid(void); }
93 48      STD     SVR3    { int ibcs2_sigsys(int sig, ibcs2_sig_t fp); }
94 49      STD     SVR3    { int ibcs2_msgsys(int which, int a2, int a3, int a4, \
95                                      int a5, int a6); }
96 50      STD     SVR3    { int ibcs2_sysi86(int cmd, int *arg); }
97 51      UNIMPL  SVR3    ibcs2_acct
98 52      STD     SVR3    { int ibcs2_shmsys(int which, int a2, int a3, int a4); }
99 53      STD     SVR3    { int ibcs2_semsys(int which, int a2, int a3, int a4, \
100                                      int a5); }
101 54      STD     SVR3    { int ibcs2_ioctl(int fd, int cmd, caddr_t data); }
102 55      STD     SVR3    { int ibcs2_uadmin(int cmd, int func, caddr_t data); }
103 56      UNIMPL  SVR3    nosys
104 57      STD     SVR3    { int ibcs2_utssys(int a1, int a2, int flag); }
105 58      NOPROTO POSIX   { int fsync(int fd); }
106 59      STD     SVR3    { int ibcs2_execve(char *path, char **argp, \
107                                            char **envp); }
108 60      NOPROTO SVR3    { int umask(int newmask); }
109 61      NOPROTO SVR3    { int chroot(char *path); }
110 62      STD     SVR3    { int ibcs2_fcntl(int fd, int cmd, char *arg); }
111 63      STD     SVR3    { long ibcs2_ulimit(int cmd, int newlimit); }
112 64      UNIMPL  SVR3    reserved for unix/pc
113 65      UNIMPL  SVR3    reserved for unix/pc
114 66      UNIMPL  SVR3    reserved for unix/pc
115 67      UNIMPL  SVR3    reserved for unix/pc
116 68      UNIMPL  SVR3    reserved for unix/pc
117 69      UNIMPL  SVR3    reserved for unix/pc
118 70      OBSOL   SVR3    rfs_advfs
119 71      OBSOL   SVR3    rfs_unadvfs
120 72      OBSOL   SVR3    rfs_rmount
121 73      OBSOL   SVR3    rfs_rumount
122 74      OBSOL   SVR3    rfs_rfstart
123 75      OBSOL   SVR3    rfs_sigret
124 76      OBSOL   SVR3    rfs_rdebug
125 77      OBSOL   SVR3    rfs_rfstop
126 78      UNIMPL  SVR3    rfs_rfsys
127 79      STD     SVR3    { int ibcs2_rmdir(char *path); }
128 80      STD     SVR3    { int ibcs2_mkdir(char *path, int mode); }
129 81      STD     SVR3    { int ibcs2_getdents(int fd, char *buf, int nbytes); }
130 82      UNIMPL  SVR3    nosys
131 83      UNIMPL  SVR3    nosys
132 84      STD     SVR3    { int ibcs2_sysfs(int cmd, caddr_t d1, char *buf); }
133 85      STD     SVR3    { int ibcs2_getmsg(int fd, struct ibcs2_stropts *ctl, \
134                                           struct ibcs2_stropts *dat, \
135                                           int *flags); }
136 86      STD     SVR3    { int ibcs2_putmsg(int fd, struct ibcs2_stropts *ctl, \
137                                           struct ibcs2_stropts *dat, \
138                                           int flags); }
139 87      STD     SVR3    { int ibcs2_poll(struct ibcs2_poll *fds, long nfds, \
140                                         int timeout); }
141 88      UNIMPL  SVR3    nosys
142 89      STD     SVR3    { int ibcs2_secure(int cmd, int a1, int a2, int a3, \
143                             int a4, int a5); }
144 90      STD     SVR3    { int ibcs2_symlink(char *path, char *link); }
145 91      STD     SVR3    { int ibcs2_lstat(char *path, struct ibcs2_stat *st); }
146 92      STD     SVR3    { int ibcs2_readlink(char *path, char *buf, int count); }
147 93      UNIMPL  NOHIDE  nosys
148 94      UNIMPL  NOHIDE  nosys
149 95      UNIMPL  NOHIDE  nosys
150 96      UNIMPL  NOHIDE  nosys
151 97      UNIMPL  NOHIDE  nosys
152 98      UNIMPL  NOHIDE  nosys
153 99      UNIMPL  NOHIDE  nosys
154 100     UNIMPL  NOHIDE  nosys
155 101     UNIMPL  NOHIDE  nosys
156 102     UNIMPL  NOHIDE  nosys
157 103     NOPROTO POSIX   { int sigreturn(struct sigcontext *sigcntxp); }
158 104     UNIMPL  NOHIDE  nosys
159 105     STD     SCO     { int ibcs2_isc(void); }
160 106     UNIMPL  NOHIDE  nosys
161 107     UNIMPL  NOHIDE  nosys
162 108     UNIMPL  NOHIDE  nosys
163 109     UNIMPL  NOHIDE  nosys
164 110     UNIMPL  NOHIDE  nosys
165 111     UNIMPL  NOHIDE  nosys
166 112     UNIMPL  NOHIDE  nosys
167 113     UNIMPL  NOHIDE  nosys
168 114     UNIMPL  NOHIDE  nosys
169 115     UNIMPL  NOHIDE  nosys
170 116     UNIMPL  NOHIDE  nosys
171 117     UNIMPL  NOHIDE  nosys
172 118     UNIMPL  NOHIDE  nosys
173 119     UNIMPL  NOHIDE  nosys
174 120     UNIMPL  NOHIDE  nosys
175 121     UNIMPL  NOHIDE  nosys
176 122     UNIMPL  NOHIDE  nosys
177 123     UNIMPL  NOHIDE  nosys
178 124     UNIMPL  NOHIDE  nosys
179 125     UNIMPL  NOHIDE  nosys
180 126     UNIMPL  NOHIDE  nosys
181 127     UNIMPL  NOHIDE  nosys