syscalls.master revision 24747
1296341Sdelphij $Id: syscalls.master,v 1.7 1997/02/22 09:33:38 peter Exp $ 2110010Smarkm 3110010Smarkm; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 4160819Ssimon; System call name/number master file (or rather, slave, from IBCS2). 5110010Smarkm; Processed to created ibcs2_sysent.c, ibcs2_syscalls.c and ibcs2_syscall.h. 6110010Smarkm 7110010Smarkm; Columns: number type nargs namespc name alt{name,tag,rtyp}/comments 8110010Smarkm; number system call number, must be in order 9110010Smarkm; type one of STD, OBSOL, UNIMPL, COMPAT 10110010Smarkm; namespc one of POSIX, BSD, SVR3, SCO, NOHIDE 11110010Smarkm; name psuedo-prototype of syscall routine 12110010Smarkm; If one of the following alts is different, then all appear: 13110010Smarkm; altname name of system call if different 14110010Smarkm; alttag name of args struct tag if different from [o]`name'"_args" 15110010Smarkm; altrtyp return type if not int (bogus - syscalls always return int) 16110010Smarkm; for UNIMPL/OBSOL, name continues with comments 17110010Smarkm 18110010Smarkm; types: 19110010Smarkm; STD always included 20215698Ssimon; COMPAT included on COMPAT #ifdef 21215698Ssimon; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h 22215698Ssimon; OBSOL obsolete, not included in system, only specifies name 23215698Ssimon; UNIMPL not implemented, placeholder only 24215698Ssimon 25110010Smarkm#include <sys/param.h> 26110010Smarkm#include <sys/sysent.h> 27110010Smarkm#include <sys/sysproto.h> 28110010Smarkm#include <i386/ibcs2/ibcs2_types.h> 29110010Smarkm#include <i386/ibcs2/ibcs2_signal.h> 30110010Smarkm#include <i386/ibcs2/ibcs2_proto.h> 31110010Smarkm 32110010Smarkm; #ifdef's, etc. may be included, and are copied to the output files. 33110010Smarkm 34110010Smarkm0 NOPROTO NOHIDE { int nosys(void); } syscall nosys_args int 35110010Smarkm1 NOPROTO NOHIDE { int exit(int rval); } 36110010Smarkm2 NOPROTO POSIX { int fork(void); } 37110010Smarkm3 STD POSIX { int ibcs2_read(int fd, char *buf, u_int nbytes); } 38110010Smarkm4 NOPROTO POSIX { int write(int fd, char *buf, u_int nbytes); } 39110010Smarkm5 STD POSIX { int ibcs2_open(char *path, int flags, int mode); } 40110010Smarkm6 NOPROTO POSIX { int close(int fd); } 41279264Sdelphij7 STD SVR3 { int ibcs2_wait(int a1, int a2, int a3); } 42279264Sdelphij8 STD SVR3 { int ibcs2_creat(char *path, int mode); } 43110010Smarkm9 NOPROTO POSIX { int link(char *path, char *link); } 44110010Smarkm10 STD POSIX { int ibcs2_unlink(char *path); } 45215698Ssimon11 STD NOHIDE { int ibcs2_execv(char *path, char **argp); } 46215698Ssimon12 STD POSIX { int ibcs2_chdir(char *path); } 47215698Ssimon13 STD SVR3 { int ibcs2_time(ibcs2_time_t *tp); } 48215698Ssimon14 STD SVR3 { int ibcs2_mknod(char* path, int mode, int dev); } 49160819Ssimon15 STD SVR3 { int ibcs2_chmod(char *path, int mode); } 50215698Ssimon16 STD SVR3 { int ibcs2_chown(char *path, int uid, int gid); } 51160819Ssimon17 NOPROTO SVR3 { int obreak(caddr_t nsize); } 52160819Ssimon18 STD SVR3 { int ibcs2_stat(char* path, struct ibcs2_stat *st); } 53279264Sdelphij19 STD POSIX { long ibcs2_lseek(int fd, long offset, int whence); } 54279264Sdelphij20 NOPROTO POSIX { pid_t getpid(void); } 55279264Sdelphij21 STD SVR3 { int ibcs2_mount(char *special, char *dir, int flags,\ 56110010Smarkm int fstype, char *data, int len); } 57279264Sdelphij22 STD SVR3 { int ibcs2_umount(char *name); } 58279264Sdelphij23 STD POSIX { int ibcs2_setuid(int uid); } 59279264Sdelphij24 NOPROTO SVR3 { uid_t getuid(void); } 60279264Sdelphij25 STD SVR3 { int ibcs2_stime(long *timep); } 61279264Sdelphij26 NOPROTO SVR3 { int ptrace(int req, pid_t pid, caddr_t addr, \ 62279264Sdelphij int data); } 63215698Ssimon27 STD SVR3 { int ibcs2_alarm(unsigned sec); } 64279264Sdelphij28 STD SVR3 { int ibcs2_fstat(int fd, struct ibcs2_stat *st); } 65279264Sdelphij29 STD SVR3 { int ibcs2_pause(void); } 66279264Sdelphij30 STD SVR3 { int ibcs2_utime(char *path, \ 67279264Sdelphij struct ibcs2_utimbuf *buf); } 68279264Sdelphij31 STD SCO { int ibcs2_stty(int fd, struct sgttyb *buf); } 69215698Ssimon32 STD SCO { int ibcs2_gtty(int fd, struct sgttyb *buf); } 70279264Sdelphij33 STD POSIX { int ibcs2_access(char *path, int flags); } 71110010Smarkm34 STD SVR3 { int ibcs2_nice(int incr); } 72110010Smarkm35 STD SVR3 { int ibcs2_statfs(char *path, \ 73110010Smarkm struct ibcs2_statfs *buf, \ 74110010Smarkm int len, int fstype); } 75110010Smarkm36 NOPROTO SVR3 { int sync(void); } 76110010Smarkm37 STD POSIX { int ibcs2_kill(int pid, int signo); } 77110010Smarkm38 STD SVR3 { int ibcs2_fstatfs(int fd, struct ibcs2_statfs *buf, \ 78110010Smarkm int len, int fstype); } 79110010Smarkm39 STD SVR3 { int ibcs2_pgrpsys(int type, caddr_t dummy, int pid, \ 80110010Smarkm int pgid); } 81110010Smarkm40 STD SCO { int ibcs2_xenix(int a1, int a2, int a3, int a4, \ 82110010Smarkm int a5); } 83110010Smarkm41 NOPROTO POSIX { int dup(u_int fd); } 84110010Smarkm42 NOPROTO POSIX { int pipe(void); } 85110010Smarkm43 STD SVR3 { int ibcs2_times(struct tms *tp); } 86110010Smarkm44 NOPROTO SVR3 { int profil(caddr_t samples, u_int size, \ 87110010Smarkm u_int offset, u_int scale); } 88110010Smarkm45 STD SVR3 { int ibcs2_plock(int cmd); } 89110010Smarkm46 STD SVR3 { int ibcs2_setgid(int gid); } 90110010Smarkm47 NOPROTO SVR3 { gid_t getgid(void); } 91110010Smarkm48 STD SVR3 { int ibcs2_sigsys(int sig, ibcs2_sig_t fp); } 92110010Smarkm49 STD SVR3 { int ibcs2_msgsys(int which, int a2, int a3, int a4, \ 93110010Smarkm int a5, int a6); } 94110010Smarkm50 STD SVR3 { int ibcs2_sysi86(int cmd, int *arg); } 95110010Smarkm51 UNIMPL SVR3 ibcs2_acct 96110010Smarkm52 STD SVR3 { int ibcs2_shmsys(int which, int a2, int a3, int a4); } 97110010Smarkm53 STD SVR3 { int ibcs2_semsys(int which, int a2, int a3, int a4, \ 98110010Smarkm int a5); } 99110010Smarkm54 STD SVR3 { int ibcs2_ioctl(int fd, int cmd, caddr_t data); } 100110010Smarkm55 STD SVR3 { int ibcs2_uadmin(int cmd, int func, caddr_t data); } 101110010Smarkm56 UNIMPL SVR3 nosys 102110010Smarkm57 STD SVR3 { int ibcs2_utssys(int a1, int a2, int flag); } 103110010Smarkm58 NOPROTO POSIX { int fsync(int fd); } 104110010Smarkm59 STD SVR3 { int ibcs2_execve(char *path, char **argp, \ 105110010Smarkm char **envp); } 106110010Smarkm60 NOPROTO SVR3 { int umask(int newmask); } 107110010Smarkm61 NOPROTO SVR3 { int chroot(char *path); } 108110010Smarkm62 STD SVR3 { int ibcs2_fcntl(int fd, int cmd, char *arg); } 109110010Smarkm63 STD SVR3 { long ibcs2_ulimit(int cmd, int newlimit); } 110110010Smarkm64 UNIMPL SVR3 reserved for unix/pc 111110010Smarkm65 UNIMPL SVR3 reserved for unix/pc 112110010Smarkm66 UNIMPL SVR3 reserved for unix/pc 113110010Smarkm67 UNIMPL SVR3 reserved for unix/pc 114110010Smarkm68 UNIMPL SVR3 reserved for unix/pc 115110010Smarkm69 UNIMPL SVR3 reserved for unix/pc 116110010Smarkm70 OBSOL SVR3 rfs_advfs 117110010Smarkm71 OBSOL SVR3 rfs_unadvfs 118110010Smarkm72 OBSOL SVR3 rfs_rmount 119110010Smarkm73 OBSOL SVR3 rfs_rumount 120110010Smarkm74 OBSOL SVR3 rfs_rfstart 121110010Smarkm75 OBSOL SVR3 rfs_sigret 122110010Smarkm76 OBSOL SVR3 rfs_rdebug 123110010Smarkm77 OBSOL SVR3 rfs_rfstop 124110010Smarkm78 UNIMPL SVR3 rfs_rfsys 125110010Smarkm79 STD SVR3 { int ibcs2_rmdir(char *path); } 126110010Smarkm80 STD SVR3 { int ibcs2_mkdir(char *path, int mode); } 127110010Smarkm81 STD SVR3 { int ibcs2_getdents(int fd, char *buf, int nbytes); } 128110010Smarkm82 UNIMPL SVR3 nosys 129110010Smarkm83 UNIMPL SVR3 nosys 130110010Smarkm84 STD SVR3 { int ibcs2_sysfs(int cmd, caddr_t d1, char *buf); } 131110010Smarkm85 STD SVR3 { int ibcs2_getmsg(int fd, struct ibcs2_stropts *ctl, \ 132110010Smarkm struct ibcs2_stropts *dat, \ 133160819Ssimon int *flags); } 134110010Smarkm86 STD SVR3 { int ibcs2_putmsg(int fd, struct ibcs2_stropts *ctl, \ 135110010Smarkm struct ibcs2_stropts *dat, \ 136296341Sdelphij int flags); } 137215698Ssimon87 STD SVR3 { int ibcs2_poll(struct ibcs2_poll *fds, long nfds, \ 138215698Ssimon int timeout); } 139215698Ssimon88 UNIMPL SVR3 nosys 140215698Ssimon89 STD SVR3 { int ibcs2_secure(int cmd, int a1, int a2, int a3, \ 141110010Smarkm int a4, int a5); } 142110010Smarkm90 STD SVR3 { int ibcs2_symlink(char *path, char *link); } 143110010Smarkm91 STD SVR3 { int ibcs2_lstat(char *path, struct ibcs2_stat *st); } 144110010Smarkm92 STD SVR3 { int ibcs2_readlink(char *path, char *buf, int count); } 145110010Smarkm93 UNIMPL NOHIDE nosys 146110010Smarkm94 UNIMPL NOHIDE nosys 147215698Ssimon95 UNIMPL NOHIDE nosys 148160819Ssimon96 UNIMPL NOHIDE nosys 149110010Smarkm97 UNIMPL NOHIDE nosys 150110010Smarkm98 UNIMPL NOHIDE nosys 151110010Smarkm99 UNIMPL NOHIDE nosys 152110010Smarkm100 UNIMPL NOHIDE nosys 153110010Smarkm101 UNIMPL NOHIDE nosys 154110010Smarkm102 UNIMPL NOHIDE nosys 155110010Smarkm103 NOPROTO POSIX { int sigreturn(struct sigcontext *sigcntxp); } 156110010Smarkm104 UNIMPL NOHIDE nosys 157110010Smarkm105 STD SCO { int ibcs2_isc(void); } 158110010Smarkm106 UNIMPL NOHIDE nosys 159160819Ssimon107 UNIMPL NOHIDE nosys 160110010Smarkm108 UNIMPL NOHIDE nosys 161110010Smarkm109 UNIMPL NOHIDE nosys 162110010Smarkm110 UNIMPL NOHIDE nosys 163160819Ssimon111 UNIMPL NOHIDE nosys 164110010Smarkm112 UNIMPL NOHIDE nosys 165110010Smarkm113 UNIMPL NOHIDE nosys 166110010Smarkm114 UNIMPL NOHIDE nosys 167110010Smarkm115 UNIMPL NOHIDE nosys 168110010Smarkm116 UNIMPL NOHIDE nosys 169110010Smarkm117 UNIMPL NOHIDE nosys 170110010Smarkm118 UNIMPL NOHIDE nosys 171110010Smarkm119 UNIMPL NOHIDE nosys 172160819Ssimon120 UNIMPL NOHIDE nosys 173110010Smarkm121 UNIMPL NOHIDE nosys 174110010Smarkm122 UNIMPL NOHIDE nosys 175160819Ssimon123 UNIMPL NOHIDE nosys 176110010Smarkm124 UNIMPL NOHIDE nosys 177110010Smarkm125 UNIMPL NOHIDE nosys 178110010Smarkm126 UNIMPL NOHIDE nosys 179110010Smarkm127 UNIMPL NOHIDE nosys 180160819Ssimon