diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1998-02-08 22:38:30 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1998-02-08 22:38:30 +0000 |
commit | 5f824803e29da9efcd793a89ec59fe8a8297a269 (patch) | |
tree | bbcf58e1667d681770b27140b2cdd81cde630636 /sys | |
parent | 2af7f079d97f8a201576336b46f5f7da0bff7ded (diff) |
Sync
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/init_sysent.c | 8 | ||||
-rw-r--r-- | sys/kern/syscalls.c | 4 | ||||
-rw-r--r-- | sys/sys/syscall.h | 164 | ||||
-rw-r--r-- | sys/sys/syscallargs.h | 230 |
4 files changed, 206 insertions, 200 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index cbeb02a5be7..6a69f656cf4 100644 --- a/sys/kern/init_sysent.c +++ b/sys/kern/init_sysent.c @@ -1,8 +1,10 @@ +/* $OpenBSD: init_sysent.c,v 1.23 1998/02/08 22:38:27 tholo Exp $ */ + /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.20 1998/01/02 05:32:51 deraadt Exp + * created from; OpenBSD: syscalls.master,v 1.21 1998/02/08 22:37:01 tholo Exp */ #include <sys/param.h> @@ -40,7 +42,7 @@ struct sysent sysent[] = { { 0, 0, - sys_nosys }, /* 0 = syscall */ + sys_nosys }, /* 0 = syscall (indir) */ { 1, s(struct sys_exit_args), sys_exit }, /* 1 = exit */ { 0, 0, @@ -489,7 +491,7 @@ struct sysent sysent[] = { { 7, s(struct sys_mmap_args), sys_mmap }, /* 197 = mmap */ { 0, 0, - sys_nosys }, /* 198 = __syscall */ + sys_nosys }, /* 198 = __syscall (indir) */ { 4, s(struct sys_lseek_args), sys_lseek }, /* 199 = lseek */ { 3, s(struct sys_truncate_args), diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index a25e55805e8..ac1113cb344 100644 --- a/sys/kern/syscalls.c +++ b/sys/kern/syscalls.c @@ -1,8 +1,10 @@ +/* $OpenBSD: syscalls.c,v 1.23 1998/02/08 22:38:27 tholo Exp $ */ + /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.20 1998/01/02 05:32:51 deraadt Exp + * created from; OpenBSD: syscalls.master,v 1.21 1998/02/08 22:37:01 tholo Exp */ char *syscallnames[] = { diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h index 3c9f93860e3..a427cd6ac8e 100644 --- a/sys/sys/syscall.h +++ b/sys/sys/syscall.h @@ -1,26 +1,28 @@ +/* $OpenBSD: syscall.h,v 1.23 1998/02/08 22:38:28 tholo Exp $ */ + /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.20 1998/01/02 05:32:51 deraadt Exp + * created from; OpenBSD: syscalls.master,v 1.21 1998/02/08 22:37:01 tholo Exp */ -/* syscall: "syscall" ret: "int" args: */ +/* syscall: "syscall" ret: "int" args: "int" "..." */ #define SYS_syscall 0 -/* syscall: "exit" ret: "int" args: "int" */ +/* syscall: "exit" ret: "void" args: "int" */ #define SYS_exit 1 /* syscall: "fork" ret: "int" args: */ #define SYS_fork 2 -/* syscall: "read" ret: "int" args: "int" "char *" "u_int" */ +/* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */ #define SYS_read 3 -/* syscall: "write" ret: "int" args: "int" "char *" "u_int" */ +/* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */ #define SYS_write 4 -/* syscall: "open" ret: "int" args: "char *" "int" "int" */ +/* syscall: "open" ret: "int" args: "const char *" "int" "..." */ #define SYS_open 5 /* syscall: "close" ret: "int" args: "int" */ @@ -31,26 +33,26 @@ /* 8 is compat_43 ocreat */ -/* syscall: "link" ret: "int" args: "char *" "char *" */ +/* syscall: "link" ret: "int" args: "const char *" "const char *" */ #define SYS_link 9 -/* syscall: "unlink" ret: "int" args: "char *" */ +/* syscall: "unlink" ret: "int" args: "const char *" */ #define SYS_unlink 10 /* 11 is obsolete execv */ -/* syscall: "chdir" ret: "int" args: "char *" */ +/* syscall: "chdir" ret: "int" args: "const char *" */ #define SYS_chdir 12 /* syscall: "fchdir" ret: "int" args: "int" */ #define SYS_fchdir 13 -/* syscall: "mknod" ret: "int" args: "char *" "int" "int" */ +/* syscall: "mknod" ret: "int" args: "const char *" "mode_t" "dev_t" */ #define SYS_mknod 14 -/* syscall: "chmod" ret: "int" args: "char *" "int" */ +/* syscall: "chmod" ret: "int" args: "const char *" "mode_t" */ #define SYS_chmod 15 -/* syscall: "chown" ret: "int" args: "char *" "int" "int" */ +/* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */ #define SYS_chown 16 /* syscall: "break" ret: "int" args: "char *" */ @@ -64,10 +66,10 @@ /* syscall: "getpid" ret: "pid_t" args: */ #define SYS_getpid 20 -/* syscall: "mount" ret: "int" args: "char *" "char *" "int" "caddr_t" */ +/* syscall: "mount" ret: "int" args: "const char *" "const char *" "int" "void *" */ #define SYS_mount 21 -/* syscall: "unmount" ret: "int" args: "char *" "int" */ +/* syscall: "unmount" ret: "int" args: "const char *" "int" */ #define SYS_unmount 22 /* syscall: "setuid" ret: "int" args: "uid_t" */ @@ -82,34 +84,34 @@ /* syscall: "ptrace" ret: "int" args: "int" "pid_t" "caddr_t" "int" */ #define SYS_ptrace 26 -/* syscall: "recvmsg" ret: "int" args: "int" "struct msghdr *" "int" */ +/* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */ #define SYS_recvmsg 27 -/* syscall: "sendmsg" ret: "int" args: "int" "caddr_t" "int" */ +/* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */ #define SYS_sendmsg 28 -/* syscall: "recvfrom" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int *" */ +/* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "int *" */ #define SYS_recvfrom 29 -/* syscall: "accept" ret: "int" args: "int" "caddr_t" "int *" */ +/* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "int *" */ #define SYS_accept 30 -/* syscall: "getpeername" ret: "int" args: "int" "caddr_t" "int *" */ +/* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "int *" */ #define SYS_getpeername 31 -/* syscall: "getsockname" ret: "int" args: "int" "caddr_t" "int *" */ +/* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "int *" */ #define SYS_getsockname 32 -/* syscall: "access" ret: "int" args: "char *" "int" */ +/* syscall: "access" ret: "int" args: "const char *" "int" */ #define SYS_access 33 -/* syscall: "chflags" ret: "int" args: "char *" "int" */ +/* syscall: "chflags" ret: "int" args: "const char *" "u_long" */ #define SYS_chflags 34 -/* syscall: "fchflags" ret: "int" args: "int" "int" */ +/* syscall: "fchflags" ret: "int" args: "int" "u_long" */ #define SYS_fchflags 35 -/* syscall: "sync" ret: "int" args: */ +/* syscall: "sync" ret: "void" args: */ #define SYS_sync 36 /* syscall: "kill" ret: "int" args: "int" "int" */ @@ -122,7 +124,7 @@ /* 40 is compat_43 olstat */ -/* syscall: "dup" ret: "int" args: "u_int" */ +/* syscall: "dup" ret: "int" args: "int" */ #define SYS_dup 41 /* syscall: "pipe" ret: "int" args: */ @@ -131,13 +133,13 @@ /* syscall: "getegid" ret: "gid_t" args: */ #define SYS_getegid 43 -/* syscall: "profil" ret: "int" args: "char *" "size_t" "u_long" "u_int" */ +/* syscall: "profil" ret: "int" args: "caddr_t" "size_t" "u_long" "u_int" */ #define SYS_profil 44 -/* syscall: "ktrace" ret: "int" args: "char *" "int" "int" "int" */ +/* syscall: "ktrace" ret: "int" args: "const char *" "int" "int" "pid_t" */ #define SYS_ktrace 45 -/* syscall: "sigaction" ret: "int" args: "int" "struct sigaction *" "struct sigaction *" */ +/* syscall: "sigaction" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" */ #define SYS_sigaction 46 /* syscall: "getgid" ret: "gid_t" args: */ @@ -149,40 +151,40 @@ /* syscall: "getlogin" ret: "int" args: "char *" "u_int" */ #define SYS_getlogin 49 -/* syscall: "setlogin" ret: "int" args: "char *" */ +/* syscall: "setlogin" ret: "int" args: "const char *" */ #define SYS_setlogin 50 -/* syscall: "acct" ret: "int" args: "char *" */ +/* syscall: "acct" ret: "int" args: "const char *" */ #define SYS_acct 51 /* syscall: "sigpending" ret: "int" args: */ #define SYS_sigpending 52 -/* syscall: "sigaltstack" ret: "int" args: "struct sigaltstack *" "struct sigaltstack *" */ +/* syscall: "sigaltstack" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */ #define SYS_sigaltstack 53 -/* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */ +/* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." */ #define SYS_ioctl 54 /* syscall: "reboot" ret: "int" args: "int" */ #define SYS_reboot 55 -/* syscall: "revoke" ret: "int" args: "char *" */ +/* syscall: "revoke" ret: "int" args: "const char *" */ #define SYS_revoke 56 -/* syscall: "symlink" ret: "int" args: "char *" "char *" */ +/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */ #define SYS_symlink 57 -/* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */ +/* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */ #define SYS_readlink 58 -/* syscall: "execve" ret: "int" args: "char *" "char **" "char **" */ +/* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */ #define SYS_execve 59 -/* syscall: "umask" ret: "int" args: "int" */ +/* syscall: "umask" ret: "mode_t" args: "mode_t" */ #define SYS_umask 60 -/* syscall: "chroot" ret: "int" args: "char *" */ +/* syscall: "chroot" ret: "int" args: "const char *" */ #define SYS_chroot 61 /* 62 is compat_43 ofstat */ @@ -224,27 +226,27 @@ /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */ #define SYS_mincore 78 -/* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */ +/* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */ #define SYS_getgroups 79 -/* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */ +/* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */ #define SYS_setgroups 80 /* syscall: "getpgrp" ret: "int" args: */ #define SYS_getpgrp 81 -/* syscall: "setpgid" ret: "int" args: "int" "int" */ +/* syscall: "setpgid" ret: "int" args: "pid_t" "int" */ #define SYS_setpgid 82 -/* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */ +/* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval *" "struct itimerval *" */ #define SYS_setitimer 83 /* 84 is compat_43 owait */ -/* syscall: "swapon" ret: "int" args: "char *" */ +/* syscall: "swapon" ret: "int" args: "const char *" */ #define SYS_swapon 85 -/* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */ +/* syscall: "getitimer" ret: "int" args: "int" "struct itimerval *" */ #define SYS_getitimer 86 /* 87 is compat_43 ogethostname */ @@ -253,13 +255,13 @@ /* 89 is compat_43 ogetdtablesize */ -/* syscall: "dup2" ret: "int" args: "u_int" "u_int" */ +/* syscall: "dup2" ret: "int" args: "int" "int" */ #define SYS_dup2 90 -/* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */ +/* syscall: "fcntl" ret: "int" args: "int" "int" "..." */ #define SYS_fcntl 92 -/* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */ +/* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */ #define SYS_select 93 /* syscall: "fsync" ret: "int" args: "int" */ @@ -271,7 +273,7 @@ /* syscall: "socket" ret: "int" args: "int" "int" "int" */ #define SYS_socket 97 -/* syscall: "connect" ret: "int" args: "int" "caddr_t" "int" */ +/* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "int" */ #define SYS_connect 98 /* 99 is compat_43 oaccept */ @@ -286,10 +288,10 @@ /* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */ #define SYS_sigreturn 103 -/* syscall: "bind" ret: "int" args: "int" "caddr_t" "int" */ +/* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "int" */ #define SYS_bind 104 -/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "caddr_t" "int" */ +/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "int" */ #define SYS_setsockopt 105 /* syscall: "listen" ret: "int" args: "int" "int" */ @@ -321,23 +323,23 @@ /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */ #define SYS_getrusage 117 -/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "caddr_t" "int *" */ +/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */ #define SYS_getsockopt 118 /* 119 is obsolete resuba */ -/* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */ +/* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ #define SYS_readv 120 -/* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */ +/* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ #define SYS_writev 121 -/* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */ +/* syscall: "settimeofday" ret: "int" args: "const struct timeval *" "const struct timezone *" */ #define SYS_settimeofday 122 -/* syscall: "fchown" ret: "int" args: "int" "int" "int" */ +/* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */ #define SYS_fchown 123 -/* syscall: "fchmod" ret: "int" args: "int" "int" */ +/* syscall: "fchmod" ret: "int" args: "int" "mode_t" */ #define SYS_fchmod 124 /* 125 is compat_43 orecvfrom */ @@ -346,7 +348,7 @@ /* 127 is compat_43 osetregid */ -/* syscall: "rename" ret: "int" args: "char *" "char *" */ +/* syscall: "rename" ret: "int" args: "const char *" "const char *" */ #define SYS_rename 128 /* 129 is compat_43 otruncate */ @@ -356,10 +358,10 @@ /* syscall: "flock" ret: "int" args: "int" "int" */ #define SYS_flock 131 -/* syscall: "mkfifo" ret: "int" args: "char *" "int" */ +/* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */ #define SYS_mkfifo 132 -/* syscall: "sendto" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int" */ +/* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "int" */ #define SYS_sendto 133 /* syscall: "shutdown" ret: "int" args: "int" "int" */ @@ -368,17 +370,17 @@ /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */ #define SYS_socketpair 135 -/* syscall: "mkdir" ret: "int" args: "char *" "int" */ +/* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */ #define SYS_mkdir 136 -/* syscall: "rmdir" ret: "int" args: "char *" */ +/* syscall: "rmdir" ret: "int" args: "const char *" */ #define SYS_rmdir 137 -/* syscall: "utimes" ret: "int" args: "char *" "struct timeval *" */ +/* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval *" */ #define SYS_utimes 138 /* 139 is obsolete 4.2 sigreturn */ -/* syscall: "adjtime" ret: "int" args: "struct timeval *" "struct timeval *" */ +/* syscall: "adjtime" ret: "int" args: "const struct timeval *" "struct timeval *" */ #define SYS_adjtime 140 /* 141 is compat_43 ogetpeername */ @@ -396,25 +398,25 @@ /* syscall: "setsid" ret: "int" args: */ #define SYS_setsid 147 -/* syscall: "quotactl" ret: "int" args: "char *" "int" "int" "caddr_t" */ +/* syscall: "quotactl" ret: "int" args: "const char *" "int" "int" "char *" */ #define SYS_quotactl 148 /* 149 is compat_43 oquota */ /* 150 is compat_43 ogetsockname */ -/* syscall: "nfssvc" ret: "int" args: "int" "caddr_t" */ +/* syscall: "nfssvc" ret: "int" args: "int" "void *" */ #define SYS_nfssvc 155 /* 156 is compat_43 ogetdirentries */ -/* syscall: "statfs" ret: "int" args: "char *" "struct statfs *" */ +/* syscall: "statfs" ret: "int" args: "const char *" "struct statfs *" */ #define SYS_statfs 157 /* syscall: "fstatfs" ret: "int" args: "int" "struct statfs *" */ #define SYS_fstatfs 158 -/* syscall: "getfh" ret: "int" args: "char *" "fhandle_t *" */ +/* syscall: "getfh" ret: "int" args: "const char *" "fhandle_t *" */ #define SYS_getfh 161 /* 162 is compat_09 ogetdomainname */ @@ -432,7 +434,7 @@ /* 171 is compat_10 oshmsys */ -/* syscall: "ntp_gettime" ret: "int" args: "struct timex *" */ +/* syscall: "ntp_gettime" ret: "int" args: "struct ntptimeval *" */ #define SYS_ntp_gettime 175 /* syscall: "ntp_adjtime" ret: "int" args: "struct timex *" */ @@ -459,40 +461,40 @@ /* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval *" */ #define SYS_lfs_segwait 187 -/* syscall: "stat" ret: "int" args: "char *" "struct stat *" */ +/* syscall: "stat" ret: "int" args: "const char *" "struct stat *" */ #define SYS_stat 188 /* syscall: "fstat" ret: "int" args: "int" "struct stat *" */ #define SYS_fstat 189 -/* syscall: "lstat" ret: "int" args: "char *" "struct stat *" */ +/* syscall: "lstat" ret: "int" args: "const char *" "struct stat *" */ #define SYS_lstat 190 -/* syscall: "pathconf" ret: "int" args: "char *" "int" */ +/* syscall: "pathconf" ret: "long" args: "const char *" "int" */ #define SYS_pathconf 191 -/* syscall: "fpathconf" ret: "int" args: "int" "int" */ +/* syscall: "fpathconf" ret: "long" args: "int" "int" */ #define SYS_fpathconf 192 -/* syscall: "getrlimit" ret: "int" args: "u_int" "struct rlimit *" */ +/* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */ #define SYS_getrlimit 194 -/* syscall: "setrlimit" ret: "int" args: "u_int" "struct rlimit *" */ +/* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */ #define SYS_setrlimit 195 -/* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */ +/* syscall: "getdirentries" ret: "int" args: "int" "char *" "int" "long *" */ #define SYS_getdirentries 196 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */ #define SYS_mmap 197 -/* syscall: "__syscall" ret: "int" args: */ +/* syscall: "__syscall" ret: "quad_t" args: "quad_t" "..." */ #define SYS___syscall 198 /* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */ #define SYS_lseek 199 -/* syscall: "truncate" ret: "int" args: "char *" "int" "off_t" */ +/* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */ #define SYS_truncate 200 /* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */ @@ -507,10 +509,10 @@ /* syscall: "munlock" ret: "int" args: "void *" "size_t" */ #define SYS_munlock 204 -/* syscall: "undelete" ret: "int" args: "char *" */ +/* syscall: "undelete" ret: "int" args: "const char *" */ #define SYS_undelete 205 -/* syscall: "futimes" ret: "int" args: "int" "struct timeval *" */ +/* syscall: "futimes" ret: "int" args: "int" "const struct timeval *" */ #define SYS_futimes 206 /* syscall: "getpgid" ret: "int" args: "pid_t" */ @@ -540,7 +542,7 @@ /* syscall: "msgrcv" ret: "int" args: "int" "void *" "size_t" "long" "int" */ #define SYS_msgrcv 227 -/* syscall: "shmat" ret: "int" args: "int" "void *" "int" */ +/* syscall: "shmat" ret: "void *" args: "int" "void *" "int" */ #define SYS_shmat 228 /* syscall: "shmctl" ret: "int" args: "int" "int" "struct shmid_ds *" */ @@ -576,7 +578,7 @@ /* syscall: "issetugid" ret: "int" args: */ #define SYS_issetugid 253 -/* syscall: "lchown" ret: "int" args: "char *" "int" "int" */ +/* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */ #define SYS_lchown 254 /* syscall: "getsid" ret: "int" args: "pid_t" */ diff --git a/sys/sys/syscallargs.h b/sys/sys/syscallargs.h index ed280f72006..e020d36e6df 100644 --- a/sys/sys/syscallargs.h +++ b/sys/sys/syscallargs.h @@ -1,8 +1,10 @@ +/* $OpenBSD: syscallargs.h,v 1.24 1998/02/08 22:38:29 tholo Exp $ */ + /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from OpenBSD: syscalls.master,v 1.20 1998/01/02 05:32:51 deraadt Exp + * created from; OpenBSD: syscalls.master,v 1.21 1998/02/08 22:37:01 tholo Exp */ #define syscallarg(x) union { x datum; register_t pad; } @@ -13,20 +15,20 @@ struct sys_exit_args { struct sys_read_args { syscallarg(int) fd; - syscallarg(char *) buf; - syscallarg(u_int) nbyte; + syscallarg(void *) buf; + syscallarg(size_t) nbyte; }; struct sys_write_args { syscallarg(int) fd; - syscallarg(char *) buf; - syscallarg(u_int) nbyte; + syscallarg(const void *) buf; + syscallarg(size_t) nbyte; }; struct sys_open_args { - syscallarg(char *) path; + syscallarg(const char *) path; syscallarg(int) flags; - syscallarg(int) mode; + syscallarg(mode_t) mode; }; struct sys_close_args { @@ -41,21 +43,21 @@ struct sys_wait4_args { }; struct compat_43_sys_creat_args { - syscallarg(char *) path; - syscallarg(int) mode; + syscallarg(const char *) path; + syscallarg(mode_t) mode; }; struct sys_link_args { - syscallarg(char *) path; - syscallarg(char *) link; + syscallarg(const char *) path; + syscallarg(const char *) link; }; struct sys_unlink_args { - syscallarg(char *) path; + syscallarg(const char *) path; }; struct sys_chdir_args { - syscallarg(char *) path; + syscallarg(const char *) path; }; struct sys_fchdir_args { @@ -63,20 +65,20 @@ struct sys_fchdir_args { }; struct sys_mknod_args { - syscallarg(char *) path; - syscallarg(int) mode; - syscallarg(int) dev; + syscallarg(const char *) path; + syscallarg(mode_t) mode; + syscallarg(dev_t) dev; }; struct sys_chmod_args { - syscallarg(char *) path; - syscallarg(int) mode; + syscallarg(const char *) path; + syscallarg(mode_t) mode; }; struct sys_chown_args { - syscallarg(char *) path; - syscallarg(int) uid; - syscallarg(int) gid; + syscallarg(const char *) path; + syscallarg(uid_t) uid; + syscallarg(gid_t) gid; }; struct sys_obreak_args { @@ -96,14 +98,14 @@ struct compat_43_sys_lseek_args { }; struct sys_mount_args { - syscallarg(char *) type; - syscallarg(char *) path; + syscallarg(const char *) type; + syscallarg(const char *) path; syscallarg(int) flags; - syscallarg(caddr_t) data; + syscallarg(void *) data; }; struct sys_unmount_args { - syscallarg(char *) path; + syscallarg(const char *) path; syscallarg(int) flags; }; @@ -126,50 +128,50 @@ struct sys_recvmsg_args { struct sys_sendmsg_args { syscallarg(int) s; - syscallarg(caddr_t) msg; + syscallarg(const struct msghdr *) msg; syscallarg(int) flags; }; struct sys_recvfrom_args { syscallarg(int) s; - syscallarg(caddr_t) buf; + syscallarg(void *) buf; syscallarg(size_t) len; syscallarg(int) flags; - syscallarg(caddr_t) from; + syscallarg(struct sockaddr *) from; syscallarg(int *) fromlenaddr; }; struct sys_accept_args { syscallarg(int) s; - syscallarg(caddr_t) name; + syscallarg(struct sockaddr *) name; syscallarg(int *) anamelen; }; struct sys_getpeername_args { syscallarg(int) fdes; - syscallarg(caddr_t) asa; + syscallarg(struct sockaddr *) asa; syscallarg(int *) alen; }; struct sys_getsockname_args { syscallarg(int) fdes; - syscallarg(caddr_t) asa; + syscallarg(struct sockaddr *) asa; syscallarg(int *) alen; }; struct sys_access_args { - syscallarg(char *) path; + syscallarg(const char *) path; syscallarg(int) flags; }; struct sys_chflags_args { - syscallarg(char *) path; - syscallarg(int) flags; + syscallarg(const char *) path; + syscallarg(u_long) flags; }; struct sys_fchflags_args { syscallarg(int) fd; - syscallarg(int) flags; + syscallarg(u_long) flags; }; struct sys_kill_args { @@ -178,7 +180,7 @@ struct sys_kill_args { }; struct compat_43_sys_stat_args { - syscallarg(char *) path; + syscallarg(const char *) path; syscallarg(struct ostat *) ub; }; @@ -188,26 +190,26 @@ struct compat_43_sys_lstat_args { }; struct sys_dup_args { - syscallarg(u_int) fd; + syscallarg(int) fd; }; struct sys_profil_args { - syscallarg(char *) samples; + syscallarg(caddr_t) samples; syscallarg(size_t) size; syscallarg(u_long) offset; syscallarg(u_int) scale; }; struct sys_ktrace_args { - syscallarg(char *) fname; + syscallarg(const char *) fname; syscallarg(int) ops; syscallarg(int) facs; - syscallarg(int) pid; + syscallarg(pid_t) pid; }; struct sys_sigaction_args { syscallarg(int) signum; - syscallarg(struct sigaction *) nsa; + syscallarg(const struct sigaction *) nsa; syscallarg(struct sigaction *) osa; }; @@ -222,22 +224,22 @@ struct sys_getlogin_args { }; struct sys_setlogin_args { - syscallarg(char *) namebuf; + syscallarg(const char *) namebuf; }; struct sys_acct_args { - syscallarg(char *) path; + syscallarg(const char *) path; }; struct sys_sigaltstack_args { - syscallarg(struct sigaltstack *) nss; + syscallarg(const struct sigaltstack *) nss; syscallarg(struct sigaltstack *) oss; }; struct sys_ioctl_args { syscallarg(int) fd; syscallarg(u_long) com; - syscallarg(caddr_t) data; + syscallarg(void *) data; }; struct sys_reboot_args { @@ -245,32 +247,32 @@ struct sys_reboot_args { }; struct sys_revoke_args { - syscallarg(char *) path; + syscallarg(const char *) path; }; struct sys_symlink_args { - syscallarg(char *) path; - syscallarg(char *) link; + syscallarg(const char *) path; + syscallarg(const char *) link; }; struct sys_readlink_args { - syscallarg(char *) path; + syscallarg(const char *) path; syscallarg(char *) buf; syscallarg(int) count; }; struct sys_execve_args { - syscallarg(char *) path; - syscallarg(char **) argp; - syscallarg(char **) envp; + syscallarg(const char *) path; + syscallarg(char *const *) argp; + syscallarg(char *const *) envp; }; struct sys_umask_args { - syscallarg(int) newmask; + syscallarg(mode_t) newmask; }; struct sys_chroot_args { - syscallarg(char *) path; + syscallarg(const char *) path; }; struct compat_43_sys_fstat_args { @@ -335,32 +337,32 @@ struct sys_mincore_args { }; struct sys_getgroups_args { - syscallarg(u_int) gidsetsize; + syscallarg(int) gidsetsize; syscallarg(gid_t *) gidset; }; struct sys_setgroups_args { - syscallarg(u_int) gidsetsize; - syscallarg(gid_t *) gidset; + syscallarg(int) gidsetsize; + syscallarg(const gid_t *) gidset; }; struct sys_setpgid_args { - syscallarg(int) pid; + syscallarg(pid_t) pid; syscallarg(int) pgid; }; struct sys_setitimer_args { - syscallarg(u_int) which; - syscallarg(struct itimerval *) itv; + syscallarg(int) which; + syscallarg(const struct itimerval *) itv; syscallarg(struct itimerval *) oitv; }; struct sys_swapon_args { - syscallarg(char *) name; + syscallarg(const char *) name; }; struct sys_getitimer_args { - syscallarg(u_int) which; + syscallarg(int) which; syscallarg(struct itimerval *) itv; }; @@ -375,8 +377,8 @@ struct compat_43_sys_sethostname_args { }; struct sys_dup2_args { - syscallarg(u_int) from; - syscallarg(u_int) to; + syscallarg(int) from; + syscallarg(int) to; }; struct sys_fcntl_args { @@ -386,7 +388,7 @@ struct sys_fcntl_args { }; struct sys_select_args { - syscallarg(u_int) nd; + syscallarg(int) nd; syscallarg(fd_set *) in; syscallarg(fd_set *) ou; syscallarg(fd_set *) ex; @@ -411,7 +413,7 @@ struct sys_socket_args { struct sys_connect_args { syscallarg(int) s; - syscallarg(caddr_t) name; + syscallarg(const struct sockaddr *) name; syscallarg(int) namelen; }; @@ -446,7 +448,7 @@ struct sys_sigreturn_args { struct sys_bind_args { syscallarg(int) s; - syscallarg(caddr_t) name; + syscallarg(const struct sockaddr *) name; syscallarg(int) namelen; }; @@ -454,7 +456,7 @@ struct sys_setsockopt_args { syscallarg(int) s; syscallarg(int) level; syscallarg(int) name; - syscallarg(caddr_t) val; + syscallarg(const void *) val; syscallarg(int) valsize; }; @@ -517,36 +519,36 @@ struct sys_getsockopt_args { syscallarg(int) s; syscallarg(int) level; syscallarg(int) name; - syscallarg(caddr_t) val; + syscallarg(void *) val; syscallarg(int *) avalsize; }; struct sys_readv_args { syscallarg(int) fd; - syscallarg(struct iovec *) iovp; - syscallarg(u_int) iovcnt; + syscallarg(const struct iovec *) iovp; + syscallarg(int) iovcnt; }; struct sys_writev_args { syscallarg(int) fd; - syscallarg(struct iovec *) iovp; - syscallarg(u_int) iovcnt; + syscallarg(const struct iovec *) iovp; + syscallarg(int) iovcnt; }; struct sys_settimeofday_args { - syscallarg(struct timeval *) tv; - syscallarg(struct timezone *) tzp; + syscallarg(const struct timeval *) tv; + syscallarg(const struct timezone *) tzp; }; struct sys_fchown_args { syscallarg(int) fd; - syscallarg(int) uid; - syscallarg(int) gid; + syscallarg(uid_t) uid; + syscallarg(gid_t) gid; }; struct sys_fchmod_args { syscallarg(int) fd; - syscallarg(int) mode; + syscallarg(mode_t) mode; }; struct compat_43_sys_recvfrom_args { @@ -569,12 +571,12 @@ struct compat_43_sys_setregid_args { }; struct sys_rename_args { - syscallarg(char *) from; - syscallarg(char *) to; + syscallarg(const char *) from; + syscallarg(const char *) to; }; struct compat_43_sys_truncate_args { - syscallarg(char *) path; + syscallarg(const char *) path; syscallarg(long) length; }; @@ -589,16 +591,16 @@ struct sys_flock_args { }; struct sys_mkfifo_args { - syscallarg(char *) path; - syscallarg(int) mode; + syscallarg(const char *) path; + syscallarg(mode_t) mode; }; struct sys_sendto_args { syscallarg(int) s; - syscallarg(caddr_t) buf; + syscallarg(const void *) buf; syscallarg(size_t) len; syscallarg(int) flags; - syscallarg(caddr_t) to; + syscallarg(const struct sockaddr *) to; syscallarg(int) tolen; }; @@ -615,21 +617,21 @@ struct sys_socketpair_args { }; struct sys_mkdir_args { - syscallarg(char *) path; - syscallarg(int) mode; + syscallarg(const char *) path; + syscallarg(mode_t) mode; }; struct sys_rmdir_args { - syscallarg(char *) path; + syscallarg(const char *) path; }; struct sys_utimes_args { - syscallarg(char *) path; - syscallarg(struct timeval *) tptr; + syscallarg(const char *) path; + syscallarg(const struct timeval *) tptr; }; struct sys_adjtime_args { - syscallarg(struct timeval *) delta; + syscallarg(const struct timeval *) delta; syscallarg(struct timeval *) olddelta; }; @@ -644,12 +646,12 @@ struct compat_43_sys_sethostid_args { }; struct compat_43_sys_getrlimit_args { - syscallarg(u_int) which; + syscallarg(int) which; syscallarg(struct ogetrlimit *) rlp; }; struct compat_43_sys_setrlimit_args { - syscallarg(u_int) which; + syscallarg(int) which; syscallarg(struct ogetrlimit *) rlp; }; @@ -659,10 +661,10 @@ struct compat_43_sys_killpg_args { }; struct sys_quotactl_args { - syscallarg(char *) path; + syscallarg(const char *) path; syscallarg(int) cmd; syscallarg(int) uid; - syscallarg(caddr_t) arg; + syscallarg(char *) arg; }; struct compat_43_sys_getsockname_args { @@ -673,18 +675,18 @@ struct compat_43_sys_getsockname_args { struct sys_nfssvc_args { syscallarg(int) flag; - syscallarg(caddr_t) argp; + syscallarg(void *) argp; }; struct compat_43_sys_getdirentries_args { syscallarg(int) fd; syscallarg(char *) buf; - syscallarg(u_int) count; + syscallarg(int) count; syscallarg(long *) basep; }; struct sys_statfs_args { - syscallarg(char *) path; + syscallarg(const char *) path; syscallarg(struct statfs *) buf; }; @@ -694,7 +696,7 @@ struct sys_fstatfs_args { }; struct sys_getfh_args { - syscallarg(char *) fname; + syscallarg(const char *) fname; syscallarg(fhandle_t *) fhp; }; @@ -742,7 +744,7 @@ struct compat_10_sys_shmsys_args { }; struct sys_ntp_gettime_args { - syscallarg(struct timex *) tp; + syscallarg(struct ntptimeval *) ntvp; }; struct sys_ntp_adjtime_args { @@ -784,7 +786,7 @@ struct lfs_segwait_args { }; struct sys_stat_args { - syscallarg(char *) path; + syscallarg(const char *) path; syscallarg(struct stat *) ub; }; @@ -794,12 +796,12 @@ struct sys_fstat_args { }; struct sys_lstat_args { - syscallarg(char *) path; + syscallarg(const char *) path; syscallarg(struct stat *) ub; }; struct sys_pathconf_args { - syscallarg(char *) path; + syscallarg(const char *) path; syscallarg(int) name; }; @@ -809,19 +811,19 @@ struct sys_fpathconf_args { }; struct sys_getrlimit_args { - syscallarg(u_int) which; + syscallarg(int) which; syscallarg(struct rlimit *) rlp; }; struct sys_setrlimit_args { - syscallarg(u_int) which; - syscallarg(struct rlimit *) rlp; + syscallarg(int) which; + syscallarg(const struct rlimit *) rlp; }; struct sys_getdirentries_args { syscallarg(int) fd; syscallarg(char *) buf; - syscallarg(u_int) count; + syscallarg(int) count; syscallarg(long *) basep; }; @@ -843,7 +845,7 @@ struct sys_lseek_args { }; struct sys_truncate_args { - syscallarg(char *) path; + syscallarg(const char *) path; syscallarg(int) pad; syscallarg(off_t) length; }; @@ -874,12 +876,12 @@ struct sys_munlock_args { }; struct sys_undelete_args { - syscallarg(char *) path; + syscallarg(const char *) path; }; struct sys_futimes_args { syscallarg(int) fd; - syscallarg(struct timeval *) tptr; + syscallarg(const struct timeval *) tptr; }; struct sys_getpgid_args { @@ -994,9 +996,9 @@ struct sys_poll_args { }; struct sys_lchown_args { - syscallarg(char *) path; - syscallarg(int) uid; - syscallarg(int) gid; + syscallarg(const char *) path; + syscallarg(uid_t) uid; + syscallarg(gid_t) gid; }; struct sys_getsid_args { @@ -1013,7 +1015,6 @@ struct sys_msync_args { * System call prototypes. */ -int sys_nosys __P((struct proc *, void *, register_t *)); int sys_exit __P((struct proc *, void *, register_t *)); int sys_fork __P((struct proc *, void *, register_t *)); int sys_read __P((struct proc *, void *, register_t *)); @@ -1211,7 +1212,6 @@ int sys_getrlimit __P((struct proc *, void *, register_t *)); int sys_setrlimit __P((struct proc *, void *, register_t *)); int sys_getdirentries __P((struct proc *, void *, register_t *)); int sys_mmap __P((struct proc *, void *, register_t *)); -int sys_nosys __P((struct proc *, void *, register_t *)); int sys_lseek __P((struct proc *, void *, register_t *)); int sys_truncate __P((struct proc *, void *, register_t *)); int sys_ftruncate __P((struct proc *, void *, register_t *)); |