diff options
Diffstat (limited to 'sys/compat/osf1/syscalls.master')
-rw-r--r-- | sys/compat/osf1/syscalls.master | 220 |
1 files changed, 127 insertions, 93 deletions
diff --git a/sys/compat/osf1/syscalls.master b/sys/compat/osf1/syscalls.master index 3b10ea400bb..c91e636465b 100644 --- a/sys/compat/osf1/syscalls.master +++ b/sys/compat/osf1/syscalls.master @@ -1,9 +1,9 @@ -; $OpenBSD: syscalls.master,v 1.7 2000/07/21 19:26:39 ericj Exp $ -; $NetBSD: syscalls.master,v 1.2 1995/10/07 06:27:28 mycroft Exp $ + $OpenBSD: syscalls.master,v 1.8 2000/08/04 15:47:55 ericj Exp $ +; $NetBSD: syscalls.master,v 1.29 1999/05/10 03:33:04 cgd Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 -; OpenBSD COMPAT_OSF1 system call name/number "master" file. +; NetBSD COMPAT_OSF1 system call name/number "master" file. ; (See syscalls.conf to see what it is processed into.) ; ; Fields: number type [type-dependent ...] @@ -30,7 +30,7 @@ ; [comment] ; ; #ifdef's, etc. may be included, and are copied to the output files. -; #include's are copied to the syscall switch definition file only. +; #include's are copied to the syscall names and switch definition files only. #include <sys/param.h> #include <sys/systm.h> @@ -39,46 +39,52 @@ #include <sys/poll.h> #include <sys/syscallargs.h> +#include <compat/osf1/osf1.h> #include <compat/osf1/osf1_syscallargs.h> 0 NOARGS { int sys_nosys(void); } syscall 1 NOARGS { int sys_exit(int rval); } 2 NOARGS { int sys_fork(void); } 3 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); } -4 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); } +4 NOARGS { int sys_write(int fd, const char *buf, \ + u_int nbyte); } 5 UNIMPL old open 6 NOARGS { int sys_close(int fd); } -7 NOARGS { int sys_wait4(int pid, int *status, int options, \ - struct rusage *rusage); } +7 STD { int osf1_sys_wait4(int pid, int *status, \ + int options, struct osf1_rusage *rusage); } 8 UNIMPL old creat -9 NOARGS { int sys_link(char *path, char *link); } -10 NOARGS { int sys_unlink(char *path); } +9 NOARGS { int sys_link(const char *path, const char *link); } +10 NOARGS { int sys_unlink(const char *path); } 11 UNIMPL execv -12 NOARGS { int sys_chdir(char *path); } +12 NOARGS { int sys_chdir(const char *path); } 13 NOARGS { int sys_fchdir(int fd); } -14 STD { int osf1_sys_mknod(char *path, int mode, int dev); } -15 NOARGS { int sys_chmod(char *path, int mode); } -16 NOARGS { int sys_chown(char *path, int uid, int gid); } +14 STD { int osf1_sys_mknod(char *path, int mode, \ + int dev); } +15 NOARGS { int sys_chmod(const char *path, int mode); } +16 NOARGS { int sys_chown(const char *path, int uid, \ + int gid); } 17 NOARGS { int sys_obreak(char *nsize); } 18 STD { int osf1_sys_getfsstat(struct osf1_statfs *buf, \ long bufsize, int flags); } 19 STD { off_t osf1_sys_lseek(int fd, off_t offset, \ int whence); } 20 NOARGS { pid_t sys_getpid(void); } -21 STD { int osf1_sys_mount(int type, char *path, int flags, \ - caddr_t data); } -22 STD { int osf1_sys_unmount(char *path, int flags); } +21 STD { int osf1_sys_mount(int type, const char *path, \ + int flags, caddr_t data); } +22 STD { int osf1_sys_unmount(const char *path, int flags); } 23 STD { int osf1_sys_setuid(uid_t uid); } 24 NOARGS { uid_t sys_getuid(void); } 25 UNIMPL exec_with_loader 26 UNIMPL ptrace -27 UNIMPL recvmsg -28 UNIMPL sendmsg +27 STD { int osf1_sys_recvmsg_xopen(int s, \ + struct osf1_msghdr_xopen *msg, int flags); } +28 STD { int osf1_sys_sendmsg_xopen(int s, \ + const struct osf1_msghdr_xopen *msg, int flags); } 29 UNIMPL recvfrom 30 UNIMPL accept 31 UNIMPL getpeername 32 UNIMPL getsockname -33 NOARGS { int sys_access(char *path, int flags); } +33 STD { int osf1_sys_access(char *path, int flags); } 34 UNIMPL chflags 35 UNIMPL fchflags 36 NOARGS { int sys_sync(void); } @@ -87,33 +93,41 @@ 39 NOARGS { int sys_setpgid(int pid, int pgid); } 40 UNIMPL old lstat 41 NOARGS { int sys_dup(u_int fd); } -42 NOARGS { int sys_opipe(void); } -43 UNIMPL set_program_attributes +42 NOARGS { int sys_pipe(void); } +43 STD { int osf1_sys_set_program_attributes( \ + caddr_t taddr, unsigned long tsize, \ + caddr_t daddr, unsigned long dsize); } 44 UNIMPL profil -45 STD { int osf1_sys_open(char *path, int flags, int mode); } +45 STD { int osf1_sys_open(char *path, int flags, \ + int mode); } 46 OBSOL sigaction 47 NOARGS { gid_t sys_getgid(void); } +; XXX 48 NOARGS { int sys_sigprocmask(int how, sigset_t mask); } 49 NOARGS { int sys_getlogin(char *namebuf, u_int namelen); } -50 NOARGS { int sys_setlogin(char *namebuf); } -51 NOARGS { int sys_acct(char *path); } +50 NOARGS { int sys_setlogin(const char *namebuf); } +51 NOARGS { int sys_acct(const char *path); } 52 UNIMPL sigpending -53 UNIMPL +53 STD { int osf1_sys_classcntl(int opcode, int arg1, \ + int arg2, int arg3); } 54 STD { int osf1_sys_ioctl(int fd, int com, caddr_t data); } 55 STD { int osf1_sys_reboot(int opt); } -56 NOARGS { int sys_revoke(char *path); } -57 NOARGS { int sys_symlink(char *path, char *link); } -58 NOARGS { int sys_readlink(char *path, char *buf, int count); } -59 STD { int osf1_sys_execve(char *path, char **argp, \ - char **envp); } +56 NOARGS { int sys_revoke(const char *path); } +57 NOARGS { int sys_symlink(const char *path, \ + const char *link); } +58 NOARGS { int sys_readlink(const char *path, char *buf, \ + int count); } +59 STD { int osf1_sys_execve(char *path, \ + char * const *argp, char * const *envp); } 60 NOARGS { int sys_umask(int newmask); } -61 NOARGS { int sys_chroot(char *path); } +61 NOARGS { int sys_chroot(const char *path); } 62 UNIMPL old fstat 63 NOARGS { int sys_getpgrp(void); } 64 NOARGS { int compat_43_sys_getpagesize(void); } 65 UNIMPL mremap 66 NOARGS { int sys_vfork(void); } -67 STD { int osf1_sys_stat(char *path, struct osf1_stat *ub); } +67 STD { int osf1_sys_stat(char *path, \ + struct osf1_stat *ub); } 68 STD { int osf1_sys_lstat(char *path, \ struct osf1_stat *ub); } 69 UNIMPL sbrk @@ -122,9 +136,10 @@ int prot, int flags, int fd, off_t pos); } 72 UNIMPL ovadvise 73 NOARGS { int sys_munmap(caddr_t addr, size_t len); } -74 UNIMPL mprotect -; XXX -75 STD { int osf1_sys_madvise(void); } +74 STD { int osf1_sys_mprotect(void *addr, size_t len, \ + int prot); } +75 STD { int osf1_sys_madvise(void *addr, size_t len, \ + int behav); } 76 UNIMPL old vhangup 77 UNIMPL kmodcall 78 UNIMPL mincore @@ -133,23 +148,25 @@ 81 UNIMPL old getpgrp ; OSF/1 setpgrp(); identical in function to setpgid(). XXX 82 NOARGS { int sys_setpgid(int pid, int pgid); } setpgrp -83 NOARGS { int sys_setitimer(u_int which, \ - struct itimerval *itv, struct itimerval *oitv); } +83 STD { int osf1_sys_setitimer(u_int which, \ + struct osf1_itimerval *itv, \ + struct osf1_itimerval *oitv); } 84 UNIMPL old wait 85 UNIMPL table 86 UNIMPL getitimer 87 NOARGS { int compat_43_sys_gethostname(char *hostname, \ u_int len); } -88 NOARGS { int compat_43_sys_sethostname(char *hostname, \ +88 NOARGS { int compat_43_sys_sethostname(const char *hostname, \ u_int len); } 89 NOARGS { int compat_43_sys_getdtablesize(void); } 90 NOARGS { int sys_dup2(u_int from, u_int to); } 91 STD { int osf1_sys_fstat(int fd, void *sb); } 92 STD { int osf1_sys_fcntl(int fd, int cmd, void *arg); } -93 NOARGS { int sys_select(u_int nd, fd_set *in, fd_set *ou, \ - fd_set *ex, struct timeval *tv); } -94 STD { int osf1_sys_poll(struct pollfd *fds, \ - unsigned int nfds, int timeout); } +93 STD { int osf1_sys_select(u_int nd, fd_set *in, \ + fd_set *ou, fd_set *ex, struct osf1_timeval *tv); } +; maybe XXX +94 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \ + int timeout); } 95 NOARGS { int sys_fsync(int fd); } 96 NOARGS { int sys_setpriority(int which, int who, int prio); } 97 STD { int osf1_sys_socket(int domain, int type, \ @@ -165,7 +182,7 @@ 103 NOARGS { int sys_sigreturn(struct sigcontext *sigcntxp); } 104 NOARGS { int sys_bind(int s, caddr_t name, int namelen); } 105 NOARGS { int sys_setsockopt(int s, int level, int name, \ - caddr_t val, int valsize); } + caddr_t val, int valsize); } 106 NOARGS { int sys_listen(int s, int backlog); } 107 UNIMPL plock 108 UNIMPL old sigvec @@ -176,20 +193,21 @@ struct sigstack *oss); } 113 UNIMPL old recvmsg 114 UNIMPL old sendmsg -115 UNIMPL vtrace -116 NOARGS { int sys_gettimeofday(struct timeval *tp, \ - struct timezone *tzp); } +115 OBSOL vtrace +116 STD { int osf1_sys_gettimeofday(struct osf1_timeval *tp, \ + struct osf1_timezone *tzp); } +117 STD { int osf1_sys_getrusage(int who, \ + struct osf1_rusage *rusage); } ; XXX -117 STD { int osf1_sys_getrusage(void); } 118 NOARGS { int sys_getsockopt(int s, int level, int name, \ - caddr_t val, int *avalsize); } + caddr_t val, int *avalsize); } 119 UNIMPL -120 STD { int osf1_sys_readv(int fd, struct osf1_iovec *iovp, \ - u_int iovcnt); } -121 STD { int osf1_sys_writev(int fd, struct osf1_iovec *iovp, \ - u_int iovcnt); } -122 NOARGS { int sys_settimeofday(struct timeval *tv, \ - struct timezone *tzp); } +120 STD { int osf1_sys_readv(int fd, \ + struct osf1_iovec *iovp, u_int iovcnt); } +121 STD { int osf1_sys_writev(int fd, \ + struct osf1_iovec *iovp, u_int iovcnt); } +122 STD { int osf1_sys_settimeofday(struct osf1_timeval *tv, \ + struct osf1_timezone *tzp); } 123 NOARGS { int sys_fchown(int fd, int uid, int gid); } 124 NOARGS { int sys_fchmod(int fd, int mode); } 125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \ @@ -197,54 +215,63 @@ int *fromlenaddr); } 126 UNIMPL setreuid 127 UNIMPL setregid -128 NOARGS { int sys_rename(char *from, char *to); } -129 STD { int osf1_sys_truncate(char *path, off_t length); } +128 NOARGS { int sys_rename(const char *from, \ + const char *to); } +129 STD { int osf1_sys_truncate(char *path, \ + off_t length); } 130 STD { int osf1_sys_ftruncate(int fd, off_t length); } 131 UNIMPL flock 132 STD { int osf1_sys_setgid(gid_t gid); } -133 STD { int osf1_sys_sendto(int s, const void *buf, \ - size_t len, int flags, const struct sockaddr *to, \ - int tolen); } +133 STD { int osf1_sys_sendto(int s, caddr_t buf, size_t len, \ + int flags, struct sockaddr *to, int tolen); } 134 NOARGS { int sys_shutdown(int s, int how); } -135 UNIMPL socketpair -136 NOARGS { int sys_mkdir(char *path, int mode); } -137 NOARGS { int sys_rmdir(char *path); } -138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); } +135 STD { int osf1_sys_socketpair(int domain, int type, \ + int protocol, int *rsv); } +136 NOARGS { int sys_mkdir(const char *path, int mode); } +137 NOARGS { int sys_rmdir(const char *path); } +138 STD { int osf1_sys_utimes(char *path, \ + const struct osf1_timeval *tptr); } 139 OBSOL 4.2 sigreturn 140 UNIMPL adjtime -141 UNIMPL old getpeername +141 NOARGS { int compat_43_sys_getpeername(int fdes, \ + caddr_t asa, int *alen); } 142 NOARGS { int32_t compat_43_sys_gethostid(void); } 143 NOARGS { int compat_43_sys_sethostid(int32_t hostid); } +; XXX 144 STD { int osf1_sys_getrlimit(u_int which, \ struct rlimit *rlp); } +; XXX 145 STD { int osf1_sys_setrlimit(u_int which, \ struct rlimit *rlp); } 146 UNIMPL old killpg 147 NOARGS { int sys_setsid(void); } 148 UNIMPL quotactl 149 NOARGS { int compat_43_sys_quota(void); } -150 UNIMPL old getsockname -151 UNIMPL -152 UNIMPL -153 UNIMPL -154 UNIMPL -155 UNIMPL +150 NOARGS { int compat_43_sys_getsockname(int fdec, \ + caddr_t asa, int *alen); } +151 UNIMPL pread +152 UNIMPL pwrite +153 UNIMPL pid_block +154 UNIMPL pid_unblock +155 UNIMPL signal_urti 156 STD { int osf1_sys_sigaction(int signum, \ struct osf1_sigaction *nsa, \ struct osf1_sigaction *osa); } -157 UNIMPL +157 UNIMPL sigwaitprim 158 UNIMPL nfssvc 159 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \ u_int count, long *basep); } -160 STD { int osf1_sys_statfs(char *path, \ +160 STD { int osf1_sys_statfs(const char *path, \ struct osf1_statfs *buf, int len); } -161 STD { int osf1_sys_fstatfs(int fd, \ +161 STD { int osf1_sys_fstatfs(int fd, \ struct osf1_statfs *buf, int len); } 162 UNIMPL 163 UNIMPL async_daemon 164 UNIMPL getfh -165 UNIMPL getdomainname -166 UNIMPL setdomainname +165 NOARGS { int compat_09_sys_getdomainname(char *domainname, \ + int len); } +166 NOARGS { int compat_09_sys_setdomainname(char *domainname, \ + int len); } 167 UNIMPL 168 UNIMPL 169 UNIMPL exportfs @@ -285,12 +312,16 @@ 204 UNIMPL semctl 205 UNIMPL semget 206 UNIMPL semop -207 UNIMPL uname -208 NOARGS { int sys_lchown(char *path, int uid, int gid); } -209 UNIMPL shmat -210 UNIMPL shmctl -211 UNIMPL shmdt -212 UNIMPL shmget +207 STD { int osf1_sys_uname(struct osf1_uname *name); } +208 NOARGS { int sys_lchown(const char *path, int uid, \ + int gid); } +209 STD { void *osf1_sys_shmat(int shmid, \ + const void *shmaddr, int shmflg); } +210 STD { int osf1_sys_shmctl(int shmid, int cmd, \ + struct osf1_shmid_ds *buf); } +211 STD { int osf1_sys_shmdt(const void *shmaddr); } +212 STD { int osf1_sys_shmget(osf1_key_t key, size_t size, \ + int flags); } 213 UNIMPL mvalid 214 UNIMPL getaddressconf 215 UNIMPL msleep @@ -312,33 +343,36 @@ 231 UNIMPL 232 UNIMPL 233 UNIMPL getpgid -234 STD { pid_t osf1_sys_getsid(pid_t pid); } -235 STD { int osf1_sys_sigaltstack(struct osf1_sigaltstack *nss, \ +234 NOARGS { pid_t sys_getsid(pid_t pid); } +235 STD { int osf1_sys_sigaltstack( \ + struct osf1_sigaltstack *nss, \ struct osf1_sigaltstack *oss); } 236 UNIMPL waitid 237 UNIMPL priocntlset 238 UNIMPL sigsendset -239 UNIMPL +239 UNIMPL set_speculative 240 UNIMPL msfs_syscall -241 UNIMPL sysinfo +241 STD { int osf1_sys_sysinfo(int cmd, char *buf, long len); } 242 UNIMPL uadmin 243 UNIMPL fuser -244 UNIMPL -245 UNIMPL -246 UNIMPL -247 UNIMPL -248 UNIMPL +244 UNIMPL proplist_syscall +245 UNIMPL ntp_adjtime +246 UNIMPL ntp_gettime +247 STD { long osf1_sys_pathconf(char *path, int name); } +248 STD { long osf1_sys_fpathconf(int fd, int name); } 249 UNIMPL 250 UNIMPL uswitch -251 STD { int osf1_sys_usleep_thread(struct timeval *sleep, \ - struct timeval *slept); } +251 STD { int osf1_sys_usleep_thread( \ + struct osf1_timeval *sleep, \ + struct osf1_timeval *slept); } 252 UNIMPL audcntl 253 UNIMPL audgen 254 UNIMPL sysfs -255 UNIMPL +255 UNIMPL subsys_info 256 UNIMPL getsysinfo 257 STD { int osf1_sys_setsysinfo(u_long op, caddr_t buffer, \ u_long nbytes, caddr_t arg, u_long flag); } 258 UNIMPL afs_syscall 259 UNIMPL swapctl 260 UNIMPL memcntl +261 UNIMPL fdatasync |