diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-14 01:27:20 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-14 01:27:20 +0000 |
commit | 8327d0774703553db5e1a41a04bfdf4b1797c2ce (patch) | |
tree | ac9a52bace179e17769651fb9f805070d78abe5f /sys/compat | |
parent | 7b2c79b5895287d37f0c4e3adfc396eb7a6c03fb (diff) |
First round of __P removal in sys
Diffstat (limited to 'sys/compat')
101 files changed, 2210 insertions, 2211 deletions
diff --git a/sys/compat/bsdos/bsdos_exec.h b/sys/compat/bsdos/bsdos_exec.h index d56c3f3cf00..5c6753d360e 100644 --- a/sys/compat/bsdos/bsdos_exec.h +++ b/sys/compat/bsdos/bsdos_exec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bsdos_exec.h,v 1.1 1997/09/02 08:54:12 downsj Exp $ */ +/* $OpenBSD: bsdos_exec.h,v 1.2 2002/03/14 01:26:49 millert Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -42,6 +42,6 @@ #define BSDOS_AOUT_HDR_SIZE sizeof(struct exec) -int exec_bsdos_aout_makecmds __P((struct proc *, struct exec_package *)); +int exec_bsdos_aout_makecmds(struct proc *, struct exec_package *); #endif /* !_BSDOS_EXEC_H */ diff --git a/sys/compat/bsdos/bsdos_ioctl.c b/sys/compat/bsdos/bsdos_ioctl.c index 588a1439ce5..36872c7f9e0 100644 --- a/sys/compat/bsdos/bsdos_ioctl.c +++ b/sys/compat/bsdos/bsdos_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bsdos_ioctl.c,v 1.1 1999/11/13 22:13:00 millert Exp $ */ +/* $OpenBSD: bsdos_ioctl.c,v 1.2 2002/03/14 01:26:49 millert Exp $ */ /* * Copyright (c) 1999 Todd C. Miller <Todd.Miller@courtesan.com> @@ -42,7 +42,7 @@ #include <compat/common/compat_util.h> -static void bsdos_to_oss __P((struct bsdos_sys_ioctl_args *, struct oss_sys_ioctl_args *)); +static void bsdos_to_oss(struct bsdos_sys_ioctl_args *, struct oss_sys_ioctl_args *); /* * BSD/OS and OSS have different values for IOC_*. Also, diff --git a/sys/compat/bsdos/bsdos_syscallargs.h b/sys/compat/bsdos/bsdos_syscallargs.h index 9b5e9f08f17..362581046ac 100644 --- a/sys/compat/bsdos/bsdos_syscallargs.h +++ b/sys/compat/bsdos/bsdos_syscallargs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bsdos_syscallargs.h,v 1.10 2002/03/14 00:44:20 miod Exp $ */ +/* $OpenBSD: bsdos_syscallargs.h,v 1.11 2002/03/14 01:26:49 millert Exp $ */ /* * System call argument lists. @@ -33,215 +33,215 @@ struct bsdos_sys_ioctl_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 *)); -int sys_write __P((struct proc *, void *, register_t *)); -int sys_open __P((struct proc *, void *, register_t *)); -int sys_close __P((struct proc *, void *, register_t *)); -int sys_wait4 __P((struct proc *, void *, register_t *)); -int compat_43_sys_creat __P((struct proc *, void *, register_t *)); -int sys_link __P((struct proc *, void *, register_t *)); -int sys_unlink __P((struct proc *, void *, register_t *)); -int sys_chdir __P((struct proc *, void *, register_t *)); -int sys_fchdir __P((struct proc *, void *, register_t *)); -int sys_mknod __P((struct proc *, void *, register_t *)); -int sys_chmod __P((struct proc *, void *, register_t *)); -int sys_chown __P((struct proc *, void *, register_t *)); -int sys_obreak __P((struct proc *, void *, register_t *)); -int compat_25_sys_getfsstat __P((struct proc *, void *, register_t *)); -int compat_43_sys_lseek __P((struct proc *, void *, register_t *)); -int sys_getpid __P((struct proc *, void *, register_t *)); -int sys_mount __P((struct proc *, void *, register_t *)); -int sys_unmount __P((struct proc *, void *, register_t *)); -int sys_setuid __P((struct proc *, void *, register_t *)); -int sys_getuid __P((struct proc *, void *, register_t *)); -int sys_geteuid __P((struct proc *, void *, register_t *)); +int sys_nosys(struct proc *, void *, register_t *); +int sys_exit(struct proc *, void *, register_t *); +int sys_fork(struct proc *, void *, register_t *); +int sys_read(struct proc *, void *, register_t *); +int sys_write(struct proc *, void *, register_t *); +int sys_open(struct proc *, void *, register_t *); +int sys_close(struct proc *, void *, register_t *); +int sys_wait4(struct proc *, void *, register_t *); +int compat_43_sys_creat(struct proc *, void *, register_t *); +int sys_link(struct proc *, void *, register_t *); +int sys_unlink(struct proc *, void *, register_t *); +int sys_chdir(struct proc *, void *, register_t *); +int sys_fchdir(struct proc *, void *, register_t *); +int sys_mknod(struct proc *, void *, register_t *); +int sys_chmod(struct proc *, void *, register_t *); +int sys_chown(struct proc *, void *, register_t *); +int sys_obreak(struct proc *, void *, register_t *); +int compat_25_sys_getfsstat(struct proc *, void *, register_t *); +int compat_43_sys_lseek(struct proc *, void *, register_t *); +int sys_getpid(struct proc *, void *, register_t *); +int sys_mount(struct proc *, void *, register_t *); +int sys_unmount(struct proc *, void *, register_t *); +int sys_setuid(struct proc *, void *, register_t *); +int sys_getuid(struct proc *, void *, register_t *); +int sys_geteuid(struct proc *, void *, register_t *); #ifdef PTRACE -int sys_ptrace __P((struct proc *, void *, register_t *)); +int sys_ptrace(struct proc *, void *, register_t *); #else #endif -int sys_recvmsg __P((struct proc *, void *, register_t *)); -int sys_sendmsg __P((struct proc *, void *, register_t *)); -int sys_recvfrom __P((struct proc *, void *, register_t *)); -int sys_accept __P((struct proc *, void *, register_t *)); -int sys_getpeername __P((struct proc *, void *, register_t *)); -int sys_getsockname __P((struct proc *, void *, register_t *)); -int sys_access __P((struct proc *, void *, register_t *)); -int sys_chflags __P((struct proc *, void *, register_t *)); -int sys_fchflags __P((struct proc *, void *, register_t *)); -int sys_sync __P((struct proc *, void *, register_t *)); -int sys_kill __P((struct proc *, void *, register_t *)); -int compat_43_sys_stat __P((struct proc *, void *, register_t *)); -int sys_getppid __P((struct proc *, void *, register_t *)); -int compat_43_sys_lstat __P((struct proc *, void *, register_t *)); -int sys_dup __P((struct proc *, void *, register_t *)); -int sys_opipe __P((struct proc *, void *, register_t *)); -int sys_getegid __P((struct proc *, void *, register_t *)); -int sys_profil __P((struct proc *, void *, register_t *)); +int sys_recvmsg(struct proc *, void *, register_t *); +int sys_sendmsg(struct proc *, void *, register_t *); +int sys_recvfrom(struct proc *, void *, register_t *); +int sys_accept(struct proc *, void *, register_t *); +int sys_getpeername(struct proc *, void *, register_t *); +int sys_getsockname(struct proc *, void *, register_t *); +int sys_access(struct proc *, void *, register_t *); +int sys_chflags(struct proc *, void *, register_t *); +int sys_fchflags(struct proc *, void *, register_t *); +int sys_sync(struct proc *, void *, register_t *); +int sys_kill(struct proc *, void *, register_t *); +int compat_43_sys_stat(struct proc *, void *, register_t *); +int sys_getppid(struct proc *, void *, register_t *); +int compat_43_sys_lstat(struct proc *, void *, register_t *); +int sys_dup(struct proc *, void *, register_t *); +int sys_opipe(struct proc *, void *, register_t *); +int sys_getegid(struct proc *, void *, register_t *); +int sys_profil(struct proc *, void *, register_t *); #ifdef KTRACE -int sys_ktrace __P((struct proc *, void *, register_t *)); +int sys_ktrace(struct proc *, void *, register_t *); #else #endif -int sys_sigaction __P((struct proc *, void *, register_t *)); -int sys_getgid __P((struct proc *, void *, register_t *)); -int sys_sigprocmask __P((struct proc *, void *, register_t *)); -int sys_getlogin __P((struct proc *, void *, register_t *)); -int sys_setlogin __P((struct proc *, void *, register_t *)); -int sys_acct __P((struct proc *, void *, register_t *)); -int sys_sigpending __P((struct proc *, void *, register_t *)); -int sys_sigaltstack __P((struct proc *, void *, register_t *)); -int bsdos_sys_ioctl __P((struct proc *, void *, register_t *)); -int sys_reboot __P((struct proc *, void *, register_t *)); -int sys_revoke __P((struct proc *, void *, register_t *)); -int sys_symlink __P((struct proc *, void *, register_t *)); -int sys_readlink __P((struct proc *, void *, register_t *)); -int sys_execve __P((struct proc *, void *, register_t *)); -int sys_umask __P((struct proc *, void *, register_t *)); -int sys_chroot __P((struct proc *, void *, register_t *)); -int compat_43_sys_fstat __P((struct proc *, void *, register_t *)); -int compat_43_sys_getkerninfo __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpagesize __P((struct proc *, void *, register_t *)); -int sys_msync __P((struct proc *, void *, register_t *)); -int sys_vfork __P((struct proc *, void *, register_t *)); -int sys_sbrk __P((struct proc *, void *, register_t *)); -int sys_sstk __P((struct proc *, void *, register_t *)); -int compat_43_sys_mmap __P((struct proc *, void *, register_t *)); -int sys_ovadvise __P((struct proc *, void *, register_t *)); -int sys_munmap __P((struct proc *, void *, register_t *)); -int sys_mprotect __P((struct proc *, void *, register_t *)); -int sys_madvise __P((struct proc *, void *, register_t *)); -int sys_mincore __P((struct proc *, void *, register_t *)); -int sys_getgroups __P((struct proc *, void *, register_t *)); -int sys_setgroups __P((struct proc *, void *, register_t *)); -int sys_getpgrp __P((struct proc *, void *, register_t *)); -int sys_setpgid __P((struct proc *, void *, register_t *)); -int sys_setitimer __P((struct proc *, void *, register_t *)); -int compat_43_sys_wait __P((struct proc *, void *, register_t *)); -int sys_swapon __P((struct proc *, void *, register_t *)); -int sys_getitimer __P((struct proc *, void *, register_t *)); -int compat_43_sys_gethostname __P((struct proc *, void *, register_t *)); -int compat_43_sys_sethostname __P((struct proc *, void *, register_t *)); -int compat_43_sys_getdtablesize __P((struct proc *, void *, register_t *)); -int sys_dup2 __P((struct proc *, void *, register_t *)); -int sys_fcntl __P((struct proc *, void *, register_t *)); -int sys_select __P((struct proc *, void *, register_t *)); -int sys_fsync __P((struct proc *, void *, register_t *)); -int sys_setpriority __P((struct proc *, void *, register_t *)); -int sys_socket __P((struct proc *, void *, register_t *)); -int sys_connect __P((struct proc *, void *, register_t *)); -int compat_43_sys_accept __P((struct proc *, void *, register_t *)); -int sys_getpriority __P((struct proc *, void *, register_t *)); -int compat_43_sys_send __P((struct proc *, void *, register_t *)); -int compat_43_sys_recv __P((struct proc *, void *, register_t *)); -int sys_sigreturn __P((struct proc *, void *, register_t *)); -int sys_bind __P((struct proc *, void *, register_t *)); -int sys_setsockopt __P((struct proc *, void *, register_t *)); -int sys_listen __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigvec __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigblock __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigsetmask __P((struct proc *, void *, register_t *)); -int sys_sigsuspend __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigstack __P((struct proc *, void *, register_t *)); -int compat_43_sys_recvmsg __P((struct proc *, void *, register_t *)); -int compat_43_sys_sendmsg __P((struct proc *, void *, register_t *)); +int sys_sigaction(struct proc *, void *, register_t *); +int sys_getgid(struct proc *, void *, register_t *); +int sys_sigprocmask(struct proc *, void *, register_t *); +int sys_getlogin(struct proc *, void *, register_t *); +int sys_setlogin(struct proc *, void *, register_t *); +int sys_acct(struct proc *, void *, register_t *); +int sys_sigpending(struct proc *, void *, register_t *); +int sys_sigaltstack(struct proc *, void *, register_t *); +int bsdos_sys_ioctl(struct proc *, void *, register_t *); +int sys_reboot(struct proc *, void *, register_t *); +int sys_revoke(struct proc *, void *, register_t *); +int sys_symlink(struct proc *, void *, register_t *); +int sys_readlink(struct proc *, void *, register_t *); +int sys_execve(struct proc *, void *, register_t *); +int sys_umask(struct proc *, void *, register_t *); +int sys_chroot(struct proc *, void *, register_t *); +int compat_43_sys_fstat(struct proc *, void *, register_t *); +int compat_43_sys_getkerninfo(struct proc *, void *, register_t *); +int compat_43_sys_getpagesize(struct proc *, void *, register_t *); +int sys_msync(struct proc *, void *, register_t *); +int sys_vfork(struct proc *, void *, register_t *); +int sys_sbrk(struct proc *, void *, register_t *); +int sys_sstk(struct proc *, void *, register_t *); +int compat_43_sys_mmap(struct proc *, void *, register_t *); +int sys_ovadvise(struct proc *, void *, register_t *); +int sys_munmap(struct proc *, void *, register_t *); +int sys_mprotect(struct proc *, void *, register_t *); +int sys_madvise(struct proc *, void *, register_t *); +int sys_mincore(struct proc *, void *, register_t *); +int sys_getgroups(struct proc *, void *, register_t *); +int sys_setgroups(struct proc *, void *, register_t *); +int sys_getpgrp(struct proc *, void *, register_t *); +int sys_setpgid(struct proc *, void *, register_t *); +int sys_setitimer(struct proc *, void *, register_t *); +int compat_43_sys_wait(struct proc *, void *, register_t *); +int sys_swapon(struct proc *, void *, register_t *); +int sys_getitimer(struct proc *, void *, register_t *); +int compat_43_sys_gethostname(struct proc *, void *, register_t *); +int compat_43_sys_sethostname(struct proc *, void *, register_t *); +int compat_43_sys_getdtablesize(struct proc *, void *, register_t *); +int sys_dup2(struct proc *, void *, register_t *); +int sys_fcntl(struct proc *, void *, register_t *); +int sys_select(struct proc *, void *, register_t *); +int sys_fsync(struct proc *, void *, register_t *); +int sys_setpriority(struct proc *, void *, register_t *); +int sys_socket(struct proc *, void *, register_t *); +int sys_connect(struct proc *, void *, register_t *); +int compat_43_sys_accept(struct proc *, void *, register_t *); +int sys_getpriority(struct proc *, void *, register_t *); +int compat_43_sys_send(struct proc *, void *, register_t *); +int compat_43_sys_recv(struct proc *, void *, register_t *); +int sys_sigreturn(struct proc *, void *, register_t *); +int sys_bind(struct proc *, void *, register_t *); +int sys_setsockopt(struct proc *, void *, register_t *); +int sys_listen(struct proc *, void *, register_t *); +int compat_43_sys_sigvec(struct proc *, void *, register_t *); +int compat_43_sys_sigblock(struct proc *, void *, register_t *); +int compat_43_sys_sigsetmask(struct proc *, void *, register_t *); +int sys_sigsuspend(struct proc *, void *, register_t *); +int compat_43_sys_sigstack(struct proc *, void *, register_t *); +int compat_43_sys_recvmsg(struct proc *, void *, register_t *); +int compat_43_sys_sendmsg(struct proc *, void *, register_t *); #ifdef TRACE -int sys_vtrace __P((struct proc *, void *, register_t *)); +int sys_vtrace(struct proc *, void *, register_t *); #else #endif -int sys_gettimeofday __P((struct proc *, void *, register_t *)); -int sys_getrusage __P((struct proc *, void *, register_t *)); -int sys_getsockopt __P((struct proc *, void *, register_t *)); -int sys_readv __P((struct proc *, void *, register_t *)); -int sys_writev __P((struct proc *, void *, register_t *)); -int sys_settimeofday __P((struct proc *, void *, register_t *)); -int sys_fchown __P((struct proc *, void *, register_t *)); -int sys_fchmod __P((struct proc *, void *, register_t *)); -int compat_43_sys_recvfrom __P((struct proc *, void *, register_t *)); -int compat_43_sys_setreuid __P((struct proc *, void *, register_t *)); -int compat_43_sys_setregid __P((struct proc *, void *, register_t *)); -int sys_rename __P((struct proc *, void *, register_t *)); -int compat_43_sys_truncate __P((struct proc *, void *, register_t *)); -int compat_43_sys_ftruncate __P((struct proc *, void *, register_t *)); -int sys_flock __P((struct proc *, void *, register_t *)); -int sys_mkfifo __P((struct proc *, void *, register_t *)); -int sys_sendto __P((struct proc *, void *, register_t *)); -int sys_shutdown __P((struct proc *, void *, register_t *)); -int sys_socketpair __P((struct proc *, void *, register_t *)); -int sys_mkdir __P((struct proc *, void *, register_t *)); -int sys_rmdir __P((struct proc *, void *, register_t *)); -int sys_utimes __P((struct proc *, void *, register_t *)); -int sys_adjtime __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpeername __P((struct proc *, void *, register_t *)); -int compat_43_sys_gethostid __P((struct proc *, void *, register_t *)); -int compat_43_sys_sethostid __P((struct proc *, void *, register_t *)); -int compat_43_sys_getrlimit __P((struct proc *, void *, register_t *)); -int compat_43_sys_setrlimit __P((struct proc *, void *, register_t *)); -int compat_43_sys_killpg __P((struct proc *, void *, register_t *)); -int sys_setsid __P((struct proc *, void *, register_t *)); -int sys_quotactl __P((struct proc *, void *, register_t *)); -int compat_43_sys_quota __P((struct proc *, void *, register_t *)); -int compat_43_sys_getsockname __P((struct proc *, void *, register_t *)); +int sys_gettimeofday(struct proc *, void *, register_t *); +int sys_getrusage(struct proc *, void *, register_t *); +int sys_getsockopt(struct proc *, void *, register_t *); +int sys_readv(struct proc *, void *, register_t *); +int sys_writev(struct proc *, void *, register_t *); +int sys_settimeofday(struct proc *, void *, register_t *); +int sys_fchown(struct proc *, void *, register_t *); +int sys_fchmod(struct proc *, void *, register_t *); +int compat_43_sys_recvfrom(struct proc *, void *, register_t *); +int compat_43_sys_setreuid(struct proc *, void *, register_t *); +int compat_43_sys_setregid(struct proc *, void *, register_t *); +int sys_rename(struct proc *, void *, register_t *); +int compat_43_sys_truncate(struct proc *, void *, register_t *); +int compat_43_sys_ftruncate(struct proc *, void *, register_t *); +int sys_flock(struct proc *, void *, register_t *); +int sys_mkfifo(struct proc *, void *, register_t *); +int sys_sendto(struct proc *, void *, register_t *); +int sys_shutdown(struct proc *, void *, register_t *); +int sys_socketpair(struct proc *, void *, register_t *); +int sys_mkdir(struct proc *, void *, register_t *); +int sys_rmdir(struct proc *, void *, register_t *); +int sys_utimes(struct proc *, void *, register_t *); +int sys_adjtime(struct proc *, void *, register_t *); +int compat_43_sys_getpeername(struct proc *, void *, register_t *); +int compat_43_sys_gethostid(struct proc *, void *, register_t *); +int compat_43_sys_sethostid(struct proc *, void *, register_t *); +int compat_43_sys_getrlimit(struct proc *, void *, register_t *); +int compat_43_sys_setrlimit(struct proc *, void *, register_t *); +int compat_43_sys_killpg(struct proc *, void *, register_t *); +int sys_setsid(struct proc *, void *, register_t *); +int sys_quotactl(struct proc *, void *, register_t *); +int compat_43_sys_quota(struct proc *, void *, register_t *); +int compat_43_sys_getsockname(struct proc *, void *, register_t *); #if defined(NFSCLIENT) || defined(NFSSERVER) -int sys_nfssvc __P((struct proc *, void *, register_t *)); +int sys_nfssvc(struct proc *, void *, register_t *); #else #endif -int compat_43_sys_getdirentries __P((struct proc *, void *, register_t *)); -int compat_25_sys_statfs __P((struct proc *, void *, register_t *)); -int compat_25_sys_fstatfs __P((struct proc *, void *, register_t *)); +int compat_43_sys_getdirentries(struct proc *, void *, register_t *); +int compat_25_sys_statfs(struct proc *, void *, register_t *); +int compat_25_sys_fstatfs(struct proc *, void *, register_t *); #ifdef NFSCLIENT -int sys_getfh __P((struct proc *, void *, register_t *)); +int sys_getfh(struct proc *, void *, register_t *); #else #endif #if defined(SYSVSHM) && !defined(alpha) -int compat_10_sys_shmsys __P((struct proc *, void *, register_t *)); +int compat_10_sys_shmsys(struct proc *, void *, register_t *); #else #endif -int sys_setgid __P((struct proc *, void *, register_t *)); -int sys_setegid __P((struct proc *, void *, register_t *)); -int sys_seteuid __P((struct proc *, void *, register_t *)); +int sys_setgid(struct proc *, void *, register_t *); +int sys_setegid(struct proc *, void *, register_t *); +int sys_seteuid(struct proc *, void *, register_t *); #ifdef LFS -int lfs_bmapv __P((struct proc *, void *, register_t *)); -int lfs_markv __P((struct proc *, void *, register_t *)); -int lfs_segclean __P((struct proc *, void *, register_t *)); -int lfs_segwait __P((struct proc *, void *, register_t *)); +int lfs_bmapv(struct proc *, void *, register_t *); +int lfs_markv(struct proc *, void *, register_t *); +int lfs_segclean(struct proc *, void *, register_t *); +int lfs_segwait(struct proc *, void *, register_t *); #else #endif -int sys_stat __P((struct proc *, void *, register_t *)); -int sys_fstat __P((struct proc *, void *, register_t *)); -int sys_lstat __P((struct proc *, void *, register_t *)); -int sys_pathconf __P((struct proc *, void *, register_t *)); -int sys_fpathconf __P((struct proc *, void *, register_t *)); -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 *)); -int sys___sysctl __P((struct proc *, void *, register_t *)); -int sys_mlock __P((struct proc *, void *, register_t *)); -int sys_munlock __P((struct proc *, void *, register_t *)); -int sys_undelete __P((struct proc *, void *, register_t *)); +int sys_stat(struct proc *, void *, register_t *); +int sys_fstat(struct proc *, void *, register_t *); +int sys_lstat(struct proc *, void *, register_t *); +int sys_pathconf(struct proc *, void *, register_t *); +int sys_fpathconf(struct proc *, void *, register_t *); +int sys_getrlimit(struct proc *, void *, register_t *); +int sys_setrlimit(struct proc *, void *, register_t *); +int sys_getdirentries(struct proc *, void *, register_t *); +int sys_mmap(struct proc *, void *, register_t *); +int sys_nosys(struct proc *, void *, register_t *); +int sys_lseek(struct proc *, void *, register_t *); +int sys_truncate(struct proc *, void *, register_t *); +int sys_ftruncate(struct proc *, void *, register_t *); +int sys___sysctl(struct proc *, void *, register_t *); +int sys_mlock(struct proc *, void *, register_t *); +int sys_munlock(struct proc *, void *, register_t *); +int sys_undelete(struct proc *, void *, register_t *); #ifdef SYSVSEM -int sys___semctl __P((struct proc *, void *, register_t *)); -int sys_semget __P((struct proc *, void *, register_t *)); -int sys_semop __P((struct proc *, void *, register_t *)); +int sys___semctl(struct proc *, void *, register_t *); +int sys_semget(struct proc *, void *, register_t *); +int sys_semop(struct proc *, void *, register_t *); #else #endif #ifdef SYSVMSG -int sys_msgctl __P((struct proc *, void *, register_t *)); -int sys_msgget __P((struct proc *, void *, register_t *)); -int sys_msgsnd __P((struct proc *, void *, register_t *)); -int sys_msgrcv __P((struct proc *, void *, register_t *)); +int sys_msgctl(struct proc *, void *, register_t *); +int sys_msgget(struct proc *, void *, register_t *); +int sys_msgsnd(struct proc *, void *, register_t *); +int sys_msgrcv(struct proc *, void *, register_t *); #else #endif #ifdef SYSVSHM -int sys_shmat __P((struct proc *, void *, register_t *)); -int sys_shmctl __P((struct proc *, void *, register_t *)); -int sys_shmdt __P((struct proc *, void *, register_t *)); -int sys_shmget __P((struct proc *, void *, register_t *)); +int sys_shmat(struct proc *, void *, register_t *); +int sys_shmctl(struct proc *, void *, register_t *); +int sys_shmdt(struct proc *, void *, register_t *); +int sys_shmget(struct proc *, void *, register_t *); #else #endif diff --git a/sys/compat/common/compat_dir.c b/sys/compat/common/compat_dir.c index 74afaf81e36..366e23097ea 100644 --- a/sys/compat/common/compat_dir.c +++ b/sys/compat/common/compat_dir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compat_dir.c,v 1.2 2001/04/10 17:35:40 csapuntz Exp $ */ +/* $OpenBSD: compat_dir.c,v 1.3 2002/03/14 01:26:49 millert Exp $ */ /* * Copyright (c) 2000 Constantine Sapuntzakis @@ -45,7 +45,7 @@ readdir_with_callback(fp, off, nbytes, appendfunc, arg) struct file *fp; off_t *off; u_long nbytes; - int (*appendfunc) __P((void *, struct dirent *, off_t)); + int (*appendfunc)(void *, struct dirent *, off_t); void *arg; { caddr_t inp, buf; diff --git a/sys/compat/common/compat_util.h b/sys/compat/common/compat_util.h index e08ef7f8754..3494c242fc7 100644 --- a/sys/compat/common/compat_util.h +++ b/sys/compat/common/compat_util.h @@ -1,4 +1,4 @@ -/* $OpenBSD: compat_util.h,v 1.6 2001/11/06 19:53:17 miod Exp $ */ +/* $OpenBSD: compat_util.h,v 1.7 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: compat_util.h,v 1.1 1995/06/24 20:16:05 christos Exp $ */ /* @@ -39,8 +39,8 @@ struct emul; /* struct proc; */ -caddr_t stackgap_init __P((struct emul *)); -void *stackgap_alloc __P((caddr_t *, size_t)); +caddr_t stackgap_init(struct emul *); +void *stackgap_alloc(caddr_t *, size_t); struct emul_flags_xtab { unsigned long omask; @@ -48,8 +48,8 @@ struct emul_flags_xtab { unsigned long nval; }; -int emul_find __P((struct proc *, caddr_t *, const char *, char *, - char **, int)); +int emul_find(struct proc *, caddr_t *, const char *, char *, + char **, int); unsigned long emul_flags_translate(const struct emul_flags_xtab *tab, unsigned long in, unsigned long *leftover); diff --git a/sys/compat/common/kern_ipc_23.c b/sys/compat/common/kern_ipc_23.c index 171154d4b9a..3b004a817d6 100644 --- a/sys/compat/common/kern_ipc_23.c +++ b/sys/compat/common/kern_ipc_23.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_ipc_23.c,v 1.1 2001/05/16 17:14:38 millert Exp $ */ +/* $OpenBSD: kern_ipc_23.c,v 1.2 2002/03/14 01:26:49 millert Exp $ */ /* * Implementation of SVID semaphores @@ -70,7 +70,7 @@ #ifdef SYSVMSG -void msg_freehdr __P((struct msg *)); +void msg_freehdr(struct msg *); int compat_23_sys_msgctl(p, v, retval) @@ -211,8 +211,8 @@ compat_23_sys_msgctl(p, v, retval) #ifdef SYSVSHM -struct shmid_ds *shm_find_segment_by_shmid __P((int)); -void shm_deallocate_segment __P((struct shmid_ds *)); +struct shmid_ds *shm_find_segment_by_shmid(int); +void shm_deallocate_segment(struct shmid_ds *); #define SHMSEG_REMOVED 0x0400 /* XXX */ @@ -281,7 +281,7 @@ compat_23_sys_shmctl(p, v, retval) #ifdef SYSVSEM -void semundo_clear __P((int, int)); +void semundo_clear(int, int); int compat_23_sys___semctl(p, v, retval) diff --git a/sys/compat/common/tty_43.c b/sys/compat/common/tty_43.c index f3f72493663..51d00441689 100644 --- a/sys/compat/common/tty_43.c +++ b/sys/compat/common/tty_43.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty_43.c,v 1.6 2002/01/30 20:45:34 nordin Exp $ */ +/* $OpenBSD: tty_43.c,v 1.7 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: tty_43.c,v 1.5 1996/05/20 14:29:17 mark Exp $ */ /*- @@ -85,9 +85,9 @@ static int compatspcodes[] = { 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200 }; -int ttcompatgetflags __P((struct tty *)); -void ttcompatsetflags __P((struct tty *, struct termios *)); -void ttcompatsetlflags __P((struct tty *, struct termios *)); +int ttcompatgetflags(struct tty *); +void ttcompatsetflags(struct tty *, struct termios *); +void ttcompatsetlflags(struct tty *, struct termios *); /*ARGSUSED*/ int diff --git a/sys/compat/common/vfs_syscalls_25.c b/sys/compat/common/vfs_syscalls_25.c index b073e1eaada..73178f3e59d 100644 --- a/sys/compat/common/vfs_syscalls_25.c +++ b/sys/compat/common/vfs_syscalls_25.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls_25.c,v 1.2 2002/02/12 18:41:20 art Exp $ */ +/* $OpenBSD: vfs_syscalls_25.c,v 1.3 2002/03/14 01:26:49 millert Exp $ */ /* * Copyright (c) 1989, 1993 @@ -54,7 +54,7 @@ #include <sys/syscallargs.h> -void statfs_to_ostatfs __P((struct proc *, struct mount *, struct statfs *, struct ostatfs *)); +void statfs_to_ostatfs(struct proc *, struct mount *, struct statfs *, struct ostatfs *); /* * Convert struct statfs -> struct ostatfs diff --git a/sys/compat/common/vfs_syscalls_43.c b/sys/compat/common/vfs_syscalls_43.c index 4f4be76bb5c..cf9a4b229a3 100644 --- a/sys/compat/common/vfs_syscalls_43.c +++ b/sys/compat/common/vfs_syscalls_43.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls_43.c,v 1.18 2002/02/13 19:08:06 art Exp $ */ +/* $OpenBSD: vfs_syscalls_43.c,v 1.19 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: vfs_syscalls_43.c,v 1.4 1996/03/14 19:31:52 christos Exp $ */ /* @@ -67,7 +67,7 @@ #include <sys/pipe.h> -static void cvtstat __P((struct stat *, struct ostat *)); +static void cvtstat(struct stat *, struct ostat *); /* * Redirection info so we don't have to include the union fs routines in @@ -77,8 +77,8 @@ static void cvtstat __P((struct stat *, struct ostat *)); * value is compiled in from kern/vfs_syscalls.c */ -extern int (*union_check_p) __P((struct proc *, struct vnode **, - struct file *, struct uio, int *)); +extern int (*union_check_p)(struct proc *, struct vnode **, + struct file *, struct uio, int *); /* * Convert from an old to a new stat structure. diff --git a/sys/compat/freebsd/freebsd_exec.h b/sys/compat/freebsd/freebsd_exec.h index a01035f6312..4a41f4001a8 100644 --- a/sys/compat/freebsd/freebsd_exec.h +++ b/sys/compat/freebsd/freebsd_exec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: freebsd_exec.h,v 1.4 2001/02/02 05:21:47 tholo Exp $ */ +/* $OpenBSD: freebsd_exec.h,v 1.5 2002/03/14 01:26:49 millert Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -96,9 +96,9 @@ #define FREEBSD_AOUT_HDR_SIZE sizeof(struct exec) -int exec_freebsd_aout_makecmds __P((struct proc *, struct exec_package *)); -int freebsd_elf_probe __P((struct proc *, struct exec_package *, char *, - u_long *, u_int8_t *)); +int exec_freebsd_aout_makecmds(struct proc *, struct exec_package *); +int freebsd_elf_probe(struct proc *, struct exec_package *, char *, + u_long *, u_int8_t *); extern char freebsd_sigcode[], freebsd_esigcode[]; diff --git a/sys/compat/freebsd/freebsd_file.c b/sys/compat/freebsd/freebsd_file.c index e9a424242d0..058a9e3785f 100644 --- a/sys/compat/freebsd/freebsd_file.c +++ b/sys/compat/freebsd/freebsd_file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: freebsd_file.c,v 1.14 2002/02/13 21:32:03 art Exp $ */ +/* $OpenBSD: freebsd_file.c,v 1.15 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: freebsd_file.c,v 1.3 1996/05/03 17:03:09 christos Exp $ */ /* @@ -57,8 +57,8 @@ const char freebsd_emul_path[] = "/emul/freebsd"; -static char * convert_from_freebsd_mount_type __P((int)); -void statfs_to_freebsd_statfs __P((struct proc *, struct mount *, struct statfs *, struct freebsd_statfs *)); +static char * convert_from_freebsd_mount_type(int); +void statfs_to_freebsd_statfs(struct proc *, struct mount *, struct statfs *, struct freebsd_statfs *); struct freebsd_statfs { long f_spare2; /* placeholder */ diff --git a/sys/compat/freebsd/freebsd_ptrace.h b/sys/compat/freebsd/freebsd_ptrace.h index 9b35897150d..9c053689ac6 100644 --- a/sys/compat/freebsd/freebsd_ptrace.h +++ b/sys/compat/freebsd/freebsd_ptrace.h @@ -1,4 +1,4 @@ -/* * $OpenBSD: freebsd_ptrace.h,v 1.2 1996/08/02 20:34:47 niklas Exp $*/ +/* * $OpenBSD: freebsd_ptrace.h,v 1.3 2002/03/14 01:26:49 millert Exp $*/ /*- * Copyright (c) 1984, 1993 * The Regents of the University of California. All rights reserved. @@ -55,13 +55,13 @@ #define FREEBSD_PT_FIRSTMACH 32 /* for machine-specific requests */ -void netbsd_to_freebsd_ptrace_regs __P((struct reg *, struct fpreg *, - struct freebsd_ptrace_reg *)); -void freebsd_to_netbsd_ptrace_regs __P((struct freebsd_ptrace_reg *, - struct reg *, struct fpreg *)); -int freebsd_ptrace_getregs __P((struct freebsd_ptrace_reg *, caddr_t, - register_t *)); -int freebsd_ptrace_setregs __P((struct freebsd_ptrace_reg *, caddr_t, - int)); +void netbsd_to_freebsd_ptrace_regs(struct reg *, struct fpreg *, + struct freebsd_ptrace_reg *); +void freebsd_to_netbsd_ptrace_regs(struct freebsd_ptrace_reg *, + struct reg *, struct fpreg *); +int freebsd_ptrace_getregs(struct freebsd_ptrace_reg *, caddr_t, + register_t *); +int freebsd_ptrace_setregs(struct freebsd_ptrace_reg *, caddr_t, + int); #endif /* !_FREEBSD_PTRACE_H_ */ diff --git a/sys/compat/freebsd/freebsd_signal.c b/sys/compat/freebsd/freebsd_signal.c index 8b6a0afaa6d..57602d3fb11 100644 --- a/sys/compat/freebsd/freebsd_signal.c +++ b/sys/compat/freebsd/freebsd_signal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: freebsd_signal.c,v 1.1 2001/02/02 19:48:07 tholo Exp $ */ +/* $OpenBSD: freebsd_signal.c,v 1.2 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */ /* @@ -52,11 +52,11 @@ #include <compat/freebsd/freebsd_signal.h> #include <compat/freebsd/freebsd_syscallargs.h> -static void freebsd_to_openbsd_sigaction __P((struct freebsd_sigaction *, - struct sigaction *)); +static void freebsd_to_openbsd_sigaction(struct freebsd_sigaction *, + struct sigaction *); -static void openbsd_to_freebsd_sigaction __P((struct sigaction *, - struct freebsd_sigaction *)); +static void openbsd_to_freebsd_sigaction(struct sigaction *, + struct freebsd_sigaction *); static void openbsd_to_freebsd_sigaction(obsa, fbsa) diff --git a/sys/compat/freebsd/freebsd_signal.h b/sys/compat/freebsd/freebsd_signal.h index bd4f21db3fe..e64aad8a12e 100644 --- a/sys/compat/freebsd/freebsd_signal.h +++ b/sys/compat/freebsd/freebsd_signal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: freebsd_signal.h,v 1.1 2001/02/02 19:48:08 tholo Exp $ */ +/* $OpenBSD: freebsd_signal.h,v 1.2 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: signal.h,v 1.42 1998/12/21 10:35:00 drochner Exp $ */ /* @@ -78,8 +78,8 @@ typedef struct __freebsd_siginfo { */ struct freebsd_sigaction { union { - void (*__freebsd_sa_handler) __P((int)); - void (*__freebsd_sa_sigaction) __P((int, struct __freebsd_siginfo *, void *)); + void (*__freebsd_sa_handler)(int); + void (*__freebsd_sa_sigaction)(int, struct __freebsd_siginfo *, void *); } __freebsd_sigaction_u; /* signal handler */ int freebsd_sa_flags; /* see signal options below */ freebsd_sigset_t freebsd_sa_mask; /* signal mask to apply */ diff --git a/sys/compat/freebsd/freebsd_syscallargs.h b/sys/compat/freebsd/freebsd_syscallargs.h index 8b01d85a7c6..22fce67bc7e 100644 --- a/sys/compat/freebsd/freebsd_syscallargs.h +++ b/sys/compat/freebsd/freebsd_syscallargs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: freebsd_syscallargs.h,v 1.19 2002/03/14 00:44:20 miod Exp $ */ +/* $OpenBSD: freebsd_syscallargs.h,v 1.20 2002/03/14 01:26:49 millert Exp $ */ /* * System call argument lists. @@ -260,245 +260,245 @@ struct freebsd_sys_sigpending40_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 *)); -int sys_write __P((struct proc *, void *, register_t *)); -int freebsd_sys_open __P((struct proc *, void *, register_t *)); -int sys_close __P((struct proc *, void *, register_t *)); -int sys_wait4 __P((struct proc *, void *, register_t *)); -int compat_43_freebsd_sys_creat __P((struct proc *, void *, register_t *)); -int freebsd_sys_link __P((struct proc *, void *, register_t *)); -int freebsd_sys_unlink __P((struct proc *, void *, register_t *)); -int freebsd_sys_chdir __P((struct proc *, void *, register_t *)); -int sys_fchdir __P((struct proc *, void *, register_t *)); -int freebsd_sys_mknod __P((struct proc *, void *, register_t *)); -int freebsd_sys_chmod __P((struct proc *, void *, register_t *)); -int freebsd_sys_chown __P((struct proc *, void *, register_t *)); -int sys_obreak __P((struct proc *, void *, register_t *)); -int freebsd_sys_getfsstat __P((struct proc *, void *, register_t *)); -int compat_43_sys_lseek __P((struct proc *, void *, register_t *)); -int sys_getpid __P((struct proc *, void *, register_t *)); -int freebsd_sys_mount __P((struct proc *, void *, register_t *)); -int freebsd_sys_unmount __P((struct proc *, void *, register_t *)); -int sys_setuid __P((struct proc *, void *, register_t *)); -int sys_getuid __P((struct proc *, void *, register_t *)); -int sys_geteuid __P((struct proc *, void *, register_t *)); +int sys_nosys(struct proc *, void *, register_t *); +int sys_exit(struct proc *, void *, register_t *); +int sys_fork(struct proc *, void *, register_t *); +int sys_read(struct proc *, void *, register_t *); +int sys_write(struct proc *, void *, register_t *); +int freebsd_sys_open(struct proc *, void *, register_t *); +int sys_close(struct proc *, void *, register_t *); +int sys_wait4(struct proc *, void *, register_t *); +int compat_43_freebsd_sys_creat(struct proc *, void *, register_t *); +int freebsd_sys_link(struct proc *, void *, register_t *); +int freebsd_sys_unlink(struct proc *, void *, register_t *); +int freebsd_sys_chdir(struct proc *, void *, register_t *); +int sys_fchdir(struct proc *, void *, register_t *); +int freebsd_sys_mknod(struct proc *, void *, register_t *); +int freebsd_sys_chmod(struct proc *, void *, register_t *); +int freebsd_sys_chown(struct proc *, void *, register_t *); +int sys_obreak(struct proc *, void *, register_t *); +int freebsd_sys_getfsstat(struct proc *, void *, register_t *); +int compat_43_sys_lseek(struct proc *, void *, register_t *); +int sys_getpid(struct proc *, void *, register_t *); +int freebsd_sys_mount(struct proc *, void *, register_t *); +int freebsd_sys_unmount(struct proc *, void *, register_t *); +int sys_setuid(struct proc *, void *, register_t *); +int sys_getuid(struct proc *, void *, register_t *); +int sys_geteuid(struct proc *, void *, register_t *); #ifdef PTRACE -int freebsd_sys_ptrace __P((struct proc *, void *, register_t *)); +int freebsd_sys_ptrace(struct proc *, void *, register_t *); #else #endif -int sys_recvmsg __P((struct proc *, void *, register_t *)); -int sys_sendmsg __P((struct proc *, void *, register_t *)); -int sys_recvfrom __P((struct proc *, void *, register_t *)); -int sys_accept __P((struct proc *, void *, register_t *)); -int sys_getpeername __P((struct proc *, void *, register_t *)); -int sys_getsockname __P((struct proc *, void *, register_t *)); -int freebsd_sys_access __P((struct proc *, void *, register_t *)); -int freebsd_sys_chflags __P((struct proc *, void *, register_t *)); -int sys_fchflags __P((struct proc *, void *, register_t *)); -int sys_sync __P((struct proc *, void *, register_t *)); -int sys_kill __P((struct proc *, void *, register_t *)); -int compat_43_freebsd_sys_stat __P((struct proc *, void *, register_t *)); -int sys_getppid __P((struct proc *, void *, register_t *)); -int compat_43_freebsd_sys_lstat __P((struct proc *, void *, register_t *)); -int sys_dup __P((struct proc *, void *, register_t *)); -int sys_opipe __P((struct proc *, void *, register_t *)); -int sys_getegid __P((struct proc *, void *, register_t *)); -int sys_profil __P((struct proc *, void *, register_t *)); +int sys_recvmsg(struct proc *, void *, register_t *); +int sys_sendmsg(struct proc *, void *, register_t *); +int sys_recvfrom(struct proc *, void *, register_t *); +int sys_accept(struct proc *, void *, register_t *); +int sys_getpeername(struct proc *, void *, register_t *); +int sys_getsockname(struct proc *, void *, register_t *); +int freebsd_sys_access(struct proc *, void *, register_t *); +int freebsd_sys_chflags(struct proc *, void *, register_t *); +int sys_fchflags(struct proc *, void *, register_t *); +int sys_sync(struct proc *, void *, register_t *); +int sys_kill(struct proc *, void *, register_t *); +int compat_43_freebsd_sys_stat(struct proc *, void *, register_t *); +int sys_getppid(struct proc *, void *, register_t *); +int compat_43_freebsd_sys_lstat(struct proc *, void *, register_t *); +int sys_dup(struct proc *, void *, register_t *); +int sys_opipe(struct proc *, void *, register_t *); +int sys_getegid(struct proc *, void *, register_t *); +int sys_profil(struct proc *, void *, register_t *); #ifdef KTRACE -int sys_ktrace __P((struct proc *, void *, register_t *)); +int sys_ktrace(struct proc *, void *, register_t *); #else #endif -int sys_sigaction __P((struct proc *, void *, register_t *)); -int sys_getgid __P((struct proc *, void *, register_t *)); -int sys_sigprocmask __P((struct proc *, void *, register_t *)); -int sys_getlogin __P((struct proc *, void *, register_t *)); -int sys_setlogin __P((struct proc *, void *, register_t *)); -int sys_acct __P((struct proc *, void *, register_t *)); -int sys_sigpending __P((struct proc *, void *, register_t *)); -int sys_sigaltstack __P((struct proc *, void *, register_t *)); -int freebsd_sys_ioctl __P((struct proc *, void *, register_t *)); -int sys_reboot __P((struct proc *, void *, register_t *)); -int freebsd_sys_revoke __P((struct proc *, void *, register_t *)); -int freebsd_sys_symlink __P((struct proc *, void *, register_t *)); -int freebsd_sys_readlink __P((struct proc *, void *, register_t *)); -int freebsd_sys_execve __P((struct proc *, void *, register_t *)); -int sys_umask __P((struct proc *, void *, register_t *)); -int freebsd_sys_chroot __P((struct proc *, void *, register_t *)); -int compat_43_sys_fstat __P((struct proc *, void *, register_t *)); -int compat_43_sys_getkerninfo __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpagesize __P((struct proc *, void *, register_t *)); -int sys_msync __P((struct proc *, void *, register_t *)); -int sys_vfork __P((struct proc *, void *, register_t *)); -int sys_sbrk __P((struct proc *, void *, register_t *)); -int sys_sstk __P((struct proc *, void *, register_t *)); -int compat_43_sys_mmap __P((struct proc *, void *, register_t *)); -int sys_ovadvise __P((struct proc *, void *, register_t *)); -int sys_munmap __P((struct proc *, void *, register_t *)); -int sys_mprotect __P((struct proc *, void *, register_t *)); -int freebsd_sys_madvise __P((struct proc *, void *, register_t *)); -int sys_mincore __P((struct proc *, void *, register_t *)); -int sys_getgroups __P((struct proc *, void *, register_t *)); -int sys_setgroups __P((struct proc *, void *, register_t *)); -int sys_getpgrp __P((struct proc *, void *, register_t *)); -int sys_setpgid __P((struct proc *, void *, register_t *)); -int sys_setitimer __P((struct proc *, void *, register_t *)); -int compat_43_sys_wait __P((struct proc *, void *, register_t *)); -int sys_swapon __P((struct proc *, void *, register_t *)); -int sys_getitimer __P((struct proc *, void *, register_t *)); -int compat_43_sys_gethostname __P((struct proc *, void *, register_t *)); -int compat_43_sys_sethostname __P((struct proc *, void *, register_t *)); -int compat_43_sys_getdtablesize __P((struct proc *, void *, register_t *)); -int sys_dup2 __P((struct proc *, void *, register_t *)); -int freebsd_sys_fcntl __P((struct proc *, void *, register_t *)); -int sys_select __P((struct proc *, void *, register_t *)); -int sys_fsync __P((struct proc *, void *, register_t *)); -int sys_setpriority __P((struct proc *, void *, register_t *)); -int sys_socket __P((struct proc *, void *, register_t *)); -int sys_connect __P((struct proc *, void *, register_t *)); -int compat_43_sys_accept __P((struct proc *, void *, register_t *)); -int sys_getpriority __P((struct proc *, void *, register_t *)); -int compat_43_sys_send __P((struct proc *, void *, register_t *)); -int compat_43_sys_recv __P((struct proc *, void *, register_t *)); -int freebsd_sys_sigreturn __P((struct proc *, void *, register_t *)); -int sys_bind __P((struct proc *, void *, register_t *)); -int sys_setsockopt __P((struct proc *, void *, register_t *)); -int sys_listen __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigvec __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigblock __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigsetmask __P((struct proc *, void *, register_t *)); -int sys_sigsuspend __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigstack __P((struct proc *, void *, register_t *)); -int compat_43_sys_recvmsg __P((struct proc *, void *, register_t *)); -int compat_43_sys_sendmsg __P((struct proc *, void *, register_t *)); +int sys_sigaction(struct proc *, void *, register_t *); +int sys_getgid(struct proc *, void *, register_t *); +int sys_sigprocmask(struct proc *, void *, register_t *); +int sys_getlogin(struct proc *, void *, register_t *); +int sys_setlogin(struct proc *, void *, register_t *); +int sys_acct(struct proc *, void *, register_t *); +int sys_sigpending(struct proc *, void *, register_t *); +int sys_sigaltstack(struct proc *, void *, register_t *); +int freebsd_sys_ioctl(struct proc *, void *, register_t *); +int sys_reboot(struct proc *, void *, register_t *); +int freebsd_sys_revoke(struct proc *, void *, register_t *); +int freebsd_sys_symlink(struct proc *, void *, register_t *); +int freebsd_sys_readlink(struct proc *, void *, register_t *); +int freebsd_sys_execve(struct proc *, void *, register_t *); +int sys_umask(struct proc *, void *, register_t *); +int freebsd_sys_chroot(struct proc *, void *, register_t *); +int compat_43_sys_fstat(struct proc *, void *, register_t *); +int compat_43_sys_getkerninfo(struct proc *, void *, register_t *); +int compat_43_sys_getpagesize(struct proc *, void *, register_t *); +int sys_msync(struct proc *, void *, register_t *); +int sys_vfork(struct proc *, void *, register_t *); +int sys_sbrk(struct proc *, void *, register_t *); +int sys_sstk(struct proc *, void *, register_t *); +int compat_43_sys_mmap(struct proc *, void *, register_t *); +int sys_ovadvise(struct proc *, void *, register_t *); +int sys_munmap(struct proc *, void *, register_t *); +int sys_mprotect(struct proc *, void *, register_t *); +int freebsd_sys_madvise(struct proc *, void *, register_t *); +int sys_mincore(struct proc *, void *, register_t *); +int sys_getgroups(struct proc *, void *, register_t *); +int sys_setgroups(struct proc *, void *, register_t *); +int sys_getpgrp(struct proc *, void *, register_t *); +int sys_setpgid(struct proc *, void *, register_t *); +int sys_setitimer(struct proc *, void *, register_t *); +int compat_43_sys_wait(struct proc *, void *, register_t *); +int sys_swapon(struct proc *, void *, register_t *); +int sys_getitimer(struct proc *, void *, register_t *); +int compat_43_sys_gethostname(struct proc *, void *, register_t *); +int compat_43_sys_sethostname(struct proc *, void *, register_t *); +int compat_43_sys_getdtablesize(struct proc *, void *, register_t *); +int sys_dup2(struct proc *, void *, register_t *); +int freebsd_sys_fcntl(struct proc *, void *, register_t *); +int sys_select(struct proc *, void *, register_t *); +int sys_fsync(struct proc *, void *, register_t *); +int sys_setpriority(struct proc *, void *, register_t *); +int sys_socket(struct proc *, void *, register_t *); +int sys_connect(struct proc *, void *, register_t *); +int compat_43_sys_accept(struct proc *, void *, register_t *); +int sys_getpriority(struct proc *, void *, register_t *); +int compat_43_sys_send(struct proc *, void *, register_t *); +int compat_43_sys_recv(struct proc *, void *, register_t *); +int freebsd_sys_sigreturn(struct proc *, void *, register_t *); +int sys_bind(struct proc *, void *, register_t *); +int sys_setsockopt(struct proc *, void *, register_t *); +int sys_listen(struct proc *, void *, register_t *); +int compat_43_sys_sigvec(struct proc *, void *, register_t *); +int compat_43_sys_sigblock(struct proc *, void *, register_t *); +int compat_43_sys_sigsetmask(struct proc *, void *, register_t *); +int sys_sigsuspend(struct proc *, void *, register_t *); +int compat_43_sys_sigstack(struct proc *, void *, register_t *); +int compat_43_sys_recvmsg(struct proc *, void *, register_t *); +int compat_43_sys_sendmsg(struct proc *, void *, register_t *); #ifdef TRACE -int sys_vtrace __P((struct proc *, void *, register_t *)); +int sys_vtrace(struct proc *, void *, register_t *); #else #endif -int sys_gettimeofday __P((struct proc *, void *, register_t *)); -int sys_getrusage __P((struct proc *, void *, register_t *)); -int sys_getsockopt __P((struct proc *, void *, register_t *)); -int sys_readv __P((struct proc *, void *, register_t *)); -int sys_writev __P((struct proc *, void *, register_t *)); -int sys_settimeofday __P((struct proc *, void *, register_t *)); -int sys_fchown __P((struct proc *, void *, register_t *)); -int sys_fchmod __P((struct proc *, void *, register_t *)); -int compat_43_sys_recvfrom __P((struct proc *, void *, register_t *)); -int compat_43_sys_setreuid __P((struct proc *, void *, register_t *)); -int compat_43_sys_setregid __P((struct proc *, void *, register_t *)); -int freebsd_sys_rename __P((struct proc *, void *, register_t *)); -int compat_43_freebsd_sys_truncate __P((struct proc *, void *, register_t *)); -int compat_43_sys_ftruncate __P((struct proc *, void *, register_t *)); -int sys_flock __P((struct proc *, void *, register_t *)); -int freebsd_sys_mkfifo __P((struct proc *, void *, register_t *)); -int sys_sendto __P((struct proc *, void *, register_t *)); -int sys_shutdown __P((struct proc *, void *, register_t *)); -int sys_socketpair __P((struct proc *, void *, register_t *)); -int freebsd_sys_mkdir __P((struct proc *, void *, register_t *)); -int freebsd_sys_rmdir __P((struct proc *, void *, register_t *)); -int sys_utimes __P((struct proc *, void *, register_t *)); -int sys_adjtime __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpeername __P((struct proc *, void *, register_t *)); -int compat_43_sys_gethostid __P((struct proc *, void *, register_t *)); -int compat_43_sys_sethostid __P((struct proc *, void *, register_t *)); -int compat_43_sys_getrlimit __P((struct proc *, void *, register_t *)); -int compat_43_sys_setrlimit __P((struct proc *, void *, register_t *)); -int compat_43_sys_killpg __P((struct proc *, void *, register_t *)); -int sys_setsid __P((struct proc *, void *, register_t *)); -int sys_quotactl __P((struct proc *, void *, register_t *)); -int compat_43_sys_quota __P((struct proc *, void *, register_t *)); -int compat_43_sys_getsockname __P((struct proc *, void *, register_t *)); +int sys_gettimeofday(struct proc *, void *, register_t *); +int sys_getrusage(struct proc *, void *, register_t *); +int sys_getsockopt(struct proc *, void *, register_t *); +int sys_readv(struct proc *, void *, register_t *); +int sys_writev(struct proc *, void *, register_t *); +int sys_settimeofday(struct proc *, void *, register_t *); +int sys_fchown(struct proc *, void *, register_t *); +int sys_fchmod(struct proc *, void *, register_t *); +int compat_43_sys_recvfrom(struct proc *, void *, register_t *); +int compat_43_sys_setreuid(struct proc *, void *, register_t *); +int compat_43_sys_setregid(struct proc *, void *, register_t *); +int freebsd_sys_rename(struct proc *, void *, register_t *); +int compat_43_freebsd_sys_truncate(struct proc *, void *, register_t *); +int compat_43_sys_ftruncate(struct proc *, void *, register_t *); +int sys_flock(struct proc *, void *, register_t *); +int freebsd_sys_mkfifo(struct proc *, void *, register_t *); +int sys_sendto(struct proc *, void *, register_t *); +int sys_shutdown(struct proc *, void *, register_t *); +int sys_socketpair(struct proc *, void *, register_t *); +int freebsd_sys_mkdir(struct proc *, void *, register_t *); +int freebsd_sys_rmdir(struct proc *, void *, register_t *); +int sys_utimes(struct proc *, void *, register_t *); +int sys_adjtime(struct proc *, void *, register_t *); +int compat_43_sys_getpeername(struct proc *, void *, register_t *); +int compat_43_sys_gethostid(struct proc *, void *, register_t *); +int compat_43_sys_sethostid(struct proc *, void *, register_t *); +int compat_43_sys_getrlimit(struct proc *, void *, register_t *); +int compat_43_sys_setrlimit(struct proc *, void *, register_t *); +int compat_43_sys_killpg(struct proc *, void *, register_t *); +int sys_setsid(struct proc *, void *, register_t *); +int sys_quotactl(struct proc *, void *, register_t *); +int compat_43_sys_quota(struct proc *, void *, register_t *); +int compat_43_sys_getsockname(struct proc *, void *, register_t *); #if defined(NFSCLIENT) || defined(NFSSERVER) -int sys_nfssvc __P((struct proc *, void *, register_t *)); +int sys_nfssvc(struct proc *, void *, register_t *); #else #endif -int compat_43_sys_getdirentries __P((struct proc *, void *, register_t *)); -int freebsd_sys_statfs __P((struct proc *, void *, register_t *)); -int freebsd_sys_fstatfs __P((struct proc *, void *, register_t *)); +int compat_43_sys_getdirentries(struct proc *, void *, register_t *); +int freebsd_sys_statfs(struct proc *, void *, register_t *); +int freebsd_sys_fstatfs(struct proc *, void *, register_t *); #ifdef NFSCLIENT -int freebsd_sys_getfh __P((struct proc *, void *, register_t *)); +int freebsd_sys_getfh(struct proc *, void *, register_t *); #else #endif -int compat_09_sys_getdomainname __P((struct proc *, void *, register_t *)); -int compat_09_sys_setdomainname __P((struct proc *, void *, register_t *)); -int compat_09_sys_uname __P((struct proc *, void *, register_t *)); -int sys_sysarch __P((struct proc *, void *, register_t *)); -int freebsd_sys_rtprio __P((struct proc *, void *, register_t *)); +int compat_09_sys_getdomainname(struct proc *, void *, register_t *); +int compat_09_sys_setdomainname(struct proc *, void *, register_t *); +int compat_09_sys_uname(struct proc *, void *, register_t *); +int sys_sysarch(struct proc *, void *, register_t *); +int freebsd_sys_rtprio(struct proc *, void *, register_t *); #if defined(SYSVSEM) && !defined(alpha) -int compat_10_sys_semsys __P((struct proc *, void *, register_t *)); +int compat_10_sys_semsys(struct proc *, void *, register_t *); #else #endif #if defined(SYSVMSG) && !defined(alpha) -int compat_10_sys_msgsys __P((struct proc *, void *, register_t *)); +int compat_10_sys_msgsys(struct proc *, void *, register_t *); #else #endif #if defined(SYSVSHM) && !defined(alpha) -int compat_10_sys_shmsys __P((struct proc *, void *, register_t *)); +int compat_10_sys_shmsys(struct proc *, void *, register_t *); #else #endif -int freebsd_ntp_adjtime __P((struct proc *, void *, register_t *)); -int sys_setgid __P((struct proc *, void *, register_t *)); -int sys_setegid __P((struct proc *, void *, register_t *)); -int sys_seteuid __P((struct proc *, void *, register_t *)); +int freebsd_ntp_adjtime(struct proc *, void *, register_t *); +int sys_setgid(struct proc *, void *, register_t *); +int sys_setegid(struct proc *, void *, register_t *); +int sys_seteuid(struct proc *, void *, register_t *); #ifdef LFS -int lfs_bmapv __P((struct proc *, void *, register_t *)); -int lfs_markv __P((struct proc *, void *, register_t *)); -int lfs_segclean __P((struct proc *, void *, register_t *)); -int lfs_segwait __P((struct proc *, void *, register_t *)); +int lfs_bmapv(struct proc *, void *, register_t *); +int lfs_markv(struct proc *, void *, register_t *); +int lfs_segclean(struct proc *, void *, register_t *); +int lfs_segwait(struct proc *, void *, register_t *); #else #endif -int freebsd_sys_stat __P((struct proc *, void *, register_t *)); -int sys_fstat __P((struct proc *, void *, register_t *)); -int freebsd_sys_lstat __P((struct proc *, void *, register_t *)); -int freebsd_sys_pathconf __P((struct proc *, void *, register_t *)); -int sys_fpathconf __P((struct proc *, void *, register_t *)); -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 freebsd_sys_truncate __P((struct proc *, void *, register_t *)); -int sys_ftruncate __P((struct proc *, void *, register_t *)); -int sys___sysctl __P((struct proc *, void *, register_t *)); -int sys_mlock __P((struct proc *, void *, register_t *)); -int sys_munlock __P((struct proc *, void *, register_t *)); +int freebsd_sys_stat(struct proc *, void *, register_t *); +int sys_fstat(struct proc *, void *, register_t *); +int freebsd_sys_lstat(struct proc *, void *, register_t *); +int freebsd_sys_pathconf(struct proc *, void *, register_t *); +int sys_fpathconf(struct proc *, void *, register_t *); +int sys_getrlimit(struct proc *, void *, register_t *); +int sys_setrlimit(struct proc *, void *, register_t *); +int sys_getdirentries(struct proc *, void *, register_t *); +int sys_mmap(struct proc *, void *, register_t *); +int sys_nosys(struct proc *, void *, register_t *); +int sys_lseek(struct proc *, void *, register_t *); +int freebsd_sys_truncate(struct proc *, void *, register_t *); +int sys_ftruncate(struct proc *, void *, register_t *); +int sys___sysctl(struct proc *, void *, register_t *); +int sys_mlock(struct proc *, void *, register_t *); +int sys_munlock(struct proc *, void *, register_t *); #ifdef FREEBSD_BASED_ON_44LITE_R2 -int freebsd_sys_undelete __P((struct proc *, void *, register_t *)); +int freebsd_sys_undelete(struct proc *, void *, register_t *); #else #endif -int sys_getpgid __P((struct proc *, void *, register_t *)); -int sys_poll __P((struct proc *, void *, register_t *)); +int sys_getpgid(struct proc *, void *, register_t *); +int sys_poll(struct proc *, void *, register_t *); #ifdef SYSVSEM -int sys___semctl __P((struct proc *, void *, register_t *)); -int sys_semget __P((struct proc *, void *, register_t *)); -int sys_semop __P((struct proc *, void *, register_t *)); +int sys___semctl(struct proc *, void *, register_t *); +int sys_semget(struct proc *, void *, register_t *); +int sys_semop(struct proc *, void *, register_t *); #else #endif #ifdef SYSVMSG -int sys_msgctl __P((struct proc *, void *, register_t *)); -int sys_msgget __P((struct proc *, void *, register_t *)); -int sys_msgsnd __P((struct proc *, void *, register_t *)); -int sys_msgrcv __P((struct proc *, void *, register_t *)); +int sys_msgctl(struct proc *, void *, register_t *); +int sys_msgget(struct proc *, void *, register_t *); +int sys_msgsnd(struct proc *, void *, register_t *); +int sys_msgrcv(struct proc *, void *, register_t *); #else #endif #ifdef SYSVSHM -int sys_shmat __P((struct proc *, void *, register_t *)); -int sys_shmctl __P((struct proc *, void *, register_t *)); -int sys_shmdt __P((struct proc *, void *, register_t *)); -int sys_shmget __P((struct proc *, void *, register_t *)); +int sys_shmat(struct proc *, void *, register_t *); +int sys_shmctl(struct proc *, void *, register_t *); +int sys_shmdt(struct proc *, void *, register_t *); +int sys_shmget(struct proc *, void *, register_t *); #else #endif -int sys_clock_gettime __P((struct proc *, void *, register_t *)); -int sys_nanosleep __P((struct proc *, void *, register_t *)); -int sys_minherit __P((struct proc *, void *, register_t *)); -int sys_rfork __P((struct proc *, void *, register_t *)); -int freebsd_sys_poll2 __P((struct proc *, void *, register_t *)); -int sys_issetugid __P((struct proc *, void *, register_t *)); -int sys_lchown __P((struct proc *, void *, register_t *)); -int freebsd_sys_sigprocmask40 __P((struct proc *, void *, register_t *)); -int freebsd_sys_sigsuspend40 __P((struct proc *, void *, register_t *)); -int freebsd_sys_sigaction40 __P((struct proc *, void *, register_t *)); -int freebsd_sys_sigpending40 __P((struct proc *, void *, register_t *)); +int sys_clock_gettime(struct proc *, void *, register_t *); +int sys_nanosleep(struct proc *, void *, register_t *); +int sys_minherit(struct proc *, void *, register_t *); +int sys_rfork(struct proc *, void *, register_t *); +int freebsd_sys_poll2(struct proc *, void *, register_t *); +int sys_issetugid(struct proc *, void *, register_t *); +int sys_lchown(struct proc *, void *, register_t *); +int freebsd_sys_sigprocmask40(struct proc *, void *, register_t *); +int freebsd_sys_sigsuspend40(struct proc *, void *, register_t *); +int freebsd_sys_sigaction40(struct proc *, void *, register_t *); +int freebsd_sys_sigpending40(struct proc *, void *, register_t *); diff --git a/sys/compat/freebsd/freebsd_timex.h b/sys/compat/freebsd/freebsd_timex.h index a7a2ec5ffe3..54c59ee5cc7 100644 --- a/sys/compat/freebsd/freebsd_timex.h +++ b/sys/compat/freebsd/freebsd_timex.h @@ -1,4 +1,4 @@ -/* $OpenBSD: freebsd_timex.h,v 1.3 2001/09/20 17:02:31 mpech Exp $ */ +/* $OpenBSD: freebsd_timex.h,v 1.4 2002/03/14 01:26:49 millert Exp $ */ /****************************************************************************** * * @@ -294,8 +294,8 @@ struct freebsd_timex { #include <sys/cdefs.h> __BEGIN_DECLS -extern int ntp_gettime __P((struct ntptimeval *)); -extern int ntp_adjtime __P((struct timex *)); +extern int ntp_gettime(struct ntptimeval *); +extern int ntp_adjtime(struct timex *); __END_DECLS #endif /* not _KERNEL */ diff --git a/sys/compat/hpux/hpux.h b/sys/compat/hpux/hpux.h index 6a8e8d9142c..a9dc53cd725 100644 --- a/sys/compat/hpux/hpux.h +++ b/sys/compat/hpux/hpux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux.h,v 1.7 2000/11/10 15:33:09 provos Exp $ */ +/* $OpenBSD: hpux.h,v 1.8 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: hpux.h,v 1.11 1997/04/01 19:58:58 scottr Exp $ */ /* @@ -282,7 +282,7 @@ struct hpux_shmid_ds { /* HP-UX POSIX signal stuff implementation */ typedef struct __hpux_sigset_t { long sigset[8]; } hpux_sigset_t; struct hpux_sigaction { - void (*sa__handler) __P((int)); + void (*sa__handler)(int); hpux_sigset_t sa_mask; int sa_flags; }; diff --git a/sys/compat/hpux/hpux_compat.c b/sys/compat/hpux/hpux_compat.c index 62829642fd7..6edaff6840a 100644 --- a/sys/compat/hpux/hpux_compat.c +++ b/sys/compat/hpux/hpux_compat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_compat.c,v 1.17 2002/03/14 00:42:25 miod Exp $ */ +/* $OpenBSD: hpux_compat.c,v 1.18 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: hpux_compat.c,v 1.35 1997/05/08 16:19:48 mycroft Exp $ */ /* @@ -112,11 +112,11 @@ extern char sigcode[], esigcode[]; extern struct sysent hpux_sysent[]; extern char *hpux_syscallnames[]; -int hpux_shmctl1 __P((struct proc *, struct hpux_sys_shmctl_args *, - register_t *, int)); -int hpuxtobsdioctl __P((u_long)); +int hpux_shmctl1(struct proc *, struct hpux_sys_shmctl_args *, + register_t *, int); +int hpuxtobsdioctl(u_long); -static int hpux_scale __P((struct timeval *)); +static int hpux_scale(struct timeval *); /* * HP-UX fork and vfork need to map the EAGAIN return value appropriately. @@ -673,7 +673,7 @@ hpux_shmctl1(p, uap, retval, isnew) struct ucred *cred = p->p_ucred; struct hpux_shmid_ds sbuf; int error; - extern struct shmid_ds *shm_find_segment_by_shmid __P((int)); + extern struct shmid_ds *shm_find_segment_by_shmid(int); if ((shp = shm_find_segment_by_shmid(SCARG(uap, shmid))) == NULL) return EINVAL; diff --git a/sys/compat/hpux/hpux_exec.c b/sys/compat/hpux/hpux_exec.c index b73826dd406..b667fb570de 100644 --- a/sys/compat/hpux/hpux_exec.c +++ b/sys/compat/hpux/hpux_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_exec.c,v 1.14 2001/11/15 06:22:29 art Exp $ */ +/* $OpenBSD: hpux_exec.c,v 1.15 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: hpux_exec.c,v 1.8 1997/03/16 10:14:44 thorpej Exp $ */ /* @@ -69,9 +69,9 @@ extern char *hpux_syscallnames[]; #endif extern int bsdtohpuxerrnomap[]; -static int exec_hpux_prep_nmagic __P((struct proc *, struct exec_package *)); -static int exec_hpux_prep_zmagic __P((struct proc *, struct exec_package *)); -static int exec_hpux_prep_omagic __P((struct proc *, struct exec_package *)); +static int exec_hpux_prep_nmagic(struct proc *, struct exec_package *); +static int exec_hpux_prep_zmagic(struct proc *, struct exec_package *); +static int exec_hpux_prep_omagic(struct proc *, struct exec_package *); struct emul emul_hpux = { "hpux", diff --git a/sys/compat/hpux/hpux_exec.h b/sys/compat/hpux/hpux_exec.h index 6a9f741d272..c523e568b04 100644 --- a/sys/compat/hpux/hpux_exec.h +++ b/sys/compat/hpux/hpux_exec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_exec.h,v 1.4 1997/03/26 08:11:07 downsj Exp $ */ +/* $OpenBSD: hpux_exec.h,v 1.5 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: hpux_exec.h,v 1.7 1997/03/16 10:16:02 thorpej Exp $ */ /* @@ -119,6 +119,6 @@ struct hpux_exec { #define HPUXM_STKWT 0x02000000 #define HPUXM_DATAWT 0x04000000 -int exec_hpux_makecmds __P((struct proc *, struct exec_package *)); +int exec_hpux_makecmds(struct proc *, struct exec_package *); #endif /* _HPUX_EXEC_H_ */ diff --git a/sys/compat/hpux/hpux_file.c b/sys/compat/hpux/hpux_file.c index 7b2c4665775..435eb7586ce 100644 --- a/sys/compat/hpux/hpux_file.c +++ b/sys/compat/hpux/hpux_file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_file.c,v 1.11 2002/02/16 15:45:04 miod Exp $ */ +/* $OpenBSD: hpux_file.c,v 1.12 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: hpux_file.c,v 1.5 1997/04/27 21:40:48 thorpej Exp $ */ /* @@ -85,9 +85,9 @@ #include <machine/hpux_machdep.h> -static int hpux_stat1 __P((struct proc *, void *, register_t *, int)); -static void bsd_to_hpux_stat __P((struct stat *, struct hpux_stat *)); -static void bsd_to_hpux_ostat __P((struct stat *, struct hpux_ostat *)); +static int hpux_stat1(struct proc *, void *, register_t *, int); +static void bsd_to_hpux_stat(struct stat *, struct hpux_stat *); +static void bsd_to_hpux_ostat(struct stat *, struct hpux_ostat *); /* * HP-UX creat(2) system call. diff --git a/sys/compat/hpux/hpux_net.c b/sys/compat/hpux/hpux_net.c index 96d3d020be4..d7280311938 100644 --- a/sys/compat/hpux/hpux_net.c +++ b/sys/compat/hpux/hpux_net.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_net.c,v 1.7 2002/02/12 13:05:31 art Exp $ */ +/* $OpenBSD: hpux_net.c,v 1.8 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: hpux_net.c,v 1.14 1997/04/01 19:59:02 scottr Exp $ */ /* @@ -83,10 +83,10 @@ struct hpux_sys_getsockopt_args { syscallarg(int *) avalsize; }; -int hpux_sys_setsockopt __P((struct proc *, void *, register_t *)); -int hpux_sys_getsockopt __P((struct proc *, void *, register_t *)); +int hpux_sys_setsockopt(struct proc *, void *, register_t *); +int hpux_sys_getsockopt(struct proc *, void *, register_t *); -void socksetsize __P((int, struct mbuf *)); +void socksetsize(int, struct mbuf *); #define MINBSDIPCCODE 0x3EE @@ -98,7 +98,7 @@ void socksetsize __P((int, struct mbuf *)); */ struct hpuxtobsdipc { - int (*rout) __P((struct proc *, void *, register_t *)); + int (*rout)(struct proc *, void *, register_t *); int nargs; } hpuxtobsdipc[NUMBSDIPC] = { { sys_socket, 3 }, /* 3ee */ diff --git a/sys/compat/hpux/hpux_sig.h b/sys/compat/hpux/hpux_sig.h index dce3d1a428d..1bc0b2a1efd 100644 --- a/sys/compat/hpux/hpux_sig.h +++ b/sys/compat/hpux/hpux_sig.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_sig.h,v 1.1 1997/04/16 09:18:11 downsj Exp $ */ +/* $OpenBSD: hpux_sig.h,v 1.2 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: hpux_sig.h,v 1.1 1997/04/01 19:59:03 scottr Exp $ */ /* @@ -48,8 +48,8 @@ */ #ifdef _KERNEL -int hpuxtobsdsig __P((int)); -int bsdtohpuxsig __P((int)); -int hpuxtobsdmask __P((int)); -int bsdtohpuxmask __P((int)); +int hpuxtobsdsig(int); +int bsdtohpuxsig(int); +int hpuxtobsdmask(int); +int bsdtohpuxmask(int); #endif /* _KERNEL */ diff --git a/sys/compat/hpux/hpux_syscallargs.h b/sys/compat/hpux/hpux_syscallargs.h index 671fda93799..9ca7331ec3d 100644 --- a/sys/compat/hpux/hpux_syscallargs.h +++ b/sys/compat/hpux/hpux_syscallargs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_syscallargs.h,v 1.10 2002/03/14 00:44:20 miod Exp $ */ +/* $OpenBSD: hpux_syscallargs.h,v 1.11 2002/03/14 01:26:49 millert Exp $ */ /* * System call argument lists. @@ -394,167 +394,167 @@ struct hpux_sys_nshmctl_args { * System call prototypes. */ -int sys_nosys __P((struct proc *, void *, register_t *)); -int sys_exit __P((struct proc *, void *, register_t *)); -int hpux_sys_fork __P((struct proc *, void *, register_t *)); -int hpux_sys_read __P((struct proc *, void *, register_t *)); -int hpux_sys_write __P((struct proc *, void *, register_t *)); -int hpux_sys_open __P((struct proc *, void *, register_t *)); -int sys_close __P((struct proc *, void *, register_t *)); -int hpux_sys_wait __P((struct proc *, void *, register_t *)); -int hpux_sys_creat __P((struct proc *, void *, register_t *)); -int sys_link __P((struct proc *, void *, register_t *)); -int hpux_sys_unlink __P((struct proc *, void *, register_t *)); -int hpux_sys_execv __P((struct proc *, void *, register_t *)); -int hpux_sys_chdir __P((struct proc *, void *, register_t *)); -int hpux_sys_time_6x __P((struct proc *, void *, register_t *)); -int hpux_sys_mknod __P((struct proc *, void *, register_t *)); -int hpux_sys_chmod __P((struct proc *, void *, register_t *)); -int hpux_sys_chown __P((struct proc *, void *, register_t *)); -int sys_obreak __P((struct proc *, void *, register_t *)); -int hpux_sys_stat_6x __P((struct proc *, void *, register_t *)); -int compat_43_sys_lseek __P((struct proc *, void *, register_t *)); -int sys_getpid __P((struct proc *, void *, register_t *)); -int sys_setuid __P((struct proc *, void *, register_t *)); -int sys_getuid __P((struct proc *, void *, register_t *)); -int hpux_sys_stime_6x __P((struct proc *, void *, register_t *)); +int sys_nosys(struct proc *, void *, register_t *); +int sys_exit(struct proc *, void *, register_t *); +int hpux_sys_fork(struct proc *, void *, register_t *); +int hpux_sys_read(struct proc *, void *, register_t *); +int hpux_sys_write(struct proc *, void *, register_t *); +int hpux_sys_open(struct proc *, void *, register_t *); +int sys_close(struct proc *, void *, register_t *); +int hpux_sys_wait(struct proc *, void *, register_t *); +int hpux_sys_creat(struct proc *, void *, register_t *); +int sys_link(struct proc *, void *, register_t *); +int hpux_sys_unlink(struct proc *, void *, register_t *); +int hpux_sys_execv(struct proc *, void *, register_t *); +int hpux_sys_chdir(struct proc *, void *, register_t *); +int hpux_sys_time_6x(struct proc *, void *, register_t *); +int hpux_sys_mknod(struct proc *, void *, register_t *); +int hpux_sys_chmod(struct proc *, void *, register_t *); +int hpux_sys_chown(struct proc *, void *, register_t *); +int sys_obreak(struct proc *, void *, register_t *); +int hpux_sys_stat_6x(struct proc *, void *, register_t *); +int compat_43_sys_lseek(struct proc *, void *, register_t *); +int sys_getpid(struct proc *, void *, register_t *); +int sys_setuid(struct proc *, void *, register_t *); +int sys_getuid(struct proc *, void *, register_t *); +int hpux_sys_stime_6x(struct proc *, void *, register_t *); #ifdef PTRACE -int hpux_sys_ptrace __P((struct proc *, void *, register_t *)); +int hpux_sys_ptrace(struct proc *, void *, register_t *); #else #endif -int hpux_sys_alarm_6x __P((struct proc *, void *, register_t *)); -int hpux_sys_fstat_6x __P((struct proc *, void *, register_t *)); -int hpux_sys_pause_6x __P((struct proc *, void *, register_t *)); -int hpux_sys_utime_6x __P((struct proc *, void *, register_t *)); -int hpux_sys_stty_6x __P((struct proc *, void *, register_t *)); -int hpux_sys_gtty_6x __P((struct proc *, void *, register_t *)); -int hpux_sys_access __P((struct proc *, void *, register_t *)); -int hpux_sys_nice_6x __P((struct proc *, void *, register_t *)); -int hpux_sys_ftime_6x __P((struct proc *, void *, register_t *)); -int sys_sync __P((struct proc *, void *, register_t *)); -int hpux_sys_kill __P((struct proc *, void *, register_t *)); -int hpux_sys_stat __P((struct proc *, void *, register_t *)); -int hpux_sys_setpgrp_6x __P((struct proc *, void *, register_t *)); -int hpux_sys_lstat __P((struct proc *, void *, register_t *)); -int sys_dup __P((struct proc *, void *, register_t *)); -int sys_opipe __P((struct proc *, void *, register_t *)); -int hpux_sys_times_6x __P((struct proc *, void *, register_t *)); -int sys_profil __P((struct proc *, void *, register_t *)); -int sys_setgid __P((struct proc *, void *, register_t *)); -int sys_getgid __P((struct proc *, void *, register_t *)); -int hpux_sys_ssig_6x __P((struct proc *, void *, register_t *)); -int hpux_sys_ioctl __P((struct proc *, void *, register_t *)); -int hpux_sys_symlink __P((struct proc *, void *, register_t *)); -int hpux_sys_utssys __P((struct proc *, void *, register_t *)); -int hpux_sys_readlink __P((struct proc *, void *, register_t *)); -int hpux_sys_execve __P((struct proc *, void *, register_t *)); -int sys_umask __P((struct proc *, void *, register_t *)); -int sys_chroot __P((struct proc *, void *, register_t *)); -int hpux_sys_fcntl __P((struct proc *, void *, register_t *)); -int hpux_sys_ulimit __P((struct proc *, void *, register_t *)); -int hpux_sys_vfork __P((struct proc *, void *, register_t *)); -int hpux_sys_read __P((struct proc *, void *, register_t *)); -int hpux_sys_write __P((struct proc *, void *, register_t *)); -int hpux_sys_mmap __P((struct proc *, void *, register_t *)); -int sys_munmap __P((struct proc *, void *, register_t *)); -int sys_mprotect __P((struct proc *, void *, register_t *)); -int sys_getgroups __P((struct proc *, void *, register_t *)); -int sys_setgroups __P((struct proc *, void *, register_t *)); -int hpux_sys_getpgrp2 __P((struct proc *, void *, register_t *)); -int hpux_sys_setpgrp2 __P((struct proc *, void *, register_t *)); -int sys_setitimer __P((struct proc *, void *, register_t *)); -int hpux_sys_wait3 __P((struct proc *, void *, register_t *)); -int sys_getitimer __P((struct proc *, void *, register_t *)); -int sys_dup2 __P((struct proc *, void *, register_t *)); -int hpux_sys_fstat __P((struct proc *, void *, register_t *)); -int sys_select __P((struct proc *, void *, register_t *)); -int sys_fsync __P((struct proc *, void *, register_t *)); -int hpux_sys_sigreturn __P((struct proc *, void *, register_t *)); -int hpux_sys_sigvec __P((struct proc *, void *, register_t *)); -int hpux_sys_sigblock __P((struct proc *, void *, register_t *)); -int hpux_sys_sigsetmask __P((struct proc *, void *, register_t *)); -int hpux_sys_sigpause __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigstack __P((struct proc *, void *, register_t *)); -int sys_gettimeofday __P((struct proc *, void *, register_t *)); -int hpux_sys_readv __P((struct proc *, void *, register_t *)); -int hpux_sys_writev __P((struct proc *, void *, register_t *)); -int sys_settimeofday __P((struct proc *, void *, register_t *)); -int sys_fchown __P((struct proc *, void *, register_t *)); -int sys_fchmod __P((struct proc *, void *, register_t *)); -int hpux_sys_setresuid __P((struct proc *, void *, register_t *)); -int hpux_sys_setresgid __P((struct proc *, void *, register_t *)); -int hpux_sys_rename __P((struct proc *, void *, register_t *)); -int hpux_sys_truncate __P((struct proc *, void *, register_t *)); -int compat_43_sys_ftruncate __P((struct proc *, void *, register_t *)); -int hpux_sys_sysconf __P((struct proc *, void *, register_t *)); -int hpux_sys_mkdir __P((struct proc *, void *, register_t *)); -int hpux_sys_rmdir __P((struct proc *, void *, register_t *)); -int hpux_sys_getrlimit __P((struct proc *, void *, register_t *)); -int hpux_sys_setrlimit __P((struct proc *, void *, register_t *)); -int hpux_sys_rtprio __P((struct proc *, void *, register_t *)); -int hpux_sys_netioctl __P((struct proc *, void *, register_t *)); -int hpux_sys_lockf __P((struct proc *, void *, register_t *)); +int hpux_sys_alarm_6x(struct proc *, void *, register_t *); +int hpux_sys_fstat_6x(struct proc *, void *, register_t *); +int hpux_sys_pause_6x(struct proc *, void *, register_t *); +int hpux_sys_utime_6x(struct proc *, void *, register_t *); +int hpux_sys_stty_6x(struct proc *, void *, register_t *); +int hpux_sys_gtty_6x(struct proc *, void *, register_t *); +int hpux_sys_access(struct proc *, void *, register_t *); +int hpux_sys_nice_6x(struct proc *, void *, register_t *); +int hpux_sys_ftime_6x(struct proc *, void *, register_t *); +int sys_sync(struct proc *, void *, register_t *); +int hpux_sys_kill(struct proc *, void *, register_t *); +int hpux_sys_stat(struct proc *, void *, register_t *); +int hpux_sys_setpgrp_6x(struct proc *, void *, register_t *); +int hpux_sys_lstat(struct proc *, void *, register_t *); +int sys_dup(struct proc *, void *, register_t *); +int sys_opipe(struct proc *, void *, register_t *); +int hpux_sys_times_6x(struct proc *, void *, register_t *); +int sys_profil(struct proc *, void *, register_t *); +int sys_setgid(struct proc *, void *, register_t *); +int sys_getgid(struct proc *, void *, register_t *); +int hpux_sys_ssig_6x(struct proc *, void *, register_t *); +int hpux_sys_ioctl(struct proc *, void *, register_t *); +int hpux_sys_symlink(struct proc *, void *, register_t *); +int hpux_sys_utssys(struct proc *, void *, register_t *); +int hpux_sys_readlink(struct proc *, void *, register_t *); +int hpux_sys_execve(struct proc *, void *, register_t *); +int sys_umask(struct proc *, void *, register_t *); +int sys_chroot(struct proc *, void *, register_t *); +int hpux_sys_fcntl(struct proc *, void *, register_t *); +int hpux_sys_ulimit(struct proc *, void *, register_t *); +int hpux_sys_vfork(struct proc *, void *, register_t *); +int hpux_sys_read(struct proc *, void *, register_t *); +int hpux_sys_write(struct proc *, void *, register_t *); +int hpux_sys_mmap(struct proc *, void *, register_t *); +int sys_munmap(struct proc *, void *, register_t *); +int sys_mprotect(struct proc *, void *, register_t *); +int sys_getgroups(struct proc *, void *, register_t *); +int sys_setgroups(struct proc *, void *, register_t *); +int hpux_sys_getpgrp2(struct proc *, void *, register_t *); +int hpux_sys_setpgrp2(struct proc *, void *, register_t *); +int sys_setitimer(struct proc *, void *, register_t *); +int hpux_sys_wait3(struct proc *, void *, register_t *); +int sys_getitimer(struct proc *, void *, register_t *); +int sys_dup2(struct proc *, void *, register_t *); +int hpux_sys_fstat(struct proc *, void *, register_t *); +int sys_select(struct proc *, void *, register_t *); +int sys_fsync(struct proc *, void *, register_t *); +int hpux_sys_sigreturn(struct proc *, void *, register_t *); +int hpux_sys_sigvec(struct proc *, void *, register_t *); +int hpux_sys_sigblock(struct proc *, void *, register_t *); +int hpux_sys_sigsetmask(struct proc *, void *, register_t *); +int hpux_sys_sigpause(struct proc *, void *, register_t *); +int compat_43_sys_sigstack(struct proc *, void *, register_t *); +int sys_gettimeofday(struct proc *, void *, register_t *); +int hpux_sys_readv(struct proc *, void *, register_t *); +int hpux_sys_writev(struct proc *, void *, register_t *); +int sys_settimeofday(struct proc *, void *, register_t *); +int sys_fchown(struct proc *, void *, register_t *); +int sys_fchmod(struct proc *, void *, register_t *); +int hpux_sys_setresuid(struct proc *, void *, register_t *); +int hpux_sys_setresgid(struct proc *, void *, register_t *); +int hpux_sys_rename(struct proc *, void *, register_t *); +int hpux_sys_truncate(struct proc *, void *, register_t *); +int compat_43_sys_ftruncate(struct proc *, void *, register_t *); +int hpux_sys_sysconf(struct proc *, void *, register_t *); +int hpux_sys_mkdir(struct proc *, void *, register_t *); +int hpux_sys_rmdir(struct proc *, void *, register_t *); +int hpux_sys_getrlimit(struct proc *, void *, register_t *); +int hpux_sys_setrlimit(struct proc *, void *, register_t *); +int hpux_sys_rtprio(struct proc *, void *, register_t *); +int hpux_sys_netioctl(struct proc *, void *, register_t *); +int hpux_sys_lockf(struct proc *, void *, register_t *); #ifdef SYSVSEM -int sys_semget __P((struct proc *, void *, register_t *)); -int sys___semctl __P((struct proc *, void *, register_t *)); -int sys_semop __P((struct proc *, void *, register_t *)); +int sys_semget(struct proc *, void *, register_t *); +int sys___semctl(struct proc *, void *, register_t *); +int sys_semop(struct proc *, void *, register_t *); #else #endif #ifdef SYSVMSG -int sys_msgget __P((struct proc *, void *, register_t *)); -int sys_msgctl __P((struct proc *, void *, register_t *)); -int sys_msgsnd __P((struct proc *, void *, register_t *)); -int sys_msgrcv __P((struct proc *, void *, register_t *)); +int sys_msgget(struct proc *, void *, register_t *); +int sys_msgctl(struct proc *, void *, register_t *); +int sys_msgsnd(struct proc *, void *, register_t *); +int sys_msgrcv(struct proc *, void *, register_t *); #else #endif #ifdef SYSVSHM -int sys_shmget __P((struct proc *, void *, register_t *)); -int hpux_sys_shmctl __P((struct proc *, void *, register_t *)); -int sys_shmat __P((struct proc *, void *, register_t *)); -int sys_shmdt __P((struct proc *, void *, register_t *)); +int sys_shmget(struct proc *, void *, register_t *); +int hpux_sys_shmctl(struct proc *, void *, register_t *); +int sys_shmat(struct proc *, void *, register_t *); +int sys_shmdt(struct proc *, void *, register_t *); #else #endif -int hpux_sys_advise __P((struct proc *, void *, register_t *)); -int hpux_sys_getcontext __P((struct proc *, void *, register_t *)); -int hpux_sys_getaccess __P((struct proc *, void *, register_t *)); -int hpux_sys_waitpid __P((struct proc *, void *, register_t *)); -int sys_pathconf __P((struct proc *, void *, register_t *)); -int sys_fpathconf __P((struct proc *, void *, register_t *)); -int compat_43_sys_getdirentries __P((struct proc *, void *, register_t *)); -int compat_09_sys_getdomainname __P((struct proc *, void *, register_t *)); -int compat_09_sys_setdomainname __P((struct proc *, void *, register_t *)); -int hpux_sys_sigaction __P((struct proc *, void *, register_t *)); -int hpux_sys_sigprocmask __P((struct proc *, void *, register_t *)); -int hpux_sys_sigpending __P((struct proc *, void *, register_t *)); -int hpux_sys_sigsuspend __P((struct proc *, void *, register_t *)); -int compat_43_sys_getdtablesize __P((struct proc *, void *, register_t *)); -int sys_fchdir __P((struct proc *, void *, register_t *)); -int compat_43_sys_accept __P((struct proc *, void *, register_t *)); -int sys_bind __P((struct proc *, void *, register_t *)); -int sys_connect __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpeername __P((struct proc *, void *, register_t *)); -int compat_43_sys_getsockname __P((struct proc *, void *, register_t *)); -int sys_getsockopt __P((struct proc *, void *, register_t *)); -int sys_listen __P((struct proc *, void *, register_t *)); -int compat_43_sys_recv __P((struct proc *, void *, register_t *)); -int compat_43_sys_recvfrom __P((struct proc *, void *, register_t *)); -int compat_43_sys_recvmsg __P((struct proc *, void *, register_t *)); -int compat_43_sys_send __P((struct proc *, void *, register_t *)); -int compat_43_sys_sendmsg __P((struct proc *, void *, register_t *)); -int sys_sendto __P((struct proc *, void *, register_t *)); -int hpux_sys_setsockopt2 __P((struct proc *, void *, register_t *)); -int sys_shutdown __P((struct proc *, void *, register_t *)); -int sys_socket __P((struct proc *, void *, register_t *)); -int sys_socketpair __P((struct proc *, void *, register_t *)); +int hpux_sys_advise(struct proc *, void *, register_t *); +int hpux_sys_getcontext(struct proc *, void *, register_t *); +int hpux_sys_getaccess(struct proc *, void *, register_t *); +int hpux_sys_waitpid(struct proc *, void *, register_t *); +int sys_pathconf(struct proc *, void *, register_t *); +int sys_fpathconf(struct proc *, void *, register_t *); +int compat_43_sys_getdirentries(struct proc *, void *, register_t *); +int compat_09_sys_getdomainname(struct proc *, void *, register_t *); +int compat_09_sys_setdomainname(struct proc *, void *, register_t *); +int hpux_sys_sigaction(struct proc *, void *, register_t *); +int hpux_sys_sigprocmask(struct proc *, void *, register_t *); +int hpux_sys_sigpending(struct proc *, void *, register_t *); +int hpux_sys_sigsuspend(struct proc *, void *, register_t *); +int compat_43_sys_getdtablesize(struct proc *, void *, register_t *); +int sys_fchdir(struct proc *, void *, register_t *); +int compat_43_sys_accept(struct proc *, void *, register_t *); +int sys_bind(struct proc *, void *, register_t *); +int sys_connect(struct proc *, void *, register_t *); +int compat_43_sys_getpeername(struct proc *, void *, register_t *); +int compat_43_sys_getsockname(struct proc *, void *, register_t *); +int sys_getsockopt(struct proc *, void *, register_t *); +int sys_listen(struct proc *, void *, register_t *); +int compat_43_sys_recv(struct proc *, void *, register_t *); +int compat_43_sys_recvfrom(struct proc *, void *, register_t *); +int compat_43_sys_recvmsg(struct proc *, void *, register_t *); +int compat_43_sys_send(struct proc *, void *, register_t *); +int compat_43_sys_sendmsg(struct proc *, void *, register_t *); +int sys_sendto(struct proc *, void *, register_t *); +int hpux_sys_setsockopt2(struct proc *, void *, register_t *); +int sys_shutdown(struct proc *, void *, register_t *); +int sys_socket(struct proc *, void *, register_t *); +int sys_socketpair(struct proc *, void *, register_t *); #ifdef SYSVSEM -int sys___semctl __P((struct proc *, void *, register_t *)); +int sys___semctl(struct proc *, void *, register_t *); #else #endif #ifdef SYSVMSG -int sys_msgctl __P((struct proc *, void *, register_t *)); +int sys_msgctl(struct proc *, void *, register_t *); #else #endif #ifdef SYSVSHM -int hpux_sys_nshmctl __P((struct proc *, void *, register_t *)); +int hpux_sys_nshmctl(struct proc *, void *, register_t *); #else #endif diff --git a/sys/compat/hpux/hpux_termio.h b/sys/compat/hpux/hpux_termio.h index 23fae62e7ae..1296092bac5 100644 --- a/sys/compat/hpux/hpux_termio.h +++ b/sys/compat/hpux/hpux_termio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_termio.h,v 1.3 1997/04/16 09:18:14 downsj Exp $ */ +/* $OpenBSD: hpux_termio.h,v 1.4 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: hpux_termio.h,v 1.7 1997/04/01 19:59:04 scottr Exp $ */ /* @@ -196,11 +196,11 @@ struct hpux_termios { struct termio; struct termios; -int hpux_termio __P((int, int, caddr_t, struct proc *)); -void termiototermios __P((struct hpux_termio *, struct hpux_termios *, - struct termios *)); -void termiostotermio __P((struct hpux_termios *, struct hpux_termio *)); -int bsdtohpuxbaud __P((long)); -int hpuxtobsdbaud __P((int)); -int getsettty __P((struct proc *, int, int, caddr_t)); +int hpux_termio(int, int, caddr_t, struct proc *); +void termiototermios(struct hpux_termio *, struct hpux_termios *, + struct termios *); +void termiostotermio(struct hpux_termios *, struct hpux_termio *); +int bsdtohpuxbaud(long); +int hpuxtobsdbaud(int); +int getsettty(struct proc *, int, int, caddr_t); #endif /* _KERNEL */ diff --git a/sys/compat/hpux/hpux_tty.c b/sys/compat/hpux/hpux_tty.c index 2bff4d874e6..2ec5cf55e7e 100644 --- a/sys/compat/hpux/hpux_tty.c +++ b/sys/compat/hpux/hpux_tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_tty.c,v 1.7 2002/02/13 19:08:06 art Exp $ */ +/* $OpenBSD: hpux_tty.c,v 1.8 2002/03/14 01:26:49 millert Exp $ */ /* $NetBSD: hpux_tty.c,v 1.14 1997/04/01 19:59:05 scottr Exp $ */ /* @@ -80,8 +80,8 @@ hpux_termio(fd, com, data, p) struct hpux_termios htios; int line, error; int newi = 0; - int (*ioctlrout) __P((struct file *fp, u_long com, - caddr_t data, struct proc *p)); + int (*ioctlrout)(struct file *fp, u_long com, + caddr_t data, struct proc *p); if ((fp = fd_getfile(p->p_fd, fd)) == NULL) return (EBADF); diff --git a/sys/compat/ibcs2/ibcs2_exec.c b/sys/compat/ibcs2/ibcs2_exec.c index 64497eb85cf..a9f0dd811b9 100644 --- a/sys/compat/ibcs2/ibcs2_exec.c +++ b/sys/compat/ibcs2/ibcs2_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ibcs2_exec.c,v 1.12 2001/11/15 06:22:29 art Exp $ */ +/* $OpenBSD: ibcs2_exec.c,v 1.13 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: ibcs2_exec.c,v 1.12 1996/10/12 02:13:52 thorpej Exp $ */ /* @@ -50,28 +50,28 @@ #include <compat/ibcs2/ibcs2_util.h> #include <compat/ibcs2/ibcs2_syscall.h> -int exec_ibcs2_coff_prep_omagic __P((struct proc *, struct exec_package *, +int exec_ibcs2_coff_prep_omagic(struct proc *, struct exec_package *, struct coff_filehdr *, - struct coff_aouthdr *)); -int exec_ibcs2_coff_prep_nmagic __P((struct proc *, struct exec_package *, + struct coff_aouthdr *); +int exec_ibcs2_coff_prep_nmagic(struct proc *, struct exec_package *, struct coff_filehdr *, - struct coff_aouthdr *)); -int exec_ibcs2_coff_prep_zmagic __P((struct proc *, struct exec_package *, + struct coff_aouthdr *); +int exec_ibcs2_coff_prep_zmagic(struct proc *, struct exec_package *, struct coff_filehdr *, - struct coff_aouthdr *)); -int exec_ibcs2_coff_setup_stack __P((struct proc *, struct exec_package *)); -void cpu_exec_ibcs2_coff_setup __P((int, struct proc *, struct exec_package *, - void *)); - -int exec_ibcs2_xout_prep_nmagic __P((struct proc *, struct exec_package *, - struct xexec *, struct xext *)); -int exec_ibcs2_xout_prep_zmagic __P((struct proc *, struct exec_package *, - struct xexec *, struct xext *)); -int exec_ibcs2_xout_setup_stack __P((struct proc *, struct exec_package *)); -int coff_load_shlib __P((struct proc *, char *, struct exec_package *)); -static int coff_find_section __P((struct proc *, struct vnode *, + struct coff_aouthdr *); +int exec_ibcs2_coff_setup_stack(struct proc *, struct exec_package *); +void cpu_exec_ibcs2_coff_setup(int, struct proc *, struct exec_package *, + void *); + +int exec_ibcs2_xout_prep_nmagic(struct proc *, struct exec_package *, + struct xexec *, struct xext *); +int exec_ibcs2_xout_prep_zmagic(struct proc *, struct exec_package *, + struct xexec *, struct xext *); +int exec_ibcs2_xout_setup_stack(struct proc *, struct exec_package *); +int coff_load_shlib(struct proc *, char *, struct exec_package *); +static int coff_find_section(struct proc *, struct vnode *, struct coff_filehdr *, struct coff_scnhdr *, - int)); + int); extern int bsd2ibcs_errno[]; @@ -79,7 +79,7 @@ extern struct sysent ibcs2_sysent[]; #ifdef SYSCALL_DEBUG extern char *ibcs2_syscallnames[]; #endif -extern void ibcs2_sendsig __P((sig_t, int, int, u_long, int, union sigval)); +extern void ibcs2_sendsig(sig_t, int, int, u_long, int, union sigval); extern char sigcode[], esigcode[]; const char ibcs2_emul_path[] = "/emul/ibcs2"; diff --git a/sys/compat/ibcs2/ibcs2_exec.h b/sys/compat/ibcs2/ibcs2_exec.h index 7e33c700544..94bc42b5afc 100644 --- a/sys/compat/ibcs2/ibcs2_exec.h +++ b/sys/compat/ibcs2/ibcs2_exec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ibcs2_exec.h,v 1.2 1996/08/02 20:35:05 niklas Exp $ */ +/* $OpenBSD: ibcs2_exec.h,v 1.3 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: ibcs2_exec.h,v 1.4 1995/03/14 15:12:24 scottb Exp $ */ /* @@ -158,7 +158,7 @@ struct coff_slhdr { #define IBCS2_CVT_HIGH_SYSCALL(n) (((n) >> 8) + 128) struct exec_package; -int exec_ibcs2_coff_makecmds __P((struct proc *, struct exec_package *)); +int exec_ibcs2_coff_makecmds(struct proc *, struct exec_package *); /* * x.out (XENIX) @@ -281,6 +281,6 @@ struct xiter { #define XOUT_HDR_SIZE (sizeof(struct xexec) + sizeof(struct xext)) -int exec_ibcs2_xout_makecmds __P((struct proc *, struct exec_package *)); +int exec_ibcs2_xout_makecmds(struct proc *, struct exec_package *); #endif /* !_IBCS2_EXEC_H_ */ diff --git a/sys/compat/ibcs2/ibcs2_fcntl.c b/sys/compat/ibcs2/ibcs2_fcntl.c index 7022a953a60..e2c1f3b1b88 100644 --- a/sys/compat/ibcs2/ibcs2_fcntl.c +++ b/sys/compat/ibcs2/ibcs2_fcntl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ibcs2_fcntl.c,v 1.8 2002/02/13 19:08:06 art Exp $ */ +/* $OpenBSD: ibcs2_fcntl.c,v 1.9 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: ibcs2_fcntl.c,v 1.6 1996/05/03 17:05:20 christos Exp $ */ /* @@ -50,11 +50,11 @@ #include <compat/ibcs2/ibcs2_syscallargs.h> #include <compat/ibcs2/ibcs2_util.h> -static int cvt_o_flags __P((int)); -static void cvt_flock2iflock __P((struct flock *, struct ibcs2_flock *)); -static void cvt_iflock2flock __P((struct ibcs2_flock *, struct flock *)); -static int ioflags2oflags __P((int)); -static int oflags2ioflags __P((int)); +static int cvt_o_flags(int); +static void cvt_flock2iflock(struct flock *, struct ibcs2_flock *); +static void cvt_iflock2flock(struct ibcs2_flock *, struct flock *); +static int ioflags2oflags(int); +static int oflags2ioflags(int); static int cvt_o_flags(flags) diff --git a/sys/compat/ibcs2/ibcs2_ioctl.c b/sys/compat/ibcs2/ibcs2_ioctl.c index a40ee811975..b02eb51978e 100644 --- a/sys/compat/ibcs2/ibcs2_ioctl.c +++ b/sys/compat/ibcs2/ibcs2_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ibcs2_ioctl.c,v 1.10 2002/02/14 22:57:18 pvalchev Exp $ */ +/* $OpenBSD: ibcs2_ioctl.c,v 1.11 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: ibcs2_ioctl.c,v 1.12 1996/08/10 09:08:26 mycroft Exp $ */ /* @@ -112,10 +112,10 @@ static u_long s2btab[] = { 38400, }; -static void stios2btios __P((struct ibcs2_termios *, struct termios *)); -static void btios2stios __P((struct termios *, struct ibcs2_termios *)); -static void stios2stio __P((struct ibcs2_termios *, struct ibcs2_termio *)); -static void stio2stios __P((struct ibcs2_termio *, struct ibcs2_termios *)); +static void stios2btios(struct ibcs2_termios *, struct termios *); +static void btios2stios(struct termios *, struct ibcs2_termios *); +static void stios2stio(struct ibcs2_termios *, struct ibcs2_termio *); +static void stio2stios(struct ibcs2_termio *, struct ibcs2_termios *); static void stios2btios(st, bt) @@ -342,7 +342,7 @@ ibcs2_sys_ioctl(p, v, retval) } */ *uap = v; struct filedesc *fdp = p->p_fd; struct file *fp; - int (*ctl) __P((struct file *, u_long, caddr_t, struct proc *)); + int (*ctl)(struct file *, u_long, caddr_t, struct proc *); int error; if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL) diff --git a/sys/compat/ibcs2/ibcs2_ipc.c b/sys/compat/ibcs2/ibcs2_ipc.c index 126f8ee8549..4d05b19a8c8 100644 --- a/sys/compat/ibcs2/ibcs2_ipc.c +++ b/sys/compat/ibcs2/ibcs2_ipc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ibcs2_ipc.c,v 1.6 2001/11/06 19:53:17 miod Exp $ */ +/* $OpenBSD: ibcs2_ipc.c,v 1.7 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: ibcs2_ipc.c,v 1.7 1997/01/18 01:51:41 mycroft Exp $ */ /* @@ -86,8 +86,8 @@ struct ibcs2_msqid_ds { ibcs2_time_t msg_ctime; }; -void cvt_msqid2imsqid __P((struct msqid_ds *, struct ibcs2_msqid_ds *)); -void cvt_imsqid2msqid __P((struct ibcs2_msqid_ds *, struct msqid_ds *)); +void cvt_msqid2imsqid(struct msqid_ds *, struct ibcs2_msqid_ds *); +void cvt_imsqid2msqid(struct ibcs2_msqid_ds *, struct msqid_ds *); void cvt_msqid2imsqid(bp, ibp) @@ -208,11 +208,11 @@ struct ibcs2_sem { u_short semzcnt; }; -void cvt_semid2isemid __P((struct semid_ds *, struct ibcs2_semid_ds *)); -void cvt_isemid2semid __P((struct ibcs2_semid_ds *, struct semid_ds *)); +void cvt_semid2isemid(struct semid_ds *, struct ibcs2_semid_ds *); +void cvt_isemid2semid(struct ibcs2_semid_ds *, struct semid_ds *); #ifdef notdef -void cvt_sem2isem __P((struct sem *, struct ibcs2_sem *)); -void cvt_isem2sem __P((struct ibcs2_sem *, struct sem *)); +void cvt_sem2isem(struct sem *, struct ibcs2_sem *); +void cvt_isem2sem(struct ibcs2_sem *, struct sem *); void cvt_sem2isem(bp, ibp) @@ -352,8 +352,8 @@ struct ibcs2_shmid_ds { ibcs2_time_t shm_ctime; }; -void cvt_shmid2ishmid __P((struct shmid_ds *, struct ibcs2_shmid_ds *)); -void cvt_ishmid2shmid __P((struct ibcs2_shmid_ds *, struct shmid_ds *)); +void cvt_shmid2ishmid(struct shmid_ds *, struct ibcs2_shmid_ds *); +void cvt_ishmid2shmid(struct ibcs2_shmid_ds *, struct shmid_ds *); void cvt_shmid2ishmid(bp, ibp) diff --git a/sys/compat/ibcs2/ibcs2_misc.c b/sys/compat/ibcs2/ibcs2_misc.c index 32a398c86c8..3b3137ba2c2 100644 --- a/sys/compat/ibcs2/ibcs2_misc.c +++ b/sys/compat/ibcs2/ibcs2_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ibcs2_misc.c,v 1.21 2002/02/12 22:14:00 deraadt Exp $ */ +/* $OpenBSD: ibcs2_misc.c,v 1.22 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: ibcs2_misc.c,v 1.23 1997/01/15 01:37:49 perry Exp $ */ /* @@ -336,8 +336,8 @@ ibcs2_sys_mount(p, v, retval) * This is quite ugly, but what do you expect from compatibility code? */ -int ibcs2_readdir_callback __P((void *, struct dirent *, off_t)); -int ibcs2_classicread_callback __P((void *, struct dirent *, off_t)); +int ibcs2_readdir_callback(void *, struct dirent *, off_t); +int ibcs2_classicread_callback(void *, struct dirent *, off_t); struct ibcs2_readdir_callback_args { caddr_t outp; diff --git a/sys/compat/ibcs2/ibcs2_signal.c b/sys/compat/ibcs2/ibcs2_signal.c index 1fcaf1412af..4af83bb86d6 100644 --- a/sys/compat/ibcs2/ibcs2_signal.c +++ b/sys/compat/ibcs2/ibcs2_signal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ibcs2_signal.c,v 1.6 1998/12/22 07:58:44 deraadt Exp $ */ +/* $OpenBSD: ibcs2_signal.c,v 1.7 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: ibcs2_signal.c,v 1.8 1996/05/03 17:05:27 christos Exp $ */ /* @@ -126,11 +126,11 @@ int ibcs2_to_bsd_sig[] = { 0, /* 31 */ }; -void ibcs2_to_bsd_sigset __P((const ibcs2_sigset_t *, sigset_t *)); -void bsd_to_ibcs2_sigset __P((const sigset_t *, ibcs2_sigset_t *)); -void ibcs2_to_bsd_sigaction __P((struct ibcs2_sigaction *, - struct sigaction *)); -void bsd_to_ibcs2_sigaction __P((struct sigaction *, struct ibcs2_sigaction *)); +void ibcs2_to_bsd_sigset(const ibcs2_sigset_t *, sigset_t *); +void bsd_to_ibcs2_sigset(const sigset_t *, ibcs2_sigset_t *); +void ibcs2_to_bsd_sigaction(struct ibcs2_sigaction *, + struct sigaction *); +void bsd_to_ibcs2_sigaction(struct sigaction *, struct ibcs2_sigaction *); void ibcs2_to_bsd_sigset(iss, bss) diff --git a/sys/compat/ibcs2/ibcs2_signal.h b/sys/compat/ibcs2/ibcs2_signal.h index 6d6b3569ea3..7391c546aab 100644 --- a/sys/compat/ibcs2/ibcs2_signal.h +++ b/sys/compat/ibcs2/ibcs2_signal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ibcs2_signal.h,v 1.4 1997/06/02 09:42:09 deraadt Exp $ */ +/* $OpenBSD: ibcs2_signal.h,v 1.5 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: ibcs2_signal.h,v 1.8 1996/05/03 17:05:28 christos Exp $ */ /* @@ -80,17 +80,17 @@ #define IBCS2_SIGNO(x) ((x) & IBCS2_SIGNO_MASK) #define IBCS2_SIGCALL(x) ((x) & ~IBCS2_SIGNO_MASK) -#define IBCS2_SIG_DFL (void(*) __P((int))) 0 -#define IBCS2_SIG_ERR (void(*) __P((int))) -1 -#define IBCS2_SIG_IGN (void(*) __P((int))) 1 -#define IBCS2_SIG_HOLD (void(*) __P((int))) 2 +#define IBCS2_SIG_DFL (void(*)(int)) 0 +#define IBCS2_SIG_ERR (void(*)(int)) -1 +#define IBCS2_SIG_IGN (void(*)(int)) 1 +#define IBCS2_SIG_HOLD (void(*)(int)) 2 #define IBCS2_SIG_SETMASK 0 #define IBCS2_SIG_BLOCK 1 #define IBCS2_SIG_UNBLOCK 2 typedef long ibcs2_sigset_t; -typedef void (*ibcs2_sig_t) __P((int)); +typedef void (*ibcs2_sig_t)(int); struct ibcs2_sigaction { ibcs2_sig_t sa__handler; diff --git a/sys/compat/ibcs2/ibcs2_socksys.h b/sys/compat/ibcs2/ibcs2_socksys.h index d17ee5fa7de..281c8b8a4d0 100644 --- a/sys/compat/ibcs2/ibcs2_socksys.h +++ b/sys/compat/ibcs2/ibcs2_socksys.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ibcs2_socksys.h,v 1.3 1996/08/02 20:35:10 niklas Exp $ */ +/* $OpenBSD: ibcs2_socksys.h,v 1.4 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: ibcs2_socksys.h,v 1.2 1996/05/03 17:05:30 christos Exp $ */ /* @@ -118,6 +118,6 @@ struct socknewproto { int flags; }; -int ibcs2_socksys __P((struct proc *, void *, register_t *)); +int ibcs2_socksys(struct proc *, void *, register_t *); #endif /* _IBCS2_SOCKSYS_H */ diff --git a/sys/compat/ibcs2/ibcs2_stat.c b/sys/compat/ibcs2/ibcs2_stat.c index 53c6b6b7c1a..28bee548f1c 100644 --- a/sys/compat/ibcs2/ibcs2_stat.c +++ b/sys/compat/ibcs2/ibcs2_stat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ibcs2_stat.c,v 1.7 2002/02/12 18:41:20 art Exp $ */ +/* $OpenBSD: ibcs2_stat.c,v 1.8 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: ibcs2_stat.c,v 1.5 1996/05/03 17:05:32 christos Exp $ */ /* @@ -54,8 +54,8 @@ #include <compat/ibcs2/ibcs2_util.h> #include <compat/ibcs2/ibcs2_utsname.h> -static void bsd_stat2ibcs_stat __P((struct ostat *, struct ibcs2_stat *)); -static int cvt_statfs __P((struct statfs *, caddr_t, int)); +static void bsd_stat2ibcs_stat(struct ostat *, struct ibcs2_stat *); +static int cvt_statfs(struct statfs *, caddr_t, int); static void bsd_stat2ibcs_stat(st, st4) diff --git a/sys/compat/ibcs2/ibcs2_syscallargs.h b/sys/compat/ibcs2/ibcs2_syscallargs.h index d5688b48205..ef922de57a3 100644 --- a/sys/compat/ibcs2/ibcs2_syscallargs.h +++ b/sys/compat/ibcs2/ibcs2_syscallargs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ibcs2_syscallargs.h,v 1.9 2001/08/26 04:14:26 deraadt Exp $ */ +/* $OpenBSD: ibcs2_syscallargs.h,v 1.10 2002/03/14 01:26:50 millert Exp $ */ /* * System call argument lists. @@ -362,95 +362,95 @@ struct ibcs2_sys_rename_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 ibcs2_sys_read __P((struct proc *, void *, register_t *)); -int sys_write __P((struct proc *, void *, register_t *)); -int ibcs2_sys_open __P((struct proc *, void *, register_t *)); -int sys_close __P((struct proc *, void *, register_t *)); -int ibcs2_sys_waitsys __P((struct proc *, void *, register_t *)); -int ibcs2_sys_creat __P((struct proc *, void *, register_t *)); -int sys_link __P((struct proc *, void *, register_t *)); -int ibcs2_sys_unlink __P((struct proc *, void *, register_t *)); -int ibcs2_sys_execv __P((struct proc *, void *, register_t *)); -int ibcs2_sys_chdir __P((struct proc *, void *, register_t *)); -int ibcs2_sys_time __P((struct proc *, void *, register_t *)); -int ibcs2_sys_mknod __P((struct proc *, void *, register_t *)); -int ibcs2_sys_chmod __P((struct proc *, void *, register_t *)); -int ibcs2_sys_chown __P((struct proc *, void *, register_t *)); -int sys_obreak __P((struct proc *, void *, register_t *)); -int ibcs2_sys_stat __P((struct proc *, void *, register_t *)); -int compat_43_sys_lseek __P((struct proc *, void *, register_t *)); -int sys_getpid __P((struct proc *, void *, register_t *)); -int ibcs2_sys_mount __P((struct proc *, void *, register_t *)); -int ibcs2_sys_umount __P((struct proc *, void *, register_t *)); -int ibcs2_sys_setuid __P((struct proc *, void *, register_t *)); -int sys_getuid __P((struct proc *, void *, register_t *)); -int ibcs2_sys_stime __P((struct proc *, void *, register_t *)); -int ibcs2_sys_alarm __P((struct proc *, void *, register_t *)); -int ibcs2_sys_fstat __P((struct proc *, void *, register_t *)); -int ibcs2_sys_pause __P((struct proc *, void *, register_t *)); -int ibcs2_sys_utime __P((struct proc *, void *, register_t *)); -int ibcs2_sys_access __P((struct proc *, void *, register_t *)); -int ibcs2_sys_nice __P((struct proc *, void *, register_t *)); -int ibcs2_sys_statfs __P((struct proc *, void *, register_t *)); -int sys_sync __P((struct proc *, void *, register_t *)); -int ibcs2_sys_kill __P((struct proc *, void *, register_t *)); -int ibcs2_sys_fstatfs __P((struct proc *, void *, register_t *)); -int ibcs2_sys_pgrpsys __P((struct proc *, void *, register_t *)); -int sys_dup __P((struct proc *, void *, register_t *)); -int sys_opipe __P((struct proc *, void *, register_t *)); -int ibcs2_sys_times __P((struct proc *, void *, register_t *)); -int ibcs2_sys_plock __P((struct proc *, void *, register_t *)); -int ibcs2_sys_setgid __P((struct proc *, void *, register_t *)); -int sys_getgid __P((struct proc *, void *, register_t *)); -int ibcs2_sys_sigsys __P((struct proc *, void *, register_t *)); +int sys_nosys(struct proc *, void *, register_t *); +int sys_exit(struct proc *, void *, register_t *); +int sys_fork(struct proc *, void *, register_t *); +int ibcs2_sys_read(struct proc *, void *, register_t *); +int sys_write(struct proc *, void *, register_t *); +int ibcs2_sys_open(struct proc *, void *, register_t *); +int sys_close(struct proc *, void *, register_t *); +int ibcs2_sys_waitsys(struct proc *, void *, register_t *); +int ibcs2_sys_creat(struct proc *, void *, register_t *); +int sys_link(struct proc *, void *, register_t *); +int ibcs2_sys_unlink(struct proc *, void *, register_t *); +int ibcs2_sys_execv(struct proc *, void *, register_t *); +int ibcs2_sys_chdir(struct proc *, void *, register_t *); +int ibcs2_sys_time(struct proc *, void *, register_t *); +int ibcs2_sys_mknod(struct proc *, void *, register_t *); +int ibcs2_sys_chmod(struct proc *, void *, register_t *); +int ibcs2_sys_chown(struct proc *, void *, register_t *); +int sys_obreak(struct proc *, void *, register_t *); +int ibcs2_sys_stat(struct proc *, void *, register_t *); +int compat_43_sys_lseek(struct proc *, void *, register_t *); +int sys_getpid(struct proc *, void *, register_t *); +int ibcs2_sys_mount(struct proc *, void *, register_t *); +int ibcs2_sys_umount(struct proc *, void *, register_t *); +int ibcs2_sys_setuid(struct proc *, void *, register_t *); +int sys_getuid(struct proc *, void *, register_t *); +int ibcs2_sys_stime(struct proc *, void *, register_t *); +int ibcs2_sys_alarm(struct proc *, void *, register_t *); +int ibcs2_sys_fstat(struct proc *, void *, register_t *); +int ibcs2_sys_pause(struct proc *, void *, register_t *); +int ibcs2_sys_utime(struct proc *, void *, register_t *); +int ibcs2_sys_access(struct proc *, void *, register_t *); +int ibcs2_sys_nice(struct proc *, void *, register_t *); +int ibcs2_sys_statfs(struct proc *, void *, register_t *); +int sys_sync(struct proc *, void *, register_t *); +int ibcs2_sys_kill(struct proc *, void *, register_t *); +int ibcs2_sys_fstatfs(struct proc *, void *, register_t *); +int ibcs2_sys_pgrpsys(struct proc *, void *, register_t *); +int sys_dup(struct proc *, void *, register_t *); +int sys_opipe(struct proc *, void *, register_t *); +int ibcs2_sys_times(struct proc *, void *, register_t *); +int ibcs2_sys_plock(struct proc *, void *, register_t *); +int ibcs2_sys_setgid(struct proc *, void *, register_t *); +int sys_getgid(struct proc *, void *, register_t *); +int ibcs2_sys_sigsys(struct proc *, void *, register_t *); #ifdef SYSVMSG -int ibcs2_sys_msgsys __P((struct proc *, void *, register_t *)); +int ibcs2_sys_msgsys(struct proc *, void *, register_t *); #else #endif -int ibcs2_sys_sysi86 __P((struct proc *, void *, register_t *)); +int ibcs2_sys_sysi86(struct proc *, void *, register_t *); #ifdef SYSVSHM -int ibcs2_sys_shmsys __P((struct proc *, void *, register_t *)); +int ibcs2_sys_shmsys(struct proc *, void *, register_t *); #else #endif #ifdef SYSVSEM -int ibcs2_sys_semsys __P((struct proc *, void *, register_t *)); +int ibcs2_sys_semsys(struct proc *, void *, register_t *); #else #endif -int ibcs2_sys_ioctl __P((struct proc *, void *, register_t *)); -int ibcs2_sys_uadmin __P((struct proc *, void *, register_t *)); -int ibcs2_sys_utssys __P((struct proc *, void *, register_t *)); -int ibcs2_sys_execve __P((struct proc *, void *, register_t *)); -int sys_umask __P((struct proc *, void *, register_t *)); -int sys_chroot __P((struct proc *, void *, register_t *)); -int ibcs2_sys_fcntl __P((struct proc *, void *, register_t *)); -int ibcs2_sys_ulimit __P((struct proc *, void *, register_t *)); -int ibcs2_sys_rmdir __P((struct proc *, void *, register_t *)); -int ibcs2_sys_mkdir __P((struct proc *, void *, register_t *)); -int ibcs2_sys_getdents __P((struct proc *, void *, register_t *)); -int ibcs2_sys_sysfs __P((struct proc *, void *, register_t *)); -int ibcs2_sys_getmsg __P((struct proc *, void *, register_t *)); -int ibcs2_sys_putmsg __P((struct proc *, void *, register_t *)); -int sys_poll __P((struct proc *, void *, register_t *)); -int ibcs2_sys_symlink __P((struct proc *, void *, register_t *)); -int ibcs2_sys_lstat __P((struct proc *, void *, register_t *)); -int ibcs2_sys_readlink __P((struct proc *, void *, register_t *)); -int sys_sigreturn __P((struct proc *, void *, register_t *)); -int xenix_sys_rdchk __P((struct proc *, void *, register_t *)); -int xenix_sys_chsize __P((struct proc *, void *, register_t *)); -int xenix_sys_ftime __P((struct proc *, void *, register_t *)); -int xenix_sys_nap __P((struct proc *, void *, register_t *)); -int sys_select __P((struct proc *, void *, register_t *)); -int ibcs2_sys_eaccess __P((struct proc *, void *, register_t *)); -int ibcs2_sys_sigaction __P((struct proc *, void *, register_t *)); -int ibcs2_sys_sigprocmask __P((struct proc *, void *, register_t *)); -int ibcs2_sys_sigpending __P((struct proc *, void *, register_t *)); -int ibcs2_sys_sigsuspend __P((struct proc *, void *, register_t *)); -int ibcs2_sys_getgroups __P((struct proc *, void *, register_t *)); -int ibcs2_sys_setgroups __P((struct proc *, void *, register_t *)); -int ibcs2_sys_sysconf __P((struct proc *, void *, register_t *)); -int ibcs2_sys_pathconf __P((struct proc *, void *, register_t *)); -int ibcs2_sys_fpathconf __P((struct proc *, void *, register_t *)); -int ibcs2_sys_rename __P((struct proc *, void *, register_t *)); +int ibcs2_sys_ioctl(struct proc *, void *, register_t *); +int ibcs2_sys_uadmin(struct proc *, void *, register_t *); +int ibcs2_sys_utssys(struct proc *, void *, register_t *); +int ibcs2_sys_execve(struct proc *, void *, register_t *); +int sys_umask(struct proc *, void *, register_t *); +int sys_chroot(struct proc *, void *, register_t *); +int ibcs2_sys_fcntl(struct proc *, void *, register_t *); +int ibcs2_sys_ulimit(struct proc *, void *, register_t *); +int ibcs2_sys_rmdir(struct proc *, void *, register_t *); +int ibcs2_sys_mkdir(struct proc *, void *, register_t *); +int ibcs2_sys_getdents(struct proc *, void *, register_t *); +int ibcs2_sys_sysfs(struct proc *, void *, register_t *); +int ibcs2_sys_getmsg(struct proc *, void *, register_t *); +int ibcs2_sys_putmsg(struct proc *, void *, register_t *); +int sys_poll(struct proc *, void *, register_t *); +int ibcs2_sys_symlink(struct proc *, void *, register_t *); +int ibcs2_sys_lstat(struct proc *, void *, register_t *); +int ibcs2_sys_readlink(struct proc *, void *, register_t *); +int sys_sigreturn(struct proc *, void *, register_t *); +int xenix_sys_rdchk(struct proc *, void *, register_t *); +int xenix_sys_chsize(struct proc *, void *, register_t *); +int xenix_sys_ftime(struct proc *, void *, register_t *); +int xenix_sys_nap(struct proc *, void *, register_t *); +int sys_select(struct proc *, void *, register_t *); +int ibcs2_sys_eaccess(struct proc *, void *, register_t *); +int ibcs2_sys_sigaction(struct proc *, void *, register_t *); +int ibcs2_sys_sigprocmask(struct proc *, void *, register_t *); +int ibcs2_sys_sigpending(struct proc *, void *, register_t *); +int ibcs2_sys_sigsuspend(struct proc *, void *, register_t *); +int ibcs2_sys_getgroups(struct proc *, void *, register_t *); +int ibcs2_sys_setgroups(struct proc *, void *, register_t *); +int ibcs2_sys_sysconf(struct proc *, void *, register_t *); +int ibcs2_sys_pathconf(struct proc *, void *, register_t *); +int ibcs2_sys_fpathconf(struct proc *, void *, register_t *); +int ibcs2_sys_rename(struct proc *, void *, register_t *); diff --git a/sys/compat/linux/linux_blkio.c b/sys/compat/linux/linux_blkio.c index 321afe91058..6d2eff284bc 100644 --- a/sys/compat/linux/linux_blkio.c +++ b/sys/compat/linux/linux_blkio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_blkio.c,v 1.4 2002/02/13 19:08:06 art Exp $ */ +/* $OpenBSD: linux_blkio.c,v 1.5 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_blkio.c,v 1.3 2001/01/18 17:48:04 tv Exp $ */ /* @@ -64,7 +64,7 @@ linux_ioctl_blkio(struct proc *p, struct linux_sys_ioctl_args *uap, int error; struct filedesc *fdp; struct file *fp; - int (*ioctlf) __P((struct file *, u_long, caddr_t, struct proc *)); + int (*ioctlf)(struct file *, u_long, caddr_t, struct proc *); struct partinfo partp; struct disklabel label; diff --git a/sys/compat/linux/linux_cdrom.c b/sys/compat/linux/linux_cdrom.c index 21d1c28adac..49979d2640a 100644 --- a/sys/compat/linux/linux_cdrom.c +++ b/sys/compat/linux/linux_cdrom.c @@ -1,5 +1,5 @@ -/* $OpenBSD: linux_cdrom.c,v 1.7 2002/02/13 20:43:42 jasoni Exp $ */ +/* $OpenBSD: linux_cdrom.c,v 1.8 2002/03/14 01:26:50 millert Exp $ */ /* * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> * All rights reserved. @@ -48,8 +48,8 @@ #include <compat/linux/linux_util.h> #include <compat/linux/linux_cdrom.h> -void bsd_addr_to_linux_addr __P((union msf_lba *bsd, - union linux_cdrom_addr *linux, int format)); +void bsd_addr_to_linux_addr(union msf_lba *bsd, + union linux_cdrom_addr *linux, int format); void bsd_addr_to_linux_addr(bsd, linux, format) diff --git a/sys/compat/linux/linux_exec.c b/sys/compat/linux/linux_exec.c index c05e8e0999e..457f4294e12 100644 --- a/sys/compat/linux/linux_exec.c +++ b/sys/compat/linux/linux_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_exec.c,v 1.19 2001/11/15 06:22:30 art Exp $ */ +/* $OpenBSD: linux_exec.c,v 1.20 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_exec.c,v 1.13 1996/04/05 00:01:10 christos Exp $ */ /* @@ -59,8 +59,8 @@ #include <compat/linux/linux_util.h> #include <compat/linux/linux_exec.h> -static void *linux_aout_copyargs __P((struct exec_package *, - struct ps_strings *, void *, void *)); +static void *linux_aout_copyargs(struct exec_package *, + struct ps_strings *, void *, void *); #define LINUX_AOUT_AUX_ARGSIZ 2 #define LINUX_ELF_AUX_ARGSIZ (sizeof(AuxInfo) * 8 / sizeof(char *)) @@ -74,10 +74,10 @@ extern struct sysent linux_sysent[]; extern char *linux_syscallnames[]; #endif -int exec_linux_aout_prep_zmagic __P((struct proc *, struct exec_package *)); -int exec_linux_aout_prep_nmagic __P((struct proc *, struct exec_package *)); -int exec_linux_aout_prep_omagic __P((struct proc *, struct exec_package *)); -int exec_linux_aout_prep_qmagic __P((struct proc *, struct exec_package *)); +int exec_linux_aout_prep_zmagic(struct proc *, struct exec_package *); +int exec_linux_aout_prep_nmagic(struct proc *, struct exec_package *); +int exec_linux_aout_prep_omagic(struct proc *, struct exec_package *); +int exec_linux_aout_prep_qmagic(struct proc *, struct exec_package *); struct emul emul_linux_aout = { "linux", diff --git a/sys/compat/linux/linux_exec.h b/sys/compat/linux/linux_exec.h index a5e20e8d282..a8d60a7ca29 100644 --- a/sys/compat/linux/linux_exec.h +++ b/sys/compat/linux/linux_exec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_exec.h,v 1.3 1998/02/22 01:07:57 niklas Exp $ */ +/* $OpenBSD: linux_exec.h,v 1.4 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_exec.h,v 1.5 1995/10/07 06:27:01 mycroft Exp $ */ /* @@ -66,10 +66,10 @@ #define LINUX_N_BSSADDR(x,m) (LINUX_N_DATADDR(x,m) + (x).a_data) -int exec_linux_aout_makecmds __P((struct proc *, struct exec_package *)); -int exec_linux_elf_makecmds __P((struct proc *, struct exec_package *)); +int exec_linux_aout_makecmds(struct proc *, struct exec_package *); +int exec_linux_elf_makecmds(struct proc *, struct exec_package *); -int linux_elf_probe __P((struct proc *, struct exec_package *, char *, - u_long *, u_int8_t *)); +int linux_elf_probe(struct proc *, struct exec_package *, char *, + u_long *, u_int8_t *); #endif /* !_LINUX_EXEC_H */ diff --git a/sys/compat/linux/linux_fdio.c b/sys/compat/linux/linux_fdio.c index cb711c9e13e..46bd15290db 100644 --- a/sys/compat/linux/linux_fdio.c +++ b/sys/compat/linux/linux_fdio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_fdio.c,v 1.5 2002/02/13 19:08:06 art Exp $ */ +/* $OpenBSD: linux_fdio.c,v 1.6 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_fdio.c,v 1.1 2000/12/10 14:12:16 fvdl Exp $ */ /* @@ -66,7 +66,7 @@ linux_ioctl_fdio(struct proc *p, struct linux_sys_ioctl_args *uap, struct filedesc *fdp; struct file *fp; int error; - int (*ioctlf) __P((struct file *, u_long, caddr_t, struct proc *)); + int (*ioctlf)(struct file *, u_long, caddr_t, struct proc *); u_long com; struct fd_type fparams; struct linux_floppy_struct lflop; diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index cd20ed709f8..ac982ea3b6c 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_file.c,v 1.20 2002/02/13 19:08:06 art Exp $ */ +/* $OpenBSD: linux_file.c,v 1.21 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_file.c,v 1.15 1996/05/20 01:59:09 fvdl Exp $ */ /* @@ -59,12 +59,12 @@ #include <machine/linux_machdep.h> -static int linux_to_bsd_ioflags __P((int)); -static int bsd_to_linux_ioflags __P((int)); -static void bsd_to_linux_flock __P((struct flock *, struct linux_flock *)); -static void linux_to_bsd_flock __P((struct linux_flock *, struct flock *)); -static void bsd_to_linux_stat __P((struct stat *, struct linux_stat *)); -static int linux_stat1 __P((struct proc *, void *, register_t *, int)); +static int linux_to_bsd_ioflags(int); +static int bsd_to_linux_ioflags(int); +static void bsd_to_linux_flock(struct flock *, struct linux_flock *); +static void linux_to_bsd_flock(struct linux_flock *, struct flock *); +static void bsd_to_linux_stat(struct stat *, struct linux_stat *); +static int linux_stat1(struct proc *, void *, register_t *, int); /* @@ -320,7 +320,7 @@ linux_sys_fcntl(p, v, retval) struct vattr va; long pgid; struct pgrp *pgrp; - struct tty *tp, *(*d_tty) __P((dev_t)); + struct tty *tp, *(*d_tty)(dev_t); fd = SCARG(uap, fd); cmd = SCARG(uap, cmd); diff --git a/sys/compat/linux/linux_file64.c b/sys/compat/linux/linux_file64.c index 3edb616ad7b..4eb0b2b1ea3 100644 --- a/sys/compat/linux/linux_file64.c +++ b/sys/compat/linux/linux_file64.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_file64.c,v 1.2 2002/02/04 20:04:52 provos Exp $ */ +/* $OpenBSD: linux_file64.c,v 1.3 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_file64.c,v 1.2 2000/12/12 22:24:56 jdolecek Exp $ */ /*- @@ -67,10 +67,10 @@ #include <machine/linux_machdep.h> -void bsd_to_linux_flock64 __P((struct flock *, struct linux_flock64 *)); -void linux_to_bsd_flock64 __P((struct linux_flock64 *, struct flock *)); -static void bsd_to_linux_stat __P((struct stat *, struct linux_stat64 *)); -static int linux_do_stat64 __P((struct proc *, void *, register_t *, int)); +void bsd_to_linux_flock64(struct flock *, struct linux_flock64 *); +void linux_to_bsd_flock64(struct linux_flock64 *, struct flock *); +static void bsd_to_linux_stat(struct stat *, struct linux_stat64 *); +static int linux_do_stat64(struct proc *, void *, register_t *, int); /* * Convert a OpenBSD stat structure to a Linux stat structure. diff --git a/sys/compat/linux/linux_getcwd.c b/sys/compat/linux/linux_getcwd.c index 93a032df3e9..1f799433c4e 100644 --- a/sys/compat/linux/linux_getcwd.c +++ b/sys/compat/linux/linux_getcwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_getcwd.c,v 1.2 2001/05/16 12:50:21 ho Exp $ */ +/* $OpenBSD: linux_getcwd.c,v 1.3 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: vfs_getcwd.c,v 1.3.2.3 1999/07/11 10:24:09 sommerfeld Exp $ */ /*- @@ -47,7 +47,7 @@ #include <sys/vnode.h> #include <sys/mount.h> #include <sys/proc.h> -int proc_isunder __P((struct proc *, struct proc*)); /* missing from proc.h */ +int proc_isunder(struct proc *, struct proc*); /* missing from proc.h */ #include <sys/uio.h> #include <sys/malloc.h> #include <sys/dirent.h> @@ -63,17 +63,17 @@ int proc_isunder __P((struct proc *, struct proc*)); /* missing from proc.h */ #include <machine/linux_machdep.h> static int -linux_getcwd_scandir __P((struct vnode **, struct vnode **, - char **, char *, struct proc *)); +linux_getcwd_scandir(struct vnode **, struct vnode **, + char **, char *, struct proc *); static int -linux_getcwd_getcache __P((struct vnode **, struct vnode **, - char **, char *)); +linux_getcwd_getcache(struct vnode **, struct vnode **, + char **, char *); static int -linux_getcwd_common __P((struct vnode *, struct vnode *, - char **, char *, int, int, struct proc *)); +linux_getcwd_common(struct vnode *, struct vnode *, + char **, char *, int, int, struct proc *); static int -linux_vn_isunder __P((struct vnode *, struct vnode *, struct proc *)); +linux_vn_isunder(struct vnode *, struct vnode *, struct proc *); #define DIRENT_MINSIZE (sizeof(struct dirent) - (MAXNAMLEN+1) + 4) diff --git a/sys/compat/linux/linux_hdio.c b/sys/compat/linux/linux_hdio.c index 6ec57f064e6..8e4704ccb40 100644 --- a/sys/compat/linux/linux_hdio.c +++ b/sys/compat/linux/linux_hdio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_hdio.c,v 1.4 2002/02/13 19:08:06 art Exp $ */ +/* $OpenBSD: linux_hdio.c,v 1.5 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_hdio.c,v 1.1 2000/12/10 14:12:17 fvdl Exp $ */ /* @@ -68,7 +68,7 @@ linux_ioctl_hdio(struct proc *p, struct linux_sys_ioctl_args *uap, caddr_t sg; struct filedesc *fdp; struct file *fp; - int (*ioctlf) __P((struct file *, u_long, caddr_t, struct proc *)); + int (*ioctlf)(struct file *, u_long, caddr_t, struct proc *); struct ataparams *atap, ata; struct atareq req; struct disklabel label, *labp; diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h index 1b390cd957f..b7e2aded030 100644 --- a/sys/compat/linux/linux_ioctl.h +++ b/sys/compat/linux/linux_ioctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_ioctl.h,v 1.6 2001/05/24 06:00:09 jasoni Exp $ */ +/* $OpenBSD: linux_ioctl.h,v 1.7 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_ioctl.h,v 1.4 1996/04/05 00:01:36 christos Exp $ */ /* @@ -79,15 +79,15 @@ #define LINUX_IOCGROUP(x) _LINUX_IOC_TYPE(x) struct linux_sys_ioctl_args; -int linux_ioctl_audio __P((struct proc *, struct linux_sys_ioctl_args *, - register_t *)); -int linux_machdepioctl __P((struct proc *, void *, register_t *)); -int linux_ioctl_termios __P((struct proc *, void *, register_t *)); -int linux_ioctl_cdrom __P((struct proc *, void *, register_t *)); -int linux_ioctl_socket __P((struct proc *, void *, register_t *)); -int linux_ioctl_hdio __P((struct proc *, struct linux_sys_ioctl_args *, - register_t *)); -int linux_ioctl_fdio __P((struct proc *, struct linux_sys_ioctl_args *, - register_t *)); -int linux_ioctl_blkio __P((struct proc *, struct linux_sys_ioctl_args *, - register_t *)); +int linux_ioctl_audio(struct proc *, struct linux_sys_ioctl_args *, + register_t *); +int linux_machdepioctl(struct proc *, void *, register_t *); +int linux_ioctl_termios(struct proc *, void *, register_t *); +int linux_ioctl_cdrom(struct proc *, void *, register_t *); +int linux_ioctl_socket(struct proc *, void *, register_t *); +int linux_ioctl_hdio(struct proc *, struct linux_sys_ioctl_args *, + register_t *); +int linux_ioctl_fdio(struct proc *, struct linux_sys_ioctl_args *, + register_t *); +int linux_ioctl_blkio(struct proc *, struct linux_sys_ioctl_args *, + register_t *); diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c index cc2f3f87170..67bf034dd4c 100644 --- a/sys/compat/linux/linux_ipc.c +++ b/sys/compat/linux/linux_ipc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_ipc.c,v 1.7 2001/05/24 06:00:09 jasoni Exp $ */ +/* $OpenBSD: linux_ipc.c,v 1.8 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_ipc.c,v 1.10 1996/04/05 00:01:44 christos Exp $ */ /* @@ -70,34 +70,34 @@ */ #ifdef SYSVSEM -int linux_semop __P((struct proc *, void *, register_t *)); -int linux_semget __P((struct proc *, void *, register_t *)); -int linux_semctl __P((struct proc *, void *, register_t *)); -void bsd_to_linux_semid_ds __P((struct semid_ds *, struct linux_semid_ds *)); -void linux_to_bsd_semid_ds __P((struct linux_semid_ds *, struct semid_ds *)); +int linux_semop(struct proc *, void *, register_t *); +int linux_semget(struct proc *, void *, register_t *); +int linux_semctl(struct proc *, void *, register_t *); +void bsd_to_linux_semid_ds(struct semid_ds *, struct linux_semid_ds *); +void linux_to_bsd_semid_ds(struct linux_semid_ds *, struct semid_ds *); #endif #ifdef SYSVMSG -int linux_msgsnd __P((struct proc *, void *, register_t *)); -int linux_msgrcv __P((struct proc *, void *, register_t *)); -int linux_msgget __P((struct proc *, void *, register_t *)); -int linux_msgctl __P((struct proc *, void *, register_t *)); -void linux_to_bsd_msqid_ds __P((struct linux_msqid_ds *, struct msqid_ds *)); -void bsd_to_linux_msqid_ds __P((struct msqid_ds *, struct linux_msqid_ds *)); +int linux_msgsnd(struct proc *, void *, register_t *); +int linux_msgrcv(struct proc *, void *, register_t *); +int linux_msgget(struct proc *, void *, register_t *); +int linux_msgctl(struct proc *, void *, register_t *); +void linux_to_bsd_msqid_ds(struct linux_msqid_ds *, struct msqid_ds *); +void bsd_to_linux_msqid_ds(struct msqid_ds *, struct linux_msqid_ds *); #endif #ifdef SYSVSHM -int linux_shmat __P((struct proc *, void *, register_t *)); -int linux_shmdt __P((struct proc *, void *, register_t *)); -int linux_shmget __P((struct proc *, void *, register_t *)); -int linux_shmctl __P((struct proc *, void *, register_t *)); -void linux_to_bsd_shmid_ds __P((struct linux_shmid_ds *, struct shmid_ds *)); -void bsd_to_linux_shmid_ds __P((struct shmid_ds *, struct linux_shmid_ds *)); +int linux_shmat(struct proc *, void *, register_t *); +int linux_shmdt(struct proc *, void *, register_t *); +int linux_shmget(struct proc *, void *, register_t *); +int linux_shmctl(struct proc *, void *, register_t *); +void linux_to_bsd_shmid_ds(struct linux_shmid_ds *, struct shmid_ds *); +void bsd_to_linux_shmid_ds(struct shmid_ds *, struct linux_shmid_ds *); #endif #if defined(SYSVMSG) || defined(SYSVSEM) || defined(SYSVSHM) -void linux_to_bsd_ipc_perm __P((struct linux_ipc_perm *, struct ipc_perm *)); -void bsd_to_linux_ipc_perm __P((struct ipc_perm *, struct linux_ipc_perm *)); +void linux_to_bsd_ipc_perm(struct linux_ipc_perm *, struct ipc_perm *); +void bsd_to_linux_ipc_perm(struct ipc_perm *, struct linux_ipc_perm *); #endif int diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 15072100460..0d72112a04a 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.c,v 1.40 2002/02/12 18:41:20 art Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.41 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /* @@ -81,9 +81,9 @@ #include <compat/common/compat_dir.h> /* linux_misc.c */ -static void bsd_to_linux_statfs __P((struct statfs *, struct linux_statfs *)); -int linux_select1 __P((struct proc *, register_t *, int, fd_set *, - fd_set *, fd_set *, struct timeval *)); +static void bsd_to_linux_statfs(struct statfs *, struct linux_statfs *); +int linux_select1(struct proc *, register_t *, int, fd_set *, + fd_set *, fd_set *, struct timeval *); /* * The information on a terminated (or stopped) process needs @@ -935,7 +935,7 @@ linux_sys_readdir(p, v, retval) * * Note that this doesn't handle union-mounted filesystems. */ -int linux_readdir_callback __P((void *, struct dirent *, off_t)); +int linux_readdir_callback(void *, struct dirent *, off_t); struct linux_readdir_callback_args { caddr_t outp; diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index 095d6769e6a..3fbeb403251 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.h,v 1.1 2001/04/02 21:43:11 niklas Exp $ */ +/* $OpenBSD: linux_misc.h,v 1.2 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_misc.h,v 1.3 1999/05/13 00:31:57 thorpej Exp $ */ /*- @@ -49,9 +49,9 @@ #ifdef _KERNEL __BEGIN_DECLS -void bsd_to_linux_wstat __P((int *)); -int linux_select1 __P((struct proc *, register_t *, int, fd_set *, fd_set *, - fd_set *, struct timeval *)); +void bsd_to_linux_wstat(int *); +int linux_select1(struct proc *, register_t *, int, fd_set *, fd_set *, + fd_set *, struct timeval *); __END_DECLS #endif /* !_KERNEL */ diff --git a/sys/compat/linux/linux_resource.c b/sys/compat/linux/linux_resource.c index 37e3d2a8eeb..293b0a954a5 100644 --- a/sys/compat/linux/linux_resource.c +++ b/sys/compat/linux/linux_resource.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_resource.c,v 1.2 2000/06/16 21:47:12 provos Exp $ */ +/* $OpenBSD: linux_resource.c,v 1.3 2002/03/14 01:26:50 millert Exp $ */ /* * Copyright (c) 2000 Niklas Hallqvist @@ -48,8 +48,8 @@ #include <compat/linux/linux_syscallargs.h> /* linux_resource.c */ -int linux_to_bsd_rlimit __P((u_int)); -int linux_dogetrlimit __P((struct proc *, void *, register_t *, rlim_t)); +int linux_to_bsd_rlimit(u_int); +int linux_dogetrlimit(struct proc *, void *, register_t *, rlim_t); static u_int linux_to_bsd_rlimit_map[] = { RLIMIT_CPU, diff --git a/sys/compat/linux/linux_signal.h b/sys/compat/linux/linux_signal.h index 29648cd53d6..97288b738b7 100644 --- a/sys/compat/linux/linux_signal.h +++ b/sys/compat/linux/linux_signal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_signal.h,v 1.7 2001/08/09 14:15:22 niklas Exp $ */ +/* $OpenBSD: linux_signal.h,v 1.8 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_signal.h,v 1.4 1995/08/27 20:51:51 fvdl Exp $ */ /* @@ -82,19 +82,19 @@ typedef struct { u_long sig[LINUX__NSIG_WORDS]; } linux_sigset_t; -typedef void (*linux_handler_t) __P((int)); +typedef void (*linux_handler_t)(int); struct linux_old_sigaction { linux_handler_t sa__handler; linux_old_sigset_t sa_mask; u_long sa_flags; - void (*sa_restorer) __P((void)); + void (*sa_restorer)(void); }; struct linux_sigaction { linux_handler_t sa__handler; u_long sa_flags; - void (*sa_restorer) __P((void)); + void (*sa_restorer)(void); linux_sigset_t sa_mask; }; @@ -121,26 +121,26 @@ struct linux_sigaltstack { extern int bsd_to_linux_sig[]; extern int linux_to_bsd_sig[]; -void linux_old_to_bsd_sigset __P((const linux_old_sigset_t *, sigset_t *)); -void bsd_to_linux_old_sigset __P((const sigset_t *, linux_old_sigset_t *)); +void linux_old_to_bsd_sigset(const linux_old_sigset_t *, sigset_t *); +void bsd_to_linux_old_sigset(const sigset_t *, linux_old_sigset_t *); -void linux_old_extra_to_bsd_sigset __P((const linux_old_sigset_t *, - const unsigned long *, sigset_t *)); -void bsd_to_linux_old_extra_sigset __P((const sigset_t *, - linux_old_sigset_t *, unsigned long *)); +void linux_old_extra_to_bsd_sigset(const linux_old_sigset_t *, + const unsigned long *, sigset_t *); +void bsd_to_linux_old_extra_sigset(const sigset_t *, + linux_old_sigset_t *, unsigned long *); -void linux_to_bsd_sigset __P((const linux_sigset_t *, sigset_t *)); -void bsd_to_linux_sigset __P((const sigset_t *, linux_sigset_t *)); +void linux_to_bsd_sigset(const linux_sigset_t *, sigset_t *); +void bsd_to_linux_sigset(const sigset_t *, linux_sigset_t *); -void linux_old_to_bsd_sigaction __P((struct linux_old_sigaction *, - struct sigaction *)); -void bsd_to_linux_old_sigaction __P((struct sigaction *, - struct linux_old_sigaction *)); +void linux_old_to_bsd_sigaction(struct linux_old_sigaction *, + struct sigaction *); +void bsd_to_linux_old_sigaction(struct sigaction *, + struct linux_old_sigaction *); -void linux_to_bsd_sigaction __P((struct linux_sigaction *, - struct sigaction *)); -void bsd_to_linux_sigaction __P((struct sigaction *, - struct linux_sigaction *)); +void linux_to_bsd_sigaction(struct linux_sigaction *, + struct sigaction *); +void bsd_to_linux_sigaction(struct sigaction *, + struct linux_sigaction *); int linux_to_bsd_signal (int, int *); int bsd_to_linux_signal (int, int *); diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index 12d9244a4c8..db2c4eec904 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_socket.c,v 1.22 2002/02/13 20:43:42 jasoni Exp $ */ +/* $OpenBSD: linux_socket.c,v 1.23 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */ /* @@ -76,33 +76,33 @@ * are copied to structures. */ -int linux_to_bsd_domain __P((int)); -int linux_socket __P((struct proc *, void *, register_t *)); -int linux_bind __P((struct proc *, void *, register_t *)); -int linux_connect __P((struct proc *, void *, register_t *)); -int linux_listen __P((struct proc *, void *, register_t *)); -int linux_accept __P((struct proc *, void *, register_t *)); -int linux_getsockname __P((struct proc *, void *, register_t *)); -int linux_getpeername __P((struct proc *, void *, register_t *)); -int linux_socketpair __P((struct proc *, void *, register_t *)); -int linux_send __P((struct proc *, void *, register_t *)); -int linux_recv __P((struct proc *, void *, register_t *)); -int linux_sendto __P((struct proc *, void *, register_t *)); -int linux_recvfrom __P((struct proc *, void *, register_t *)); -int linux_shutdown __P((struct proc *, void *, register_t *)); -int linux_to_bsd_sopt_level __P((int)); -int linux_to_bsd_so_sockopt __P((int)); -int linux_to_bsd_ip_sockopt __P((int)); -int linux_to_bsd_tcp_sockopt __P((int)); -int linux_to_bsd_udp_sockopt __P((int)); -int linux_setsockopt __P((struct proc *, void *, register_t *)); -int linux_getsockopt __P((struct proc *, void *, register_t *)); -int linux_recvmsg __P((struct proc *, void *, register_t *)); -int linux_sendmsg __P((struct proc *, void *, register_t *)); - -int linux_check_hdrincl __P((struct proc *, int, register_t *)); -int linux_sendto_hdrincl __P((struct proc *, struct sys_sendto_args *, - register_t *)); +int linux_to_bsd_domain(int); +int linux_socket(struct proc *, void *, register_t *); +int linux_bind(struct proc *, void *, register_t *); +int linux_connect(struct proc *, void *, register_t *); +int linux_listen(struct proc *, void *, register_t *); +int linux_accept(struct proc *, void *, register_t *); +int linux_getsockname(struct proc *, void *, register_t *); +int linux_getpeername(struct proc *, void *, register_t *); +int linux_socketpair(struct proc *, void *, register_t *); +int linux_send(struct proc *, void *, register_t *); +int linux_recv(struct proc *, void *, register_t *); +int linux_sendto(struct proc *, void *, register_t *); +int linux_recvfrom(struct proc *, void *, register_t *); +int linux_shutdown(struct proc *, void *, register_t *); +int linux_to_bsd_sopt_level(int); +int linux_to_bsd_so_sockopt(int); +int linux_to_bsd_ip_sockopt(int); +int linux_to_bsd_tcp_sockopt(int); +int linux_to_bsd_udp_sockopt(int); +int linux_setsockopt(struct proc *, void *, register_t *); +int linux_getsockopt(struct proc *, void *, register_t *); +int linux_recvmsg(struct proc *, void *, register_t *); +int linux_sendmsg(struct proc *, void *, register_t *); + +int linux_check_hdrincl(struct proc *, int, register_t *); +int linux_sendto_hdrincl(struct proc *, struct sys_sendto_args *, + register_t *); /* * Convert between Linux and BSD socket domain values @@ -1003,7 +1003,7 @@ linux_ioctl_socket(p, v, retval) struct file *fp; struct filedesc *fdp; struct vnode *vp; - int (*ioctlf) __P((struct file *, u_long, caddr_t, struct proc *)); + int (*ioctlf)(struct file *, u_long, caddr_t, struct proc *); struct ioctl_pt pt; int error = 0, isdev = 0, dosys = 1; diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h index 42438b81615..df2460079ef 100644 --- a/sys/compat/linux/linux_syscallargs.h +++ b/sys/compat/linux/linux_syscallargs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_syscallargs.h,v 1.35 2002/03/14 00:44:20 miod Exp $ */ +/* $OpenBSD: linux_syscallargs.h,v 1.36 2002/03/14 01:26:50 millert Exp $ */ /* * System call argument lists. @@ -527,240 +527,240 @@ struct linux_sys_fcntl64_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 *)); -int sys_write __P((struct proc *, void *, register_t *)); -int linux_sys_open __P((struct proc *, void *, register_t *)); -int sys_close __P((struct proc *, void *, register_t *)); -int linux_sys_waitpid __P((struct proc *, void *, register_t *)); -int linux_sys_creat __P((struct proc *, void *, register_t *)); -int sys_link __P((struct proc *, void *, register_t *)); -int linux_sys_unlink __P((struct proc *, void *, register_t *)); -int linux_sys_execve __P((struct proc *, void *, register_t *)); -int linux_sys_chdir __P((struct proc *, void *, register_t *)); -int linux_sys_time __P((struct proc *, void *, register_t *)); -int linux_sys_mknod __P((struct proc *, void *, register_t *)); -int linux_sys_chmod __P((struct proc *, void *, register_t *)); -int linux_sys_lchown16 __P((struct proc *, void *, register_t *)); -int linux_sys_break __P((struct proc *, void *, register_t *)); -int linux_sys_ostat __P((struct proc *, void *, register_t *)); -int compat_43_sys_lseek __P((struct proc *, void *, register_t *)); -int sys_getpid __P((struct proc *, void *, register_t *)); -int linux_sys_mount __P((struct proc *, void *, register_t *)); -int linux_sys_umount __P((struct proc *, void *, register_t *)); -int sys_setuid __P((struct proc *, void *, register_t *)); -int sys_getuid __P((struct proc *, void *, register_t *)); -int linux_sys_stime __P((struct proc *, void *, register_t *)); +int sys_nosys(struct proc *, void *, register_t *); +int sys_exit(struct proc *, void *, register_t *); +int sys_fork(struct proc *, void *, register_t *); +int sys_read(struct proc *, void *, register_t *); +int sys_write(struct proc *, void *, register_t *); +int linux_sys_open(struct proc *, void *, register_t *); +int sys_close(struct proc *, void *, register_t *); +int linux_sys_waitpid(struct proc *, void *, register_t *); +int linux_sys_creat(struct proc *, void *, register_t *); +int sys_link(struct proc *, void *, register_t *); +int linux_sys_unlink(struct proc *, void *, register_t *); +int linux_sys_execve(struct proc *, void *, register_t *); +int linux_sys_chdir(struct proc *, void *, register_t *); +int linux_sys_time(struct proc *, void *, register_t *); +int linux_sys_mknod(struct proc *, void *, register_t *); +int linux_sys_chmod(struct proc *, void *, register_t *); +int linux_sys_lchown16(struct proc *, void *, register_t *); +int linux_sys_break(struct proc *, void *, register_t *); +int linux_sys_ostat(struct proc *, void *, register_t *); +int compat_43_sys_lseek(struct proc *, void *, register_t *); +int sys_getpid(struct proc *, void *, register_t *); +int linux_sys_mount(struct proc *, void *, register_t *); +int linux_sys_umount(struct proc *, void *, register_t *); +int sys_setuid(struct proc *, void *, register_t *); +int sys_getuid(struct proc *, void *, register_t *); +int linux_sys_stime(struct proc *, void *, register_t *); #ifdef PTRACE -int linux_sys_ptrace __P((struct proc *, void *, register_t *)); +int linux_sys_ptrace(struct proc *, void *, register_t *); #else #endif -int linux_sys_alarm __P((struct proc *, void *, register_t *)); -int linux_sys_ofstat __P((struct proc *, void *, register_t *)); -int linux_sys_pause __P((struct proc *, void *, register_t *)); -int linux_sys_utime __P((struct proc *, void *, register_t *)); -int linux_sys_stty __P((struct proc *, void *, register_t *)); -int linux_sys_gtty __P((struct proc *, void *, register_t *)); -int linux_sys_access __P((struct proc *, void *, register_t *)); -int linux_sys_nice __P((struct proc *, void *, register_t *)); -int linux_sys_ftime __P((struct proc *, void *, register_t *)); -int sys_sync __P((struct proc *, void *, register_t *)); -int linux_sys_kill __P((struct proc *, void *, register_t *)); -int linux_sys_rename __P((struct proc *, void *, register_t *)); -int linux_sys_mkdir __P((struct proc *, void *, register_t *)); -int linux_sys_rmdir __P((struct proc *, void *, register_t *)); -int sys_dup __P((struct proc *, void *, register_t *)); -int linux_sys_pipe __P((struct proc *, void *, register_t *)); -int linux_sys_times __P((struct proc *, void *, register_t *)); -int linux_sys_prof __P((struct proc *, void *, register_t *)); -int linux_sys_brk __P((struct proc *, void *, register_t *)); -int sys_setgid __P((struct proc *, void *, register_t *)); -int sys_getgid __P((struct proc *, void *, register_t *)); -int linux_sys_signal __P((struct proc *, void *, register_t *)); -int sys_geteuid __P((struct proc *, void *, register_t *)); -int sys_getegid __P((struct proc *, void *, register_t *)); -int sys_acct __P((struct proc *, void *, register_t *)); -int linux_sys_phys __P((struct proc *, void *, register_t *)); -int linux_sys_lock __P((struct proc *, void *, register_t *)); -int linux_sys_ioctl __P((struct proc *, void *, register_t *)); -int linux_sys_fcntl __P((struct proc *, void *, register_t *)); -int linux_sys_mpx __P((struct proc *, void *, register_t *)); -int sys_setpgid __P((struct proc *, void *, register_t *)); -int linux_sys_ulimit __P((struct proc *, void *, register_t *)); -int linux_sys_oldolduname __P((struct proc *, void *, register_t *)); -int sys_umask __P((struct proc *, void *, register_t *)); -int sys_chroot __P((struct proc *, void *, register_t *)); -int linux_sys_ustat __P((struct proc *, void *, register_t *)); -int sys_dup2 __P((struct proc *, void *, register_t *)); -int sys_getppid __P((struct proc *, void *, register_t *)); -int sys_getpgrp __P((struct proc *, void *, register_t *)); -int sys_setsid __P((struct proc *, void *, register_t *)); -int linux_sys_sigaction __P((struct proc *, void *, register_t *)); -int linux_sys_siggetmask __P((struct proc *, void *, register_t *)); -int linux_sys_sigsetmask __P((struct proc *, void *, register_t *)); -int linux_sys_setreuid16 __P((struct proc *, void *, register_t *)); -int linux_sys_setregid16 __P((struct proc *, void *, register_t *)); -int linux_sys_sigsuspend __P((struct proc *, void *, register_t *)); -int linux_sys_sigpending __P((struct proc *, void *, register_t *)); -int compat_43_sys_sethostname __P((struct proc *, void *, register_t *)); -int linux_sys_setrlimit __P((struct proc *, void *, register_t *)); -int linux_sys_getrlimit __P((struct proc *, void *, register_t *)); -int sys_getrusage __P((struct proc *, void *, register_t *)); -int sys_gettimeofday __P((struct proc *, void *, register_t *)); -int sys_settimeofday __P((struct proc *, void *, register_t *)); -int sys_getgroups __P((struct proc *, void *, register_t *)); -int sys_setgroups __P((struct proc *, void *, register_t *)); -int linux_sys_oldselect __P((struct proc *, void *, register_t *)); -int linux_sys_symlink __P((struct proc *, void *, register_t *)); -int compat_43_sys_lstat __P((struct proc *, void *, register_t *)); -int linux_sys_readlink __P((struct proc *, void *, register_t *)); -int linux_sys_uselib __P((struct proc *, void *, register_t *)); -int sys_swapon __P((struct proc *, void *, register_t *)); -int sys_reboot __P((struct proc *, void *, register_t *)); -int linux_sys_readdir __P((struct proc *, void *, register_t *)); -int linux_sys_mmap __P((struct proc *, void *, register_t *)); -int sys_munmap __P((struct proc *, void *, register_t *)); -int linux_sys_truncate __P((struct proc *, void *, register_t *)); -int compat_43_sys_ftruncate __P((struct proc *, void *, register_t *)); -int sys_fchmod __P((struct proc *, void *, register_t *)); -int linux_sys_fchown16 __P((struct proc *, void *, register_t *)); -int sys_getpriority __P((struct proc *, void *, register_t *)); -int sys_setpriority __P((struct proc *, void *, register_t *)); -int sys_profil __P((struct proc *, void *, register_t *)); -int linux_sys_statfs __P((struct proc *, void *, register_t *)); -int linux_sys_fstatfs __P((struct proc *, void *, register_t *)); +int linux_sys_alarm(struct proc *, void *, register_t *); +int linux_sys_ofstat(struct proc *, void *, register_t *); +int linux_sys_pause(struct proc *, void *, register_t *); +int linux_sys_utime(struct proc *, void *, register_t *); +int linux_sys_stty(struct proc *, void *, register_t *); +int linux_sys_gtty(struct proc *, void *, register_t *); +int linux_sys_access(struct proc *, void *, register_t *); +int linux_sys_nice(struct proc *, void *, register_t *); +int linux_sys_ftime(struct proc *, void *, register_t *); +int sys_sync(struct proc *, void *, register_t *); +int linux_sys_kill(struct proc *, void *, register_t *); +int linux_sys_rename(struct proc *, void *, register_t *); +int linux_sys_mkdir(struct proc *, void *, register_t *); +int linux_sys_rmdir(struct proc *, void *, register_t *); +int sys_dup(struct proc *, void *, register_t *); +int linux_sys_pipe(struct proc *, void *, register_t *); +int linux_sys_times(struct proc *, void *, register_t *); +int linux_sys_prof(struct proc *, void *, register_t *); +int linux_sys_brk(struct proc *, void *, register_t *); +int sys_setgid(struct proc *, void *, register_t *); +int sys_getgid(struct proc *, void *, register_t *); +int linux_sys_signal(struct proc *, void *, register_t *); +int sys_geteuid(struct proc *, void *, register_t *); +int sys_getegid(struct proc *, void *, register_t *); +int sys_acct(struct proc *, void *, register_t *); +int linux_sys_phys(struct proc *, void *, register_t *); +int linux_sys_lock(struct proc *, void *, register_t *); +int linux_sys_ioctl(struct proc *, void *, register_t *); +int linux_sys_fcntl(struct proc *, void *, register_t *); +int linux_sys_mpx(struct proc *, void *, register_t *); +int sys_setpgid(struct proc *, void *, register_t *); +int linux_sys_ulimit(struct proc *, void *, register_t *); +int linux_sys_oldolduname(struct proc *, void *, register_t *); +int sys_umask(struct proc *, void *, register_t *); +int sys_chroot(struct proc *, void *, register_t *); +int linux_sys_ustat(struct proc *, void *, register_t *); +int sys_dup2(struct proc *, void *, register_t *); +int sys_getppid(struct proc *, void *, register_t *); +int sys_getpgrp(struct proc *, void *, register_t *); +int sys_setsid(struct proc *, void *, register_t *); +int linux_sys_sigaction(struct proc *, void *, register_t *); +int linux_sys_siggetmask(struct proc *, void *, register_t *); +int linux_sys_sigsetmask(struct proc *, void *, register_t *); +int linux_sys_setreuid16(struct proc *, void *, register_t *); +int linux_sys_setregid16(struct proc *, void *, register_t *); +int linux_sys_sigsuspend(struct proc *, void *, register_t *); +int linux_sys_sigpending(struct proc *, void *, register_t *); +int compat_43_sys_sethostname(struct proc *, void *, register_t *); +int linux_sys_setrlimit(struct proc *, void *, register_t *); +int linux_sys_getrlimit(struct proc *, void *, register_t *); +int sys_getrusage(struct proc *, void *, register_t *); +int sys_gettimeofday(struct proc *, void *, register_t *); +int sys_settimeofday(struct proc *, void *, register_t *); +int sys_getgroups(struct proc *, void *, register_t *); +int sys_setgroups(struct proc *, void *, register_t *); +int linux_sys_oldselect(struct proc *, void *, register_t *); +int linux_sys_symlink(struct proc *, void *, register_t *); +int compat_43_sys_lstat(struct proc *, void *, register_t *); +int linux_sys_readlink(struct proc *, void *, register_t *); +int linux_sys_uselib(struct proc *, void *, register_t *); +int sys_swapon(struct proc *, void *, register_t *); +int sys_reboot(struct proc *, void *, register_t *); +int linux_sys_readdir(struct proc *, void *, register_t *); +int linux_sys_mmap(struct proc *, void *, register_t *); +int sys_munmap(struct proc *, void *, register_t *); +int linux_sys_truncate(struct proc *, void *, register_t *); +int compat_43_sys_ftruncate(struct proc *, void *, register_t *); +int sys_fchmod(struct proc *, void *, register_t *); +int linux_sys_fchown16(struct proc *, void *, register_t *); +int sys_getpriority(struct proc *, void *, register_t *); +int sys_setpriority(struct proc *, void *, register_t *); +int sys_profil(struct proc *, void *, register_t *); +int linux_sys_statfs(struct proc *, void *, register_t *); +int linux_sys_fstatfs(struct proc *, void *, register_t *); #ifdef __i386__ -int linux_sys_ioperm __P((struct proc *, void *, register_t *)); +int linux_sys_ioperm(struct proc *, void *, register_t *); #else -int linux_sys_ioperm __P((struct proc *, void *, register_t *)); +int linux_sys_ioperm(struct proc *, void *, register_t *); #endif -int linux_sys_socketcall __P((struct proc *, void *, register_t *)); -int linux_sys_klog __P((struct proc *, void *, register_t *)); -int sys_setitimer __P((struct proc *, void *, register_t *)); -int sys_getitimer __P((struct proc *, void *, register_t *)); -int linux_sys_stat __P((struct proc *, void *, register_t *)); -int linux_sys_lstat __P((struct proc *, void *, register_t *)); -int linux_sys_fstat __P((struct proc *, void *, register_t *)); -int linux_sys_olduname __P((struct proc *, void *, register_t *)); +int linux_sys_socketcall(struct proc *, void *, register_t *); +int linux_sys_klog(struct proc *, void *, register_t *); +int sys_setitimer(struct proc *, void *, register_t *); +int sys_getitimer(struct proc *, void *, register_t *); +int linux_sys_stat(struct proc *, void *, register_t *); +int linux_sys_lstat(struct proc *, void *, register_t *); +int linux_sys_fstat(struct proc *, void *, register_t *); +int linux_sys_olduname(struct proc *, void *, register_t *); #ifdef __i386__ -int linux_sys_iopl __P((struct proc *, void *, register_t *)); +int linux_sys_iopl(struct proc *, void *, register_t *); #else -int linux_sys_iopl __P((struct proc *, void *, register_t *)); +int linux_sys_iopl(struct proc *, void *, register_t *); #endif -int linux_sys_vhangup __P((struct proc *, void *, register_t *)); -int linux_sys_idle __P((struct proc *, void *, register_t *)); -int linux_sys_vm86old __P((struct proc *, void *, register_t *)); -int linux_sys_wait4 __P((struct proc *, void *, register_t *)); -int linux_sys_swapoff __P((struct proc *, void *, register_t *)); -int linux_sys_sysinfo __P((struct proc *, void *, register_t *)); -int linux_sys_ipc __P((struct proc *, void *, register_t *)); -int sys_fsync __P((struct proc *, void *, register_t *)); -int linux_sys_sigreturn __P((struct proc *, void *, register_t *)); -int linux_sys_clone __P((struct proc *, void *, register_t *)); -int compat_09_sys_setdomainname __P((struct proc *, void *, register_t *)); -int linux_sys_uname __P((struct proc *, void *, register_t *)); +int linux_sys_vhangup(struct proc *, void *, register_t *); +int linux_sys_idle(struct proc *, void *, register_t *); +int linux_sys_vm86old(struct proc *, void *, register_t *); +int linux_sys_wait4(struct proc *, void *, register_t *); +int linux_sys_swapoff(struct proc *, void *, register_t *); +int linux_sys_sysinfo(struct proc *, void *, register_t *); +int linux_sys_ipc(struct proc *, void *, register_t *); +int sys_fsync(struct proc *, void *, register_t *); +int linux_sys_sigreturn(struct proc *, void *, register_t *); +int linux_sys_clone(struct proc *, void *, register_t *); +int compat_09_sys_setdomainname(struct proc *, void *, register_t *); +int linux_sys_uname(struct proc *, void *, register_t *); #ifdef __i386__ -int linux_sys_modify_ldt __P((struct proc *, void *, register_t *)); +int linux_sys_modify_ldt(struct proc *, void *, register_t *); #else -int linux_sys_modify_ldt __P((struct proc *, void *, register_t *)); +int linux_sys_modify_ldt(struct proc *, void *, register_t *); #endif -int linux_sys_adjtimex __P((struct proc *, void *, register_t *)); -int sys_mprotect __P((struct proc *, void *, register_t *)); -int linux_sys_sigprocmask __P((struct proc *, void *, register_t *)); -int linux_sys_create_module __P((struct proc *, void *, register_t *)); -int linux_sys_init_module __P((struct proc *, void *, register_t *)); -int linux_sys_delete_module __P((struct proc *, void *, register_t *)); -int linux_sys_get_kernel_syms __P((struct proc *, void *, register_t *)); -int linux_sys_quotactl __P((struct proc *, void *, register_t *)); -int linux_sys_getpgid __P((struct proc *, void *, register_t *)); -int sys_fchdir __P((struct proc *, void *, register_t *)); -int linux_sys_bdflush __P((struct proc *, void *, register_t *)); -int linux_sys_sysfs __P((struct proc *, void *, register_t *)); -int linux_sys_personality __P((struct proc *, void *, register_t *)); -int linux_sys_afs_syscall __P((struct proc *, void *, register_t *)); -int linux_sys_setfsuid __P((struct proc *, void *, register_t *)); -int linux_sys_getfsuid __P((struct proc *, void *, register_t *)); -int linux_sys_llseek __P((struct proc *, void *, register_t *)); -int linux_sys_getdents __P((struct proc *, void *, register_t *)); -int linux_sys_select __P((struct proc *, void *, register_t *)); -int sys_flock __P((struct proc *, void *, register_t *)); -int sys_msync __P((struct proc *, void *, register_t *)); -int sys_readv __P((struct proc *, void *, register_t *)); -int sys_writev __P((struct proc *, void *, register_t *)); -int linux_sys_getsid __P((struct proc *, void *, register_t *)); -int linux_sys_fdatasync __P((struct proc *, void *, register_t *)); -int linux_sys___sysctl __P((struct proc *, void *, register_t *)); -int sys_mlock __P((struct proc *, void *, register_t *)); -int sys_munlock __P((struct proc *, void *, register_t *)); -int linux_sys_mlockall __P((struct proc *, void *, register_t *)); -int linux_sys_munlockall __P((struct proc *, void *, register_t *)); -int linux_sys_sched_setparam __P((struct proc *, void *, register_t *)); -int linux_sys_sched_getparam __P((struct proc *, void *, register_t *)); -int linux_sys_sched_setscheduler __P((struct proc *, void *, register_t *)); -int linux_sys_sched_getscheduler __P((struct proc *, void *, register_t *)); -int linux_sys_sched_yield __P((struct proc *, void *, register_t *)); -int linux_sys_sched_get_priority_max __P((struct proc *, void *, register_t *)); -int linux_sys_sched_get_priority_min __P((struct proc *, void *, register_t *)); -int linux_sys_sched_rr_get_interval __P((struct proc *, void *, register_t *)); -int sys_nanosleep __P((struct proc *, void *, register_t *)); -int linux_sys_mremap __P((struct proc *, void *, register_t *)); -int linux_sys_setresuid16 __P((struct proc *, void *, register_t *)); -int linux_sys_getresuid __P((struct proc *, void *, register_t *)); -int linux_sys_vm86 __P((struct proc *, void *, register_t *)); -int linux_sys_query_module __P((struct proc *, void *, register_t *)); -int sys_poll __P((struct proc *, void *, register_t *)); -int linux_sys_nfsservctl __P((struct proc *, void *, register_t *)); -int linux_sys_setresgid16 __P((struct proc *, void *, register_t *)); -int linux_sys_getresgid16 __P((struct proc *, void *, register_t *)); -int linux_sys_prctl __P((struct proc *, void *, register_t *)); -int linux_sys_rt_sigreturn __P((struct proc *, void *, register_t *)); -int linux_sys_rt_sigaction __P((struct proc *, void *, register_t *)); -int linux_sys_rt_sigprocmask __P((struct proc *, void *, register_t *)); -int linux_sys_rt_sigpending __P((struct proc *, void *, register_t *)); -int linux_sys_rt_sigtimedwait __P((struct proc *, void *, register_t *)); -int linux_sys_rt_queueinfo __P((struct proc *, void *, register_t *)); -int linux_sys_rt_sigsuspend __P((struct proc *, void *, register_t *)); -int linux_sys_pread __P((struct proc *, void *, register_t *)); -int linux_sys_pwrite __P((struct proc *, void *, register_t *)); -int linux_sys_chown16 __P((struct proc *, void *, register_t *)); -int linux_sys_getcwd __P((struct proc *, void *, register_t *)); -int linux_sys_capget __P((struct proc *, void *, register_t *)); -int linux_sys_capset __P((struct proc *, void *, register_t *)); -int linux_sys_sigaltstack __P((struct proc *, void *, register_t *)); -int linux_sys_sendfile __P((struct proc *, void *, register_t *)); -int linux_sys_getpmsg __P((struct proc *, void *, register_t *)); -int linux_sys_putpmsg __P((struct proc *, void *, register_t *)); -int sys_vfork __P((struct proc *, void *, register_t *)); -int linux_sys_ugetrlimit __P((struct proc *, void *, register_t *)); -int linux_sys_mmap2 __P((struct proc *, void *, register_t *)); -int linux_sys_truncate64 __P((struct proc *, void *, register_t *)); -int sys_ftruncate __P((struct proc *, void *, register_t *)); -int linux_sys_stat64 __P((struct proc *, void *, register_t *)); -int linux_sys_lstat64 __P((struct proc *, void *, register_t *)); -int linux_sys_fstat64 __P((struct proc *, void *, register_t *)); -int linux_sys_lchown __P((struct proc *, void *, register_t *)); -int sys_getuid __P((struct proc *, void *, register_t *)); -int sys_getgid __P((struct proc *, void *, register_t *)); -int sys_geteuid __P((struct proc *, void *, register_t *)); -int sys_getegid __P((struct proc *, void *, register_t *)); -int linux_sys_setreuid __P((struct proc *, void *, register_t *)); -int linux_sys_setregid __P((struct proc *, void *, register_t *)); -int sys_getgroups __P((struct proc *, void *, register_t *)); -int sys_setgroups __P((struct proc *, void *, register_t *)); -int linux_sys_fchown __P((struct proc *, void *, register_t *)); -int linux_sys_setresuid __P((struct proc *, void *, register_t *)); -int linux_sys_getresuid __P((struct proc *, void *, register_t *)); -int linux_sys_setresgid __P((struct proc *, void *, register_t *)); -int linux_sys_getresgid __P((struct proc *, void *, register_t *)); -int linux_sys_chown __P((struct proc *, void *, register_t *)); -int sys_setuid __P((struct proc *, void *, register_t *)); -int sys_setgid __P((struct proc *, void *, register_t *)); -int linux_sys_setfsuid __P((struct proc *, void *, register_t *)); -int linux_sys_setfsgid __P((struct proc *, void *, register_t *)); -int linux_sys_pivot_root __P((struct proc *, void *, register_t *)); -int linux_sys_mincore __P((struct proc *, void *, register_t *)); -int linux_sys_madvise __P((struct proc *, void *, register_t *)); -int linux_sys_getdents64 __P((struct proc *, void *, register_t *)); -int linux_sys_fcntl64 __P((struct proc *, void *, register_t *)); +int linux_sys_adjtimex(struct proc *, void *, register_t *); +int sys_mprotect(struct proc *, void *, register_t *); +int linux_sys_sigprocmask(struct proc *, void *, register_t *); +int linux_sys_create_module(struct proc *, void *, register_t *); +int linux_sys_init_module(struct proc *, void *, register_t *); +int linux_sys_delete_module(struct proc *, void *, register_t *); +int linux_sys_get_kernel_syms(struct proc *, void *, register_t *); +int linux_sys_quotactl(struct proc *, void *, register_t *); +int linux_sys_getpgid(struct proc *, void *, register_t *); +int sys_fchdir(struct proc *, void *, register_t *); +int linux_sys_bdflush(struct proc *, void *, register_t *); +int linux_sys_sysfs(struct proc *, void *, register_t *); +int linux_sys_personality(struct proc *, void *, register_t *); +int linux_sys_afs_syscall(struct proc *, void *, register_t *); +int linux_sys_setfsuid(struct proc *, void *, register_t *); +int linux_sys_getfsuid(struct proc *, void *, register_t *); +int linux_sys_llseek(struct proc *, void *, register_t *); +int linux_sys_getdents(struct proc *, void *, register_t *); +int linux_sys_select(struct proc *, void *, register_t *); +int sys_flock(struct proc *, void *, register_t *); +int sys_msync(struct proc *, void *, register_t *); +int sys_readv(struct proc *, void *, register_t *); +int sys_writev(struct proc *, void *, register_t *); +int linux_sys_getsid(struct proc *, void *, register_t *); +int linux_sys_fdatasync(struct proc *, void *, register_t *); +int linux_sys___sysctl(struct proc *, void *, register_t *); +int sys_mlock(struct proc *, void *, register_t *); +int sys_munlock(struct proc *, void *, register_t *); +int linux_sys_mlockall(struct proc *, void *, register_t *); +int linux_sys_munlockall(struct proc *, void *, register_t *); +int linux_sys_sched_setparam(struct proc *, void *, register_t *); +int linux_sys_sched_getparam(struct proc *, void *, register_t *); +int linux_sys_sched_setscheduler(struct proc *, void *, register_t *); +int linux_sys_sched_getscheduler(struct proc *, void *, register_t *); +int linux_sys_sched_yield(struct proc *, void *, register_t *); +int linux_sys_sched_get_priority_max(struct proc *, void *, register_t *); +int linux_sys_sched_get_priority_min(struct proc *, void *, register_t *); +int linux_sys_sched_rr_get_interval(struct proc *, void *, register_t *); +int sys_nanosleep(struct proc *, void *, register_t *); +int linux_sys_mremap(struct proc *, void *, register_t *); +int linux_sys_setresuid16(struct proc *, void *, register_t *); +int linux_sys_getresuid(struct proc *, void *, register_t *); +int linux_sys_vm86(struct proc *, void *, register_t *); +int linux_sys_query_module(struct proc *, void *, register_t *); +int sys_poll(struct proc *, void *, register_t *); +int linux_sys_nfsservctl(struct proc *, void *, register_t *); +int linux_sys_setresgid16(struct proc *, void *, register_t *); +int linux_sys_getresgid16(struct proc *, void *, register_t *); +int linux_sys_prctl(struct proc *, void *, register_t *); +int linux_sys_rt_sigreturn(struct proc *, void *, register_t *); +int linux_sys_rt_sigaction(struct proc *, void *, register_t *); +int linux_sys_rt_sigprocmask(struct proc *, void *, register_t *); +int linux_sys_rt_sigpending(struct proc *, void *, register_t *); +int linux_sys_rt_sigtimedwait(struct proc *, void *, register_t *); +int linux_sys_rt_queueinfo(struct proc *, void *, register_t *); +int linux_sys_rt_sigsuspend(struct proc *, void *, register_t *); +int linux_sys_pread(struct proc *, void *, register_t *); +int linux_sys_pwrite(struct proc *, void *, register_t *); +int linux_sys_chown16(struct proc *, void *, register_t *); +int linux_sys_getcwd(struct proc *, void *, register_t *); +int linux_sys_capget(struct proc *, void *, register_t *); +int linux_sys_capset(struct proc *, void *, register_t *); +int linux_sys_sigaltstack(struct proc *, void *, register_t *); +int linux_sys_sendfile(struct proc *, void *, register_t *); +int linux_sys_getpmsg(struct proc *, void *, register_t *); +int linux_sys_putpmsg(struct proc *, void *, register_t *); +int sys_vfork(struct proc *, void *, register_t *); +int linux_sys_ugetrlimit(struct proc *, void *, register_t *); +int linux_sys_mmap2(struct proc *, void *, register_t *); +int linux_sys_truncate64(struct proc *, void *, register_t *); +int sys_ftruncate(struct proc *, void *, register_t *); +int linux_sys_stat64(struct proc *, void *, register_t *); +int linux_sys_lstat64(struct proc *, void *, register_t *); +int linux_sys_fstat64(struct proc *, void *, register_t *); +int linux_sys_lchown(struct proc *, void *, register_t *); +int sys_getuid(struct proc *, void *, register_t *); +int sys_getgid(struct proc *, void *, register_t *); +int sys_geteuid(struct proc *, void *, register_t *); +int sys_getegid(struct proc *, void *, register_t *); +int linux_sys_setreuid(struct proc *, void *, register_t *); +int linux_sys_setregid(struct proc *, void *, register_t *); +int sys_getgroups(struct proc *, void *, register_t *); +int sys_setgroups(struct proc *, void *, register_t *); +int linux_sys_fchown(struct proc *, void *, register_t *); +int linux_sys_setresuid(struct proc *, void *, register_t *); +int linux_sys_getresuid(struct proc *, void *, register_t *); +int linux_sys_setresgid(struct proc *, void *, register_t *); +int linux_sys_getresgid(struct proc *, void *, register_t *); +int linux_sys_chown(struct proc *, void *, register_t *); +int sys_setuid(struct proc *, void *, register_t *); +int sys_setgid(struct proc *, void *, register_t *); +int linux_sys_setfsuid(struct proc *, void *, register_t *); +int linux_sys_setfsgid(struct proc *, void *, register_t *); +int linux_sys_pivot_root(struct proc *, void *, register_t *); +int linux_sys_mincore(struct proc *, void *, register_t *); +int linux_sys_madvise(struct proc *, void *, register_t *); +int linux_sys_getdents64(struct proc *, void *, register_t *); +int linux_sys_fcntl64(struct proc *, void *, register_t *); diff --git a/sys/compat/linux/linux_termios.c b/sys/compat/linux/linux_termios.c index a44ef13b0f7..1603d1f77dd 100644 --- a/sys/compat/linux/linux_termios.c +++ b/sys/compat/linux/linux_termios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_termios.c,v 1.11 2002/02/13 20:43:42 jasoni Exp $ */ +/* $OpenBSD: linux_termios.c,v 1.12 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: linux_termios.c,v 1.3 1996/04/05 00:01:54 christos Exp $ */ /* @@ -62,14 +62,14 @@ static int linux_spmasks[] = { LINUX_B57600, LINUX_B115200, LINUX_B230400 }; -static void linux_termio_to_bsd_termios __P((struct linux_termio *, - struct termios *)); -static void bsd_termios_to_linux_termio __P((struct termios *, - struct linux_termio *)); -static void linux_termios_to_bsd_termios __P((struct linux_termios *, - struct termios *)); -static void bsd_termios_to_linux_termios __P((struct termios *, - struct linux_termios *)); +static void linux_termio_to_bsd_termios(struct linux_termio *, + struct termios *); +static void bsd_termios_to_linux_termio(struct termios *, + struct linux_termio *); +static void linux_termios_to_bsd_termios(struct linux_termios *, + struct termios *); +static void bsd_termios_to_linux_termios(struct termios *, + struct linux_termios *); /* * Deal with termio ioctl cruft. This doesn't look very good.. diff --git a/sys/compat/m68k4k/m68k4k_exec.c b/sys/compat/m68k4k/m68k4k_exec.c index 30dfeb6b1fd..b074ecb63e1 100644 --- a/sys/compat/m68k4k/m68k4k_exec.c +++ b/sys/compat/m68k4k/m68k4k_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: m68k4k_exec.c,v 1.5 2001/11/15 06:22:30 art Exp $ */ +/* $OpenBSD: m68k4k_exec.c,v 1.6 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: m68k4k_exec.c,v 1.1 1996/09/10 22:01:20 thorpej Exp $ */ /* @@ -58,9 +58,9 @@ #include <compat/m68k4k/m68k4k_exec.h> -int exec_m68k4k_prep_zmagic __P((struct proc *, struct exec_package *)); -int exec_m68k4k_prep_nmagic __P((struct proc *, struct exec_package *)); -int exec_m68k4k_prep_omagic __P((struct proc *, struct exec_package *)); +int exec_m68k4k_prep_zmagic(struct proc *, struct exec_package *); +int exec_m68k4k_prep_nmagic(struct proc *, struct exec_package *); +int exec_m68k4k_prep_omagic(struct proc *, struct exec_package *); /* * exec_m68k4k_makecmds(): Check if it's an a.out-format executable diff --git a/sys/compat/m68k4k/m68k4k_exec.h b/sys/compat/m68k4k/m68k4k_exec.h index 3b50719cd2b..99af0008474 100644 --- a/sys/compat/m68k4k/m68k4k_exec.h +++ b/sys/compat/m68k4k/m68k4k_exec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: m68k4k_exec.h,v 1.1 1997/01/13 11:07:53 niklas Exp $ */ +/* $OpenBSD: m68k4k_exec.h,v 1.2 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: m68k4k_exec.h,v 1.1 1996/09/10 22:01:21 thorpej Exp $ */ /*- @@ -43,6 +43,6 @@ #define M68K4K_LDPGSZ 4096 #define M68K4K_USRTEXT M68K4K_LDPGSZ -int exec_m68k4k_makecmds __P((struct proc *, struct exec_package *)); +int exec_m68k4k_makecmds(struct proc *, struct exec_package *); #endif /* _M68K4K_EXEC_H_ */ diff --git a/sys/compat/netbsd/netbsd_exec.h b/sys/compat/netbsd/netbsd_exec.h index cdd9994d8f2..0e525d1417c 100644 --- a/sys/compat/netbsd/netbsd_exec.h +++ b/sys/compat/netbsd/netbsd_exec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_exec.h,v 1.1 1999/09/12 14:15:16 kstailey Exp $ */ +/* $OpenBSD: netbsd_exec.h,v 1.2 2002/03/14 01:26:50 millert Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -39,11 +39,11 @@ #ifndef _NETBSD_EXEC_H #define _NETBSD_EXEC_H -int exec_netbsd_aout_makecmds __P((struct proc *, struct exec_package *)); +int exec_netbsd_aout_makecmds(struct proc *, struct exec_package *); #ifdef _KERN_DO_ELF64 -int netbsd_elf64_probe __P((struct proc *, struct exec_package *, char *, - u_long *, u_int8_t *)); +int netbsd_elf64_probe(struct proc *, struct exec_package *, char *, + u_long *, u_int8_t *); #endif #endif /* !_NETBSD_EXEC_H */ diff --git a/sys/compat/netbsd/netbsd_file.c b/sys/compat/netbsd/netbsd_file.c index 61d19bd5c6a..65f6f7c77bf 100644 --- a/sys/compat/netbsd/netbsd_file.c +++ b/sys/compat/netbsd/netbsd_file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_file.c,v 1.2 2002/02/12 18:41:20 art Exp $ */ +/* $OpenBSD: netbsd_file.c,v 1.3 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: freebsd_file.c,v 1.3 1996/05/03 17:03:09 christos Exp $ */ /* @@ -60,9 +60,9 @@ const char netbsd_emul_path[] = "/emul/netbsd"; #if 0 -static char * convert_from_netbsd_mount_type __P((int)); -void statfs_to_netbsd_statfs __P((struct proc *, struct mount *, - struct statfs *, struct netbsd_statfs *)); +static char * convert_from_netbsd_mount_type(int); +void statfs_to_netbsd_statfs(struct proc *, struct mount *, + struct statfs *, struct netbsd_statfs *); struct netbsd_statfs { long f_spare2; /* placeholder */ diff --git a/sys/compat/netbsd/netbsd_getcwd.c b/sys/compat/netbsd/netbsd_getcwd.c index 676daf40569..f78a8628557 100644 --- a/sys/compat/netbsd/netbsd_getcwd.c +++ b/sys/compat/netbsd/netbsd_getcwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_getcwd.c,v 1.5 2001/09/05 23:38:28 art Exp $ */ +/* $OpenBSD: netbsd_getcwd.c,v 1.6 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: vfs_getcwd.c,v 1.3.2.3 1999/07/11 10:24:09 sommerfeld Exp $ */ /*- @@ -47,7 +47,7 @@ #include <sys/vnode.h> #include <sys/mount.h> #include <sys/proc.h> -int proc_isunder __P((struct proc *, struct proc*)); /* missing from proc.h */ +int proc_isunder(struct proc *, struct proc*); /* missing from proc.h */ #include <sys/uio.h> #include <sys/malloc.h> #include <sys/dirent.h> @@ -58,17 +58,17 @@ int proc_isunder __P((struct proc *, struct proc*)); /* missing from proc.h */ #include <compat/netbsd/netbsd_syscallargs.h> static int -netbsd_getcwd_scandir __P((struct vnode **, struct vnode **, - char **, char *, struct proc *)); +netbsd_getcwd_scandir(struct vnode **, struct vnode **, + char **, char *, struct proc *); static int -netbsd_getcwd_getcache __P((struct vnode **, struct vnode **, - char **, char *)); +netbsd_getcwd_getcache(struct vnode **, struct vnode **, + char **, char *); static int -netbsd_getcwd_common __P((struct vnode *, struct vnode *, - char **, char *, int, int, struct proc *)); +netbsd_getcwd_common(struct vnode *, struct vnode *, + char **, char *, int, int, struct proc *); static int -netbsd_vn_isunder __P((struct vnode *, struct vnode *, struct proc *)); +netbsd_vn_isunder(struct vnode *, struct vnode *, struct proc *); #define DIRENT_MINSIZE (sizeof(struct dirent) - (MAXNAMLEN+1) + 4) diff --git a/sys/compat/netbsd/netbsd_getdents.c b/sys/compat/netbsd/netbsd_getdents.c index 7e92951d5e4..50d89dfd5ff 100644 --- a/sys/compat/netbsd/netbsd_getdents.c +++ b/sys/compat/netbsd/netbsd_getdents.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_getdents.c,v 1.5 2002/02/12 18:41:20 art Exp $ */ +/* $OpenBSD: netbsd_getdents.c,v 1.6 2002/03/14 01:26:50 millert Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -53,8 +53,8 @@ #include <compat/netbsd/netbsd_signal.h> #include <compat/netbsd/netbsd_syscallargs.h> -static int netbsd_vn_readdir __P((struct file *, char *, int, u_int, int *, - struct proc *, off_t **, int *)); +static int netbsd_vn_readdir(struct file *, char *, int, u_int, int *, + struct proc *, off_t **, int *); static int netbsd_vn_readdir(fp, buf, segflg, count, done, p, cookies, ncookies) @@ -92,8 +92,8 @@ unionread: #ifdef UNION { - extern int (**union_vnodeop_p) __P((void *)); - extern struct vnode *union_dircache __P((struct vnode *)); + extern int (**union_vnodeop_p)(void *); + extern struct vnode *union_dircache(struct vnode *); if (count == auio.uio_resid && (vp->v_op == union_vnodeop_p)) { struct vnode *lvp; diff --git a/sys/compat/netbsd/netbsd_signal.c b/sys/compat/netbsd/netbsd_signal.c index 87a303fabd9..daa19871b25 100644 --- a/sys/compat/netbsd/netbsd_signal.c +++ b/sys/compat/netbsd/netbsd_signal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_signal.c,v 1.4 1999/09/16 13:20:06 kstailey Exp $ */ +/* $OpenBSD: netbsd_signal.c,v 1.5 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */ @@ -53,17 +53,17 @@ #include <compat/netbsd/netbsd_signal.h> #include <compat/netbsd/netbsd_syscallargs.h> -static void netbsd_to_openbsd_sigaction __P((struct netbsd_sigaction *, - struct sigaction *)); +static void netbsd_to_openbsd_sigaction(struct netbsd_sigaction *, + struct sigaction *); -static void openbsd_to_netbsd_sigaction __P((struct sigaction *, - struct netbsd_sigaction *)); +static void openbsd_to_netbsd_sigaction(struct sigaction *, + struct netbsd_sigaction *); -static void netbsd_to_openbsd_sigaltstack __P((struct netbsd_sigaltstack *, - struct sigaltstack *)); +static void netbsd_to_openbsd_sigaltstack(struct netbsd_sigaltstack *, + struct sigaltstack *); -static void openbsd_to_netbsd_sigaltstack __P((struct sigaltstack *, - struct netbsd_sigaltstack *)); +static void openbsd_to_netbsd_sigaltstack(struct sigaltstack *, + struct netbsd_sigaltstack *); static void openbsd_to_netbsd_sigaction(obsa, nbsa) diff --git a/sys/compat/netbsd/netbsd_signal.h b/sys/compat/netbsd/netbsd_signal.h index 20aee96d9c4..f3c90653557 100644 --- a/sys/compat/netbsd/netbsd_signal.h +++ b/sys/compat/netbsd/netbsd_signal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_signal.h,v 1.2 1999/09/26 11:16:36 kstailey Exp $ */ +/* $OpenBSD: netbsd_signal.h,v 1.3 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: signal.h,v 1.42 1998/12/21 10:35:00 drochner Exp $ */ /* @@ -53,7 +53,7 @@ typedef struct { * Signal vector "template" used in sigaction call. */ struct netbsd_sigaction { - void (*netbsd_sa_handler) __P((int));/* signal handler */ + void (*netbsd_sa_handler)(int);/* signal handler */ netbsd_sigset_t netbsd_sa_mask; /* signal mask to apply */ int netbsd_sa_flags; /* see signal options below */ }; diff --git a/sys/compat/netbsd/netbsd_stat.c b/sys/compat/netbsd/netbsd_stat.c index 7921a2710f9..8ed16be057c 100644 --- a/sys/compat/netbsd/netbsd_stat.c +++ b/sys/compat/netbsd/netbsd_stat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_stat.c,v 1.13 2002/02/13 19:08:06 art Exp $ */ +/* $OpenBSD: netbsd_stat.c,v 1.14 2002/03/14 01:26:50 millert Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -59,7 +59,7 @@ #include <compat/netbsd/netbsd_syscallargs.h> #include <compat/netbsd/netbsd_util.h> -static void openbsd_to_netbsd_stat __P((struct stat *, struct netbsd_stat *)); +static void openbsd_to_netbsd_stat(struct stat *, struct netbsd_stat *); static void openbsd_to_netbsd_stat(obst, nbst) diff --git a/sys/compat/netbsd/netbsd_syscallargs.h b/sys/compat/netbsd/netbsd_syscallargs.h index 41e11c0ec17..2a5c8ff9a7d 100644 --- a/sys/compat/netbsd/netbsd_syscallargs.h +++ b/sys/compat/netbsd/netbsd_syscallargs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_syscallargs.h,v 1.17 2002/03/14 00:44:20 miod Exp $ */ +/* $OpenBSD: netbsd_syscallargs.h,v 1.18 2002/03/14 01:26:50 millert Exp $ */ /* * System call argument lists. @@ -232,284 +232,284 @@ struct netbsd_sys___getcwd_args { * System call prototypes. */ -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 *)); -int sys_write __P((struct proc *, void *, register_t *)); -int netbsd_sys_open __P((struct proc *, void *, register_t *)); -int sys_close __P((struct proc *, void *, register_t *)); -int sys_wait4 __P((struct proc *, void *, register_t *)); -int compat_43_netbsd_sys_creat __P((struct proc *, void *, register_t *)); -int netbsd_sys_link __P((struct proc *, void *, register_t *)); -int netbsd_sys_unlink __P((struct proc *, void *, register_t *)); -int netbsd_sys_chdir __P((struct proc *, void *, register_t *)); -int sys_fchdir __P((struct proc *, void *, register_t *)); -int netbsd_sys_mknod __P((struct proc *, void *, register_t *)); -int netbsd_sys_chmod __P((struct proc *, void *, register_t *)); -int netbsd_sys_chown __P((struct proc *, void *, register_t *)); -int sys_obreak __P((struct proc *, void *, register_t *)); -int compat_25_sys_getfsstat __P((struct proc *, void *, register_t *)); -int sys_lseek __P((struct proc *, void *, register_t *)); -int sys_getpid __P((struct proc *, void *, register_t *)); -int sys_mount __P((struct proc *, void *, register_t *)); -int netbsd_sys_unmount __P((struct proc *, void *, register_t *)); -int sys_setuid __P((struct proc *, void *, register_t *)); -int sys_getuid __P((struct proc *, void *, register_t *)); -int sys_geteuid __P((struct proc *, void *, register_t *)); +int sys_exit(struct proc *, void *, register_t *); +int sys_fork(struct proc *, void *, register_t *); +int sys_read(struct proc *, void *, register_t *); +int sys_write(struct proc *, void *, register_t *); +int netbsd_sys_open(struct proc *, void *, register_t *); +int sys_close(struct proc *, void *, register_t *); +int sys_wait4(struct proc *, void *, register_t *); +int compat_43_netbsd_sys_creat(struct proc *, void *, register_t *); +int netbsd_sys_link(struct proc *, void *, register_t *); +int netbsd_sys_unlink(struct proc *, void *, register_t *); +int netbsd_sys_chdir(struct proc *, void *, register_t *); +int sys_fchdir(struct proc *, void *, register_t *); +int netbsd_sys_mknod(struct proc *, void *, register_t *); +int netbsd_sys_chmod(struct proc *, void *, register_t *); +int netbsd_sys_chown(struct proc *, void *, register_t *); +int sys_obreak(struct proc *, void *, register_t *); +int compat_25_sys_getfsstat(struct proc *, void *, register_t *); +int sys_lseek(struct proc *, void *, register_t *); +int sys_getpid(struct proc *, void *, register_t *); +int sys_mount(struct proc *, void *, register_t *); +int netbsd_sys_unmount(struct proc *, void *, register_t *); +int sys_setuid(struct proc *, void *, register_t *); +int sys_getuid(struct proc *, void *, register_t *); +int sys_geteuid(struct proc *, void *, register_t *); #ifdef PTRACE -int sys_ptrace __P((struct proc *, void *, register_t *)); +int sys_ptrace(struct proc *, void *, register_t *); #else #endif -int sys_recvmsg __P((struct proc *, void *, register_t *)); -int sys_sendmsg __P((struct proc *, void *, register_t *)); -int sys_recvfrom __P((struct proc *, void *, register_t *)); -int sys_accept __P((struct proc *, void *, register_t *)); -int sys_getpeername __P((struct proc *, void *, register_t *)); -int sys_getsockname __P((struct proc *, void *, register_t *)); -int netbsd_sys_access __P((struct proc *, void *, register_t *)); -int netbsd_sys_chflags __P((struct proc *, void *, register_t *)); -int sys_fchflags __P((struct proc *, void *, register_t *)); -int sys_sync __P((struct proc *, void *, register_t *)); -int sys_kill __P((struct proc *, void *, register_t *)); -int compat_43_netbsd_sys_stat __P((struct proc *, void *, register_t *)); -int sys_getppid __P((struct proc *, void *, register_t *)); -int compat_43_netbsd_sys_lstat __P((struct proc *, void *, register_t *)); -int sys_dup __P((struct proc *, void *, register_t *)); -int sys_opipe __P((struct proc *, void *, register_t *)); -int sys_getegid __P((struct proc *, void *, register_t *)); -int sys_profil __P((struct proc *, void *, register_t *)); +int sys_recvmsg(struct proc *, void *, register_t *); +int sys_sendmsg(struct proc *, void *, register_t *); +int sys_recvfrom(struct proc *, void *, register_t *); +int sys_accept(struct proc *, void *, register_t *); +int sys_getpeername(struct proc *, void *, register_t *); +int sys_getsockname(struct proc *, void *, register_t *); +int netbsd_sys_access(struct proc *, void *, register_t *); +int netbsd_sys_chflags(struct proc *, void *, register_t *); +int sys_fchflags(struct proc *, void *, register_t *); +int sys_sync(struct proc *, void *, register_t *); +int sys_kill(struct proc *, void *, register_t *); +int compat_43_netbsd_sys_stat(struct proc *, void *, register_t *); +int sys_getppid(struct proc *, void *, register_t *); +int compat_43_netbsd_sys_lstat(struct proc *, void *, register_t *); +int sys_dup(struct proc *, void *, register_t *); +int sys_opipe(struct proc *, void *, register_t *); +int sys_getegid(struct proc *, void *, register_t *); +int sys_profil(struct proc *, void *, register_t *); #ifdef KTRACE -int sys_ktrace __P((struct proc *, void *, register_t *)); +int sys_ktrace(struct proc *, void *, register_t *); #else #endif -int sys_sigaction __P((struct proc *, void *, register_t *)); -int sys_getgid __P((struct proc *, void *, register_t *)); -int sys_sigprocmask __P((struct proc *, void *, register_t *)); -int sys_getlogin __P((struct proc *, void *, register_t *)); -int sys_setlogin __P((struct proc *, void *, register_t *)); -int sys_acct __P((struct proc *, void *, register_t *)); -int sys_sigpending __P((struct proc *, void *, register_t *)); -int sys_sigaltstack __P((struct proc *, void *, register_t *)); -int sys_ioctl __P((struct proc *, void *, register_t *)); -int sys_reboot __P((struct proc *, void *, register_t *)); -int netbsd_sys_revoke __P((struct proc *, void *, register_t *)); -int netbsd_sys_symlink __P((struct proc *, void *, register_t *)); -int netbsd_sys_readlink __P((struct proc *, void *, register_t *)); -int netbsd_sys_execve __P((struct proc *, void *, register_t *)); -int sys_umask __P((struct proc *, void *, register_t *)); -int netbsd_sys_chroot __P((struct proc *, void *, register_t *)); -int sys_fstat __P((struct proc *, void *, register_t *)); -int compat_43_sys_getkerninfo __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpagesize __P((struct proc *, void *, register_t *)); -int sys_omsync __P((struct proc *, void *, register_t *)); -int sys_vfork __P((struct proc *, void *, register_t *)); -int sys_sbrk __P((struct proc *, void *, register_t *)); -int sys_sstk __P((struct proc *, void *, register_t *)); -int sys_mmap __P((struct proc *, void *, register_t *)); -int sys_ovadvise __P((struct proc *, void *, register_t *)); -int sys_munmap __P((struct proc *, void *, register_t *)); -int sys_mprotect __P((struct proc *, void *, register_t *)); -int sys_madvise __P((struct proc *, void *, register_t *)); -int sys_mincore __P((struct proc *, void *, register_t *)); -int sys_getgroups __P((struct proc *, void *, register_t *)); -int sys_setgroups __P((struct proc *, void *, register_t *)); -int sys_getpgrp __P((struct proc *, void *, register_t *)); -int sys_setpgid __P((struct proc *, void *, register_t *)); -int sys_setitimer __P((struct proc *, void *, register_t *)); -int compat_43_sys_wait __P((struct proc *, void *, register_t *)); -int sys_swapon __P((struct proc *, void *, register_t *)); -int sys_getitimer __P((struct proc *, void *, register_t *)); -int compat_43_sys_gethostname __P((struct proc *, void *, register_t *)); -int compat_43_sys_sethostname __P((struct proc *, void *, register_t *)); -int compat_43_sys_getdtablesize __P((struct proc *, void *, register_t *)); -int sys_dup2 __P((struct proc *, void *, register_t *)); -int sys_fcntl __P((struct proc *, void *, register_t *)); -int sys_select __P((struct proc *, void *, register_t *)); -int sys_fsync __P((struct proc *, void *, register_t *)); -int sys_setpriority __P((struct proc *, void *, register_t *)); -int sys_socket __P((struct proc *, void *, register_t *)); -int sys_connect __P((struct proc *, void *, register_t *)); -int sys_accept __P((struct proc *, void *, register_t *)); -int sys_getpriority __P((struct proc *, void *, register_t *)); -int compat_43_sys_send __P((struct proc *, void *, register_t *)); -int compat_43_sys_recv __P((struct proc *, void *, register_t *)); -int sys_sigreturn __P((struct proc *, void *, register_t *)); -int sys_bind __P((struct proc *, void *, register_t *)); -int sys_setsockopt __P((struct proc *, void *, register_t *)); -int sys_listen __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigvec __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigblock __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigsetmask __P((struct proc *, void *, register_t *)); -int sys_sigsuspend __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigstack __P((struct proc *, void *, register_t *)); +int sys_sigaction(struct proc *, void *, register_t *); +int sys_getgid(struct proc *, void *, register_t *); +int sys_sigprocmask(struct proc *, void *, register_t *); +int sys_getlogin(struct proc *, void *, register_t *); +int sys_setlogin(struct proc *, void *, register_t *); +int sys_acct(struct proc *, void *, register_t *); +int sys_sigpending(struct proc *, void *, register_t *); +int sys_sigaltstack(struct proc *, void *, register_t *); +int sys_ioctl(struct proc *, void *, register_t *); +int sys_reboot(struct proc *, void *, register_t *); +int netbsd_sys_revoke(struct proc *, void *, register_t *); +int netbsd_sys_symlink(struct proc *, void *, register_t *); +int netbsd_sys_readlink(struct proc *, void *, register_t *); +int netbsd_sys_execve(struct proc *, void *, register_t *); +int sys_umask(struct proc *, void *, register_t *); +int netbsd_sys_chroot(struct proc *, void *, register_t *); +int sys_fstat(struct proc *, void *, register_t *); +int compat_43_sys_getkerninfo(struct proc *, void *, register_t *); +int compat_43_sys_getpagesize(struct proc *, void *, register_t *); +int sys_omsync(struct proc *, void *, register_t *); +int sys_vfork(struct proc *, void *, register_t *); +int sys_sbrk(struct proc *, void *, register_t *); +int sys_sstk(struct proc *, void *, register_t *); +int sys_mmap(struct proc *, void *, register_t *); +int sys_ovadvise(struct proc *, void *, register_t *); +int sys_munmap(struct proc *, void *, register_t *); +int sys_mprotect(struct proc *, void *, register_t *); +int sys_madvise(struct proc *, void *, register_t *); +int sys_mincore(struct proc *, void *, register_t *); +int sys_getgroups(struct proc *, void *, register_t *); +int sys_setgroups(struct proc *, void *, register_t *); +int sys_getpgrp(struct proc *, void *, register_t *); +int sys_setpgid(struct proc *, void *, register_t *); +int sys_setitimer(struct proc *, void *, register_t *); +int compat_43_sys_wait(struct proc *, void *, register_t *); +int sys_swapon(struct proc *, void *, register_t *); +int sys_getitimer(struct proc *, void *, register_t *); +int compat_43_sys_gethostname(struct proc *, void *, register_t *); +int compat_43_sys_sethostname(struct proc *, void *, register_t *); +int compat_43_sys_getdtablesize(struct proc *, void *, register_t *); +int sys_dup2(struct proc *, void *, register_t *); +int sys_fcntl(struct proc *, void *, register_t *); +int sys_select(struct proc *, void *, register_t *); +int sys_fsync(struct proc *, void *, register_t *); +int sys_setpriority(struct proc *, void *, register_t *); +int sys_socket(struct proc *, void *, register_t *); +int sys_connect(struct proc *, void *, register_t *); +int sys_accept(struct proc *, void *, register_t *); +int sys_getpriority(struct proc *, void *, register_t *); +int compat_43_sys_send(struct proc *, void *, register_t *); +int compat_43_sys_recv(struct proc *, void *, register_t *); +int sys_sigreturn(struct proc *, void *, register_t *); +int sys_bind(struct proc *, void *, register_t *); +int sys_setsockopt(struct proc *, void *, register_t *); +int sys_listen(struct proc *, void *, register_t *); +int compat_43_sys_sigvec(struct proc *, void *, register_t *); +int compat_43_sys_sigblock(struct proc *, void *, register_t *); +int compat_43_sys_sigsetmask(struct proc *, void *, register_t *); +int sys_sigsuspend(struct proc *, void *, register_t *); +int compat_43_sys_sigstack(struct proc *, void *, register_t *); #ifdef MSG_COMPAT -int compat_43_sys_recvmsg __P((struct proc *, void *, register_t *)); +int compat_43_sys_recvmsg(struct proc *, void *, register_t *); #else #endif #ifdef MSG_COMPAT -int compat_43_sys_sendmsg __P((struct proc *, void *, register_t *)); +int compat_43_sys_sendmsg(struct proc *, void *, register_t *); #else #endif -int sys_gettimeofday __P((struct proc *, void *, register_t *)); -int sys_getrusage __P((struct proc *, void *, register_t *)); -int sys_getsockopt __P((struct proc *, void *, register_t *)); -int sys_readv __P((struct proc *, void *, register_t *)); -int sys_writev __P((struct proc *, void *, register_t *)); -int sys_settimeofday __P((struct proc *, void *, register_t *)); -int sys_fchown __P((struct proc *, void *, register_t *)); -int sys_fchmod __P((struct proc *, void *, register_t *)); +int sys_gettimeofday(struct proc *, void *, register_t *); +int sys_getrusage(struct proc *, void *, register_t *); +int sys_getsockopt(struct proc *, void *, register_t *); +int sys_readv(struct proc *, void *, register_t *); +int sys_writev(struct proc *, void *, register_t *); +int sys_settimeofday(struct proc *, void *, register_t *); +int sys_fchown(struct proc *, void *, register_t *); +int sys_fchmod(struct proc *, void *, register_t *); #ifdef MSG_COMPAT -int compat_43_sys_recvfrom __P((struct proc *, void *, register_t *)); +int compat_43_sys_recvfrom(struct proc *, void *, register_t *); #else #endif -int compat_43_sys_setreuid __P((struct proc *, void *, register_t *)); -int compat_43_sys_setregid __P((struct proc *, void *, register_t *)); -int netbsd_sys_rename __P((struct proc *, void *, register_t *)); -int compat_43_netbsd_sys_truncate __P((struct proc *, void *, register_t *)); -int compat_43_sys_ftruncate __P((struct proc *, void *, register_t *)); -int sys_flock __P((struct proc *, void *, register_t *)); -int netbsd_sys_mkfifo __P((struct proc *, void *, register_t *)); -int sys_sendto __P((struct proc *, void *, register_t *)); -int sys_shutdown __P((struct proc *, void *, register_t *)); -int sys_socketpair __P((struct proc *, void *, register_t *)); -int netbsd_sys_mkdir __P((struct proc *, void *, register_t *)); -int netbsd_sys_rmdir __P((struct proc *, void *, register_t *)); -int sys_utimes __P((struct proc *, void *, register_t *)); -int sys_adjtime __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpeername __P((struct proc *, void *, register_t *)); -int compat_43_sys_gethostid __P((struct proc *, void *, register_t *)); -int compat_43_sys_sethostid __P((struct proc *, void *, register_t *)); -int compat_43_sys_getrlimit __P((struct proc *, void *, register_t *)); -int compat_43_sys_setrlimit __P((struct proc *, void *, register_t *)); -int compat_43_sys_killpg __P((struct proc *, void *, register_t *)); -int sys_setsid __P((struct proc *, void *, register_t *)); -int sys_quotactl __P((struct proc *, void *, register_t *)); -int compat_43_sys_quota __P((struct proc *, void *, register_t *)); -int compat_43_sys_getsockname __P((struct proc *, void *, register_t *)); +int compat_43_sys_setreuid(struct proc *, void *, register_t *); +int compat_43_sys_setregid(struct proc *, void *, register_t *); +int netbsd_sys_rename(struct proc *, void *, register_t *); +int compat_43_netbsd_sys_truncate(struct proc *, void *, register_t *); +int compat_43_sys_ftruncate(struct proc *, void *, register_t *); +int sys_flock(struct proc *, void *, register_t *); +int netbsd_sys_mkfifo(struct proc *, void *, register_t *); +int sys_sendto(struct proc *, void *, register_t *); +int sys_shutdown(struct proc *, void *, register_t *); +int sys_socketpair(struct proc *, void *, register_t *); +int netbsd_sys_mkdir(struct proc *, void *, register_t *); +int netbsd_sys_rmdir(struct proc *, void *, register_t *); +int sys_utimes(struct proc *, void *, register_t *); +int sys_adjtime(struct proc *, void *, register_t *); +int compat_43_sys_getpeername(struct proc *, void *, register_t *); +int compat_43_sys_gethostid(struct proc *, void *, register_t *); +int compat_43_sys_sethostid(struct proc *, void *, register_t *); +int compat_43_sys_getrlimit(struct proc *, void *, register_t *); +int compat_43_sys_setrlimit(struct proc *, void *, register_t *); +int compat_43_sys_killpg(struct proc *, void *, register_t *); +int sys_setsid(struct proc *, void *, register_t *); +int sys_quotactl(struct proc *, void *, register_t *); +int compat_43_sys_quota(struct proc *, void *, register_t *); +int compat_43_sys_getsockname(struct proc *, void *, register_t *); #if defined(NFSCLIENT) || defined(NFSSERVER) -int sys_nfssvc __P((struct proc *, void *, register_t *)); +int sys_nfssvc(struct proc *, void *, register_t *); #else #endif -int compat_43_sys_getdirentries __P((struct proc *, void *, register_t *)); -int compat_25_sys_statfs __P((struct proc *, void *, register_t *)); -int compat_25_sys_fstatfs __P((struct proc *, void *, register_t *)); +int compat_43_sys_getdirentries(struct proc *, void *, register_t *); +int compat_25_sys_statfs(struct proc *, void *, register_t *); +int compat_25_sys_fstatfs(struct proc *, void *, register_t *); #if defined(NFSCLIENT) || defined(NFSSERVER) -int sys_getfh __P((struct proc *, void *, register_t *)); +int sys_getfh(struct proc *, void *, register_t *); #else #endif -int compat_09_sys_getdomainname __P((struct proc *, void *, register_t *)); -int compat_09_sys_setdomainname __P((struct proc *, void *, register_t *)); -int compat_09_sys_uname __P((struct proc *, void *, register_t *)); -int sys_sysarch __P((struct proc *, void *, register_t *)); +int compat_09_sys_getdomainname(struct proc *, void *, register_t *); +int compat_09_sys_setdomainname(struct proc *, void *, register_t *); +int compat_09_sys_uname(struct proc *, void *, register_t *); +int sys_sysarch(struct proc *, void *, register_t *); #if defined(SYSVSEM) && !defined(alpha) -int compat_10_sys_semsys __P((struct proc *, void *, register_t *)); +int compat_10_sys_semsys(struct proc *, void *, register_t *); #else #endif #if defined(SYSVMSG) && !defined(alpha) -int compat_10_sys_msgsys __P((struct proc *, void *, register_t *)); +int compat_10_sys_msgsys(struct proc *, void *, register_t *); #else #endif #if defined(SYSVSHM) && !defined(alpha) -int compat_10_sys_shmsys __P((struct proc *, void *, register_t *)); +int compat_10_sys_shmsys(struct proc *, void *, register_t *); #else #endif -int sys_pread __P((struct proc *, void *, register_t *)); -int sys_pwrite __P((struct proc *, void *, register_t *)); +int sys_pread(struct proc *, void *, register_t *); +int sys_pwrite(struct proc *, void *, register_t *); #ifdef NTP -int sys_ntp_gettime __P((struct proc *, void *, register_t *)); -int sys_ntp_adjtime __P((struct proc *, void *, register_t *)); +int sys_ntp_gettime(struct proc *, void *, register_t *); +int sys_ntp_adjtime(struct proc *, void *, register_t *); #else #endif -int sys_setgid __P((struct proc *, void *, register_t *)); -int sys_setegid __P((struct proc *, void *, register_t *)); -int sys_seteuid __P((struct proc *, void *, register_t *)); +int sys_setgid(struct proc *, void *, register_t *); +int sys_setegid(struct proc *, void *, register_t *); +int sys_seteuid(struct proc *, void *, register_t *); #ifdef LFS -int lfs_bmapv __P((struct proc *, void *, register_t *)); -int lfs_markv __P((struct proc *, void *, register_t *)); -int lfs_segclean __P((struct proc *, void *, register_t *)); -int lfs_segwait __P((struct proc *, void *, register_t *)); +int lfs_bmapv(struct proc *, void *, register_t *); +int lfs_markv(struct proc *, void *, register_t *); +int lfs_segclean(struct proc *, void *, register_t *); +int lfs_segwait(struct proc *, void *, register_t *); #else #endif -int netbsd_sys_stat __P((struct proc *, void *, register_t *)); -int sys_fstat __P((struct proc *, void *, register_t *)); -int netbsd_sys_lstat __P((struct proc *, void *, register_t *)); -int netbsd_sys_pathconf __P((struct proc *, void *, register_t *)); -int sys_fpathconf __P((struct proc *, void *, register_t *)); -int sys_swapctl __P((struct proc *, void *, register_t *)); -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_lseek __P((struct proc *, void *, register_t *)); -int netbsd_sys_truncate __P((struct proc *, void *, register_t *)); -int sys_ftruncate __P((struct proc *, void *, register_t *)); -int sys___sysctl __P((struct proc *, void *, register_t *)); -int sys_mlock __P((struct proc *, void *, register_t *)); -int sys_munlock __P((struct proc *, void *, register_t *)); -int sys_undelete __P((struct proc *, void *, register_t *)); -int sys_futimes __P((struct proc *, void *, register_t *)); -int sys_getpgid __P((struct proc *, void *, register_t *)); -int sys_xfspioctl __P((struct proc *, void *, register_t *)); -int sys_poll __P((struct proc *, void *, register_t *)); +int netbsd_sys_stat(struct proc *, void *, register_t *); +int sys_fstat(struct proc *, void *, register_t *); +int netbsd_sys_lstat(struct proc *, void *, register_t *); +int netbsd_sys_pathconf(struct proc *, void *, register_t *); +int sys_fpathconf(struct proc *, void *, register_t *); +int sys_swapctl(struct proc *, void *, register_t *); +int sys_getrlimit(struct proc *, void *, register_t *); +int sys_setrlimit(struct proc *, void *, register_t *); +int sys_getdirentries(struct proc *, void *, register_t *); +int sys_mmap(struct proc *, void *, register_t *); +int sys_lseek(struct proc *, void *, register_t *); +int netbsd_sys_truncate(struct proc *, void *, register_t *); +int sys_ftruncate(struct proc *, void *, register_t *); +int sys___sysctl(struct proc *, void *, register_t *); +int sys_mlock(struct proc *, void *, register_t *); +int sys_munlock(struct proc *, void *, register_t *); +int sys_undelete(struct proc *, void *, register_t *); +int sys_futimes(struct proc *, void *, register_t *); +int sys_getpgid(struct proc *, void *, register_t *); +int sys_xfspioctl(struct proc *, void *, register_t *); +int sys_poll(struct proc *, void *, register_t *); #ifdef LKM -int sys_lkmnosys __P((struct proc *, void *, register_t *)); -int sys_lkmnosys __P((struct proc *, void *, register_t *)); -int sys_lkmnosys __P((struct proc *, void *, register_t *)); -int sys_lkmnosys __P((struct proc *, void *, register_t *)); -int sys_lkmnosys __P((struct proc *, void *, register_t *)); -int sys_lkmnosys __P((struct proc *, void *, register_t *)); -int sys_lkmnosys __P((struct proc *, void *, register_t *)); -int sys_lkmnosys __P((struct proc *, void *, register_t *)); -int sys_lkmnosys __P((struct proc *, void *, register_t *)); -int sys_lkmnosys __P((struct proc *, void *, register_t *)); +int sys_lkmnosys(struct proc *, void *, register_t *); +int sys_lkmnosys(struct proc *, void *, register_t *); +int sys_lkmnosys(struct proc *, void *, register_t *); +int sys_lkmnosys(struct proc *, void *, register_t *); +int sys_lkmnosys(struct proc *, void *, register_t *); +int sys_lkmnosys(struct proc *, void *, register_t *); +int sys_lkmnosys(struct proc *, void *, register_t *); +int sys_lkmnosys(struct proc *, void *, register_t *); +int sys_lkmnosys(struct proc *, void *, register_t *); +int sys_lkmnosys(struct proc *, void *, register_t *); #else /* !LKM */ #endif /* !LKM */ #ifdef SYSVSEM -int compat_23_sys___semctl __P((struct proc *, void *, register_t *)); -int sys_semget __P((struct proc *, void *, register_t *)); -int sys_semop __P((struct proc *, void *, register_t *)); +int compat_23_sys___semctl(struct proc *, void *, register_t *); +int sys_semget(struct proc *, void *, register_t *); +int sys_semop(struct proc *, void *, register_t *); #else #endif #ifdef SYSVMSG -int compat_23_sys_msgctl __P((struct proc *, void *, register_t *)); -int sys_msgget __P((struct proc *, void *, register_t *)); -int sys_msgsnd __P((struct proc *, void *, register_t *)); -int sys_msgrcv __P((struct proc *, void *, register_t *)); +int compat_23_sys_msgctl(struct proc *, void *, register_t *); +int sys_msgget(struct proc *, void *, register_t *); +int sys_msgsnd(struct proc *, void *, register_t *); +int sys_msgrcv(struct proc *, void *, register_t *); #else #endif #ifdef SYSVSHM -int sys_shmat __P((struct proc *, void *, register_t *)); -int compat_23_sys_shmctl __P((struct proc *, void *, register_t *)); -int sys_shmdt __P((struct proc *, void *, register_t *)); -int sys_shmget __P((struct proc *, void *, register_t *)); +int sys_shmat(struct proc *, void *, register_t *); +int compat_23_sys_shmctl(struct proc *, void *, register_t *); +int sys_shmdt(struct proc *, void *, register_t *); +int sys_shmget(struct proc *, void *, register_t *); #else #endif -int sys_clock_gettime __P((struct proc *, void *, register_t *)); -int sys_clock_settime __P((struct proc *, void *, register_t *)); -int sys_clock_getres __P((struct proc *, void *, register_t *)); -int sys_nanosleep __P((struct proc *, void *, register_t *)); -int netbsd_sys_fdatasync __P((struct proc *, void *, register_t *)); -int netbsd_sys_getdents __P((struct proc *, void *, register_t *)); -int sys_minherit __P((struct proc *, void *, register_t *)); -int netbsd_sys_lchmod __P((struct proc *, void *, register_t *)); -int sys_lchown __P((struct proc *, void *, register_t *)); -int netbsd_sys_lutimes __P((struct proc *, void *, register_t *)); -int sys_msync __P((struct proc *, void *, register_t *)); -int netbsd_sys___stat13 __P((struct proc *, void *, register_t *)); -int netbsd_sys___fstat13 __P((struct proc *, void *, register_t *)); -int netbsd_sys___lstat13 __P((struct proc *, void *, register_t *)); -int netbsd_sys___sigaltstack14 __P((struct proc *, void *, register_t *)); -int netbsd_sys___vfork14 __P((struct proc *, void *, register_t *)); -int sys_getsid __P((struct proc *, void *, register_t *)); +int sys_clock_gettime(struct proc *, void *, register_t *); +int sys_clock_settime(struct proc *, void *, register_t *); +int sys_clock_getres(struct proc *, void *, register_t *); +int sys_nanosleep(struct proc *, void *, register_t *); +int netbsd_sys_fdatasync(struct proc *, void *, register_t *); +int netbsd_sys_getdents(struct proc *, void *, register_t *); +int sys_minherit(struct proc *, void *, register_t *); +int netbsd_sys_lchmod(struct proc *, void *, register_t *); +int sys_lchown(struct proc *, void *, register_t *); +int netbsd_sys_lutimes(struct proc *, void *, register_t *); +int sys_msync(struct proc *, void *, register_t *); +int netbsd_sys___stat13(struct proc *, void *, register_t *); +int netbsd_sys___fstat13(struct proc *, void *, register_t *); +int netbsd_sys___lstat13(struct proc *, void *, register_t *); +int netbsd_sys___sigaltstack14(struct proc *, void *, register_t *); +int netbsd_sys___vfork14(struct proc *, void *, register_t *); +int sys_getsid(struct proc *, void *, register_t *); #ifdef KTRACE #else #endif -int sys_preadv __P((struct proc *, void *, register_t *)); -int sys_pwritev __P((struct proc *, void *, register_t *)); -int netbsd_sys___sigaction14 __P((struct proc *, void *, register_t *)); -int netbsd_sys___sigpending14 __P((struct proc *, void *, register_t *)); -int netbsd_sys___sigprocmask14 __P((struct proc *, void *, register_t *)); -int netbsd_sys___sigsuspend14 __P((struct proc *, void *, register_t *)); -int netbsd_sys___sigreturn14 __P((struct proc *, void *, register_t *)); -int netbsd_sys___getcwd __P((struct proc *, void *, register_t *)); -int sys_issetugid __P((struct proc *, void *, register_t *)); +int sys_preadv(struct proc *, void *, register_t *); +int sys_pwritev(struct proc *, void *, register_t *); +int netbsd_sys___sigaction14(struct proc *, void *, register_t *); +int netbsd_sys___sigpending14(struct proc *, void *, register_t *); +int netbsd_sys___sigprocmask14(struct proc *, void *, register_t *); +int netbsd_sys___sigsuspend14(struct proc *, void *, register_t *); +int netbsd_sys___sigreturn14(struct proc *, void *, register_t *); +int netbsd_sys___getcwd(struct proc *, void *, register_t *); +int sys_issetugid(struct proc *, void *, register_t *); diff --git a/sys/compat/osf1/osf1.h b/sys/compat/osf1/osf1.h index 55b6962eaea..2a20142b384 100644 --- a/sys/compat/osf1/osf1.h +++ b/sys/compat/osf1/osf1.h @@ -1,4 +1,4 @@ -/* $OpenBSD: osf1.h,v 1.2 2001/07/09 05:15:24 fgsch Exp $ */ +/* $OpenBSD: osf1.h,v 1.3 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: osf1.h,v 1.20 1999/05/10 21:41:07 cgd Exp $ */ /* @@ -72,7 +72,7 @@ typedef void *osf1_data_ptr; /* XXX hard to fix size */ typedef void *osf1_fcn_ptr; /* XXX hard to fix size, bogus */ typedef osf1_int osf1_key_t; typedef osf1_int osf1_pid_t; -typedef void (*osf1_handler_t) __P((int)); +typedef void (*osf1_handler_t)(int); struct osf1_timeval { /* time.h */ osf1_time_t tv_sec; diff --git a/sys/compat/osf1/osf1_exec.c b/sys/compat/osf1/osf1_exec.c index dab6d64c3c9..30858fb9e19 100644 --- a/sys/compat/osf1/osf1_exec.c +++ b/sys/compat/osf1/osf1_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: osf1_exec.c,v 1.3 2002/01/22 21:50:49 ericj Exp $ */ +/* $OpenBSD: osf1_exec.c,v 1.4 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD$ */ /* @@ -70,8 +70,8 @@ static int osf1_exec_ecoff_dynamic(struct proc *, struct exec_package *); #define MAX_AUX_ENTRIES 4 /* max we'll ever push (right now) */ extern struct sysent osf1_sysent[]; -extern void cpu_exec_ecoff_setregs __P((struct proc *, struct exec_package *, - u_long, register_t *)); +extern void cpu_exec_ecoff_setregs(struct proc *, struct exec_package *, + u_long, register_t *); extern char osf1_sigcode[], osf1_esigcode[]; struct emul emul_osf1 = { diff --git a/sys/compat/osf1/osf1_ioctl.c b/sys/compat/osf1/osf1_ioctl.c index c9ba9ae7963..46412c7dbbe 100644 --- a/sys/compat/osf1/osf1_ioctl.c +++ b/sys/compat/osf1/osf1_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: osf1_ioctl.c,v 1.4 2000/09/06 13:38:36 ericj Exp $ */ +/* $OpenBSD: osf1_ioctl.c,v 1.5 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: osf1_ioctl.c,v 1.11 1999/05/05 01:51:33 cgd Exp $ */ /* @@ -72,14 +72,14 @@ extern int scdebug; #endif -int osf1_ioctl_f __P((struct proc *p, struct sys_ioctl_args *nuap, - register_t *retval, int cmd, int dir, int len)); -int osf1_ioctl_i __P((struct proc *p, struct sys_ioctl_args *nuap, - register_t *retval, int cmd, int dir, int len)); -int osf1_ioctl_t __P((struct proc *p, struct sys_ioctl_args *nuap, - register_t *retval, int cmd, int dir, int len)); -int osf1_ioctl_m __P((struct proc *p, struct sys_ioctl_args *nuap, - register_t *retval, int cmd, int dir, int len)); +int osf1_ioctl_f(struct proc *p, struct sys_ioctl_args *nuap, + register_t *retval, int cmd, int dir, int len); +int osf1_ioctl_i(struct proc *p, struct sys_ioctl_args *nuap, + register_t *retval, int cmd, int dir, int len); +int osf1_ioctl_t(struct proc *p, struct sys_ioctl_args *nuap, + register_t *retval, int cmd, int dir, int len); +int osf1_ioctl_m(struct proc *p, struct sys_ioctl_args *nuap, + register_t *retval, int cmd, int dir, int len); int osf1_sys_ioctl(p, v, retval) diff --git a/sys/compat/osf1/osf1_mount.c b/sys/compat/osf1/osf1_mount.c index ec17ba7b2ef..c3a4e3ca43a 100644 --- a/sys/compat/osf1/osf1_mount.c +++ b/sys/compat/osf1/osf1_mount.c @@ -1,4 +1,4 @@ -/* $OpenBSD: osf1_mount.c,v 1.7 2002/02/22 20:37:45 drahn Exp $ */ +/* $OpenBSD: osf1_mount.c,v 1.8 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: osf1_mount.c,v 1.14 1999/05/05 01:51:34 cgd Exp $ */ /* @@ -100,10 +100,10 @@ #define OSF1_UNMOUNT_FLAGS (OSF1_MNT_FORCE|OSF1_MNT_NOFORCE) -static int osf1_mount_mfs __P((struct proc *, - struct osf1_sys_mount_args *, struct sys_mount_args *)); -static int osf1_mount_nfs __P((struct proc *, - struct osf1_sys_mount_args *, struct sys_mount_args *)); +static int osf1_mount_mfs(struct proc *, + struct osf1_sys_mount_args *, struct sys_mount_args *); +static int osf1_mount_nfs(struct proc *, + struct osf1_sys_mount_args *, struct sys_mount_args *); int osf1_sys_fstatfs(p, v, retval) diff --git a/sys/compat/osf1/osf1_syscallargs.h b/sys/compat/osf1/osf1_syscallargs.h index c57fab5c80d..c3d002c2565 100644 --- a/sys/compat/osf1/osf1_syscallargs.h +++ b/sys/compat/osf1/osf1_syscallargs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: osf1_syscallargs.h,v 1.9 2001/08/26 04:14:26 deraadt Exp $ */ +/* $OpenBSD: osf1_syscallargs.h,v 1.10 2002/03/14 01:26:50 millert Exp $ */ /* * System call argument lists. @@ -333,130 +333,130 @@ struct osf1_sys_setsysinfo_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 *)); -int sys_write __P((struct proc *, void *, register_t *)); -int sys_close __P((struct proc *, void *, register_t *)); -int osf1_sys_wait4 __P((struct proc *, void *, register_t *)); -int sys_link __P((struct proc *, void *, register_t *)); -int sys_unlink __P((struct proc *, void *, register_t *)); -int sys_chdir __P((struct proc *, void *, register_t *)); -int sys_fchdir __P((struct proc *, void *, register_t *)); -int osf1_sys_mknod __P((struct proc *, void *, register_t *)); -int sys_chmod __P((struct proc *, void *, register_t *)); -int sys_chown __P((struct proc *, void *, register_t *)); -int sys_obreak __P((struct proc *, void *, register_t *)); -int osf1_sys_getfsstat __P((struct proc *, void *, register_t *)); -int osf1_sys_lseek __P((struct proc *, void *, register_t *)); -int sys_getpid __P((struct proc *, void *, register_t *)); -int osf1_sys_mount __P((struct proc *, void *, register_t *)); -int osf1_sys_unmount __P((struct proc *, void *, register_t *)); -int osf1_sys_setuid __P((struct proc *, void *, register_t *)); -int sys_getuid __P((struct proc *, void *, register_t *)); -int osf1_sys_recvmsg_xopen __P((struct proc *, void *, register_t *)); -int osf1_sys_sendmsg_xopen __P((struct proc *, void *, register_t *)); -int osf1_sys_access __P((struct proc *, void *, register_t *)); -int sys_sync __P((struct proc *, void *, register_t *)); -int sys_kill __P((struct proc *, void *, register_t *)); -int sys_setpgid __P((struct proc *, void *, register_t *)); -int sys_dup __P((struct proc *, void *, register_t *)); -int sys_pipe __P((struct proc *, void *, register_t *)); -int osf1_sys_set_program_attributes __P((struct proc *, void *, register_t *)); -int osf1_sys_open __P((struct proc *, void *, register_t *)); -int sys_getgid __P((struct proc *, void *, register_t *)); -int sys_sigprocmask __P((struct proc *, void *, register_t *)); -int sys_getlogin __P((struct proc *, void *, register_t *)); -int sys_setlogin __P((struct proc *, void *, register_t *)); -int sys_acct __P((struct proc *, void *, register_t *)); -int osf1_sys_classcntl __P((struct proc *, void *, register_t *)); -int osf1_sys_ioctl __P((struct proc *, void *, register_t *)); -int osf1_sys_reboot __P((struct proc *, void *, register_t *)); -int sys_revoke __P((struct proc *, void *, register_t *)); -int sys_symlink __P((struct proc *, void *, register_t *)); -int sys_readlink __P((struct proc *, void *, register_t *)); -int osf1_sys_execve __P((struct proc *, void *, register_t *)); -int sys_umask __P((struct proc *, void *, register_t *)); -int sys_chroot __P((struct proc *, void *, register_t *)); -int sys_getpgrp __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpagesize __P((struct proc *, void *, register_t *)); -int sys_vfork __P((struct proc *, void *, register_t *)); -int osf1_sys_stat __P((struct proc *, void *, register_t *)); -int osf1_sys_lstat __P((struct proc *, void *, register_t *)); -int osf1_sys_mmap __P((struct proc *, void *, register_t *)); -int sys_munmap __P((struct proc *, void *, register_t *)); -int osf1_sys_mprotect __P((struct proc *, void *, register_t *)); -int osf1_sys_madvise __P((struct proc *, void *, register_t *)); -int sys_getgroups __P((struct proc *, void *, register_t *)); -int sys_setgroups __P((struct proc *, void *, register_t *)); -int sys_setpgid __P((struct proc *, void *, register_t *)); -int osf1_sys_setitimer __P((struct proc *, void *, register_t *)); -int compat_43_sys_gethostname __P((struct proc *, void *, register_t *)); -int compat_43_sys_sethostname __P((struct proc *, void *, register_t *)); -int compat_43_sys_getdtablesize __P((struct proc *, void *, register_t *)); -int sys_dup2 __P((struct proc *, void *, register_t *)); -int osf1_sys_fstat __P((struct proc *, void *, register_t *)); -int osf1_sys_fcntl __P((struct proc *, void *, register_t *)); -int osf1_sys_select __P((struct proc *, void *, register_t *)); -int sys_poll __P((struct proc *, void *, register_t *)); -int sys_fsync __P((struct proc *, void *, register_t *)); -int sys_setpriority __P((struct proc *, void *, register_t *)); -int osf1_sys_socket __P((struct proc *, void *, register_t *)); -int sys_connect __P((struct proc *, void *, register_t *)); -int compat_43_sys_accept __P((struct proc *, void *, register_t *)); -int sys_getpriority __P((struct proc *, void *, register_t *)); -int compat_43_sys_send __P((struct proc *, void *, register_t *)); -int compat_43_sys_recv __P((struct proc *, void *, register_t *)); -int sys_sigreturn __P((struct proc *, void *, register_t *)); -int sys_bind __P((struct proc *, void *, register_t *)); -int sys_setsockopt __P((struct proc *, void *, register_t *)); -int sys_listen __P((struct proc *, void *, register_t *)); -int sys_sigsuspend __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigstack __P((struct proc *, void *, register_t *)); -int osf1_sys_gettimeofday __P((struct proc *, void *, register_t *)); -int osf1_sys_getrusage __P((struct proc *, void *, register_t *)); -int sys_getsockopt __P((struct proc *, void *, register_t *)); -int osf1_sys_readv __P((struct proc *, void *, register_t *)); -int osf1_sys_writev __P((struct proc *, void *, register_t *)); -int osf1_sys_settimeofday __P((struct proc *, void *, register_t *)); -int sys_fchown __P((struct proc *, void *, register_t *)); -int sys_fchmod __P((struct proc *, void *, register_t *)); -int compat_43_sys_recvfrom __P((struct proc *, void *, register_t *)); -int sys_rename __P((struct proc *, void *, register_t *)); -int osf1_sys_truncate __P((struct proc *, void *, register_t *)); -int osf1_sys_ftruncate __P((struct proc *, void *, register_t *)); -int osf1_sys_setgid __P((struct proc *, void *, register_t *)); -int osf1_sys_sendto __P((struct proc *, void *, register_t *)); -int sys_shutdown __P((struct proc *, void *, register_t *)); -int osf1_sys_socketpair __P((struct proc *, void *, register_t *)); -int sys_mkdir __P((struct proc *, void *, register_t *)); -int sys_rmdir __P((struct proc *, void *, register_t *)); -int osf1_sys_utimes __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpeername __P((struct proc *, void *, register_t *)); -int compat_43_sys_gethostid __P((struct proc *, void *, register_t *)); -int compat_43_sys_sethostid __P((struct proc *, void *, register_t *)); -int osf1_sys_getrlimit __P((struct proc *, void *, register_t *)); -int osf1_sys_setrlimit __P((struct proc *, void *, register_t *)); -int sys_setsid __P((struct proc *, void *, register_t *)); -int compat_43_sys_quota __P((struct proc *, void *, register_t *)); -int compat_43_sys_getsockname __P((struct proc *, void *, register_t *)); -int osf1_sys_sigaction __P((struct proc *, void *, register_t *)); -int compat_43_sys_getdirentries __P((struct proc *, void *, register_t *)); -int osf1_sys_statfs __P((struct proc *, void *, register_t *)); -int osf1_sys_fstatfs __P((struct proc *, void *, register_t *)); -int compat_09_sys_getdomainname __P((struct proc *, void *, register_t *)); -int compat_09_sys_setdomainname __P((struct proc *, void *, register_t *)); -int osf1_sys_uname __P((struct proc *, void *, register_t *)); -int sys_lchown __P((struct proc *, void *, register_t *)); -int osf1_sys_shmat __P((struct proc *, void *, register_t *)); -int osf1_sys_shmctl __P((struct proc *, void *, register_t *)); -int osf1_sys_shmdt __P((struct proc *, void *, register_t *)); -int osf1_sys_shmget __P((struct proc *, void *, register_t *)); -int sys_getsid __P((struct proc *, void *, register_t *)); -int osf1_sys_sigaltstack __P((struct proc *, void *, register_t *)); -int osf1_sys_sysinfo __P((struct proc *, void *, register_t *)); -int osf1_sys_pathconf __P((struct proc *, void *, register_t *)); -int osf1_sys_fpathconf __P((struct proc *, void *, register_t *)); -int osf1_sys_usleep_thread __P((struct proc *, void *, register_t *)); -int osf1_sys_setsysinfo __P((struct proc *, void *, register_t *)); +int sys_nosys(struct proc *, void *, register_t *); +int sys_exit(struct proc *, void *, register_t *); +int sys_fork(struct proc *, void *, register_t *); +int sys_read(struct proc *, void *, register_t *); +int sys_write(struct proc *, void *, register_t *); +int sys_close(struct proc *, void *, register_t *); +int osf1_sys_wait4(struct proc *, void *, register_t *); +int sys_link(struct proc *, void *, register_t *); +int sys_unlink(struct proc *, void *, register_t *); +int sys_chdir(struct proc *, void *, register_t *); +int sys_fchdir(struct proc *, void *, register_t *); +int osf1_sys_mknod(struct proc *, void *, register_t *); +int sys_chmod(struct proc *, void *, register_t *); +int sys_chown(struct proc *, void *, register_t *); +int sys_obreak(struct proc *, void *, register_t *); +int osf1_sys_getfsstat(struct proc *, void *, register_t *); +int osf1_sys_lseek(struct proc *, void *, register_t *); +int sys_getpid(struct proc *, void *, register_t *); +int osf1_sys_mount(struct proc *, void *, register_t *); +int osf1_sys_unmount(struct proc *, void *, register_t *); +int osf1_sys_setuid(struct proc *, void *, register_t *); +int sys_getuid(struct proc *, void *, register_t *); +int osf1_sys_recvmsg_xopen(struct proc *, void *, register_t *); +int osf1_sys_sendmsg_xopen(struct proc *, void *, register_t *); +int osf1_sys_access(struct proc *, void *, register_t *); +int sys_sync(struct proc *, void *, register_t *); +int sys_kill(struct proc *, void *, register_t *); +int sys_setpgid(struct proc *, void *, register_t *); +int sys_dup(struct proc *, void *, register_t *); +int sys_pipe(struct proc *, void *, register_t *); +int osf1_sys_set_program_attributes(struct proc *, void *, register_t *); +int osf1_sys_open(struct proc *, void *, register_t *); +int sys_getgid(struct proc *, void *, register_t *); +int sys_sigprocmask(struct proc *, void *, register_t *); +int sys_getlogin(struct proc *, void *, register_t *); +int sys_setlogin(struct proc *, void *, register_t *); +int sys_acct(struct proc *, void *, register_t *); +int osf1_sys_classcntl(struct proc *, void *, register_t *); +int osf1_sys_ioctl(struct proc *, void *, register_t *); +int osf1_sys_reboot(struct proc *, void *, register_t *); +int sys_revoke(struct proc *, void *, register_t *); +int sys_symlink(struct proc *, void *, register_t *); +int sys_readlink(struct proc *, void *, register_t *); +int osf1_sys_execve(struct proc *, void *, register_t *); +int sys_umask(struct proc *, void *, register_t *); +int sys_chroot(struct proc *, void *, register_t *); +int sys_getpgrp(struct proc *, void *, register_t *); +int compat_43_sys_getpagesize(struct proc *, void *, register_t *); +int sys_vfork(struct proc *, void *, register_t *); +int osf1_sys_stat(struct proc *, void *, register_t *); +int osf1_sys_lstat(struct proc *, void *, register_t *); +int osf1_sys_mmap(struct proc *, void *, register_t *); +int sys_munmap(struct proc *, void *, register_t *); +int osf1_sys_mprotect(struct proc *, void *, register_t *); +int osf1_sys_madvise(struct proc *, void *, register_t *); +int sys_getgroups(struct proc *, void *, register_t *); +int sys_setgroups(struct proc *, void *, register_t *); +int sys_setpgid(struct proc *, void *, register_t *); +int osf1_sys_setitimer(struct proc *, void *, register_t *); +int compat_43_sys_gethostname(struct proc *, void *, register_t *); +int compat_43_sys_sethostname(struct proc *, void *, register_t *); +int compat_43_sys_getdtablesize(struct proc *, void *, register_t *); +int sys_dup2(struct proc *, void *, register_t *); +int osf1_sys_fstat(struct proc *, void *, register_t *); +int osf1_sys_fcntl(struct proc *, void *, register_t *); +int osf1_sys_select(struct proc *, void *, register_t *); +int sys_poll(struct proc *, void *, register_t *); +int sys_fsync(struct proc *, void *, register_t *); +int sys_setpriority(struct proc *, void *, register_t *); +int osf1_sys_socket(struct proc *, void *, register_t *); +int sys_connect(struct proc *, void *, register_t *); +int compat_43_sys_accept(struct proc *, void *, register_t *); +int sys_getpriority(struct proc *, void *, register_t *); +int compat_43_sys_send(struct proc *, void *, register_t *); +int compat_43_sys_recv(struct proc *, void *, register_t *); +int sys_sigreturn(struct proc *, void *, register_t *); +int sys_bind(struct proc *, void *, register_t *); +int sys_setsockopt(struct proc *, void *, register_t *); +int sys_listen(struct proc *, void *, register_t *); +int sys_sigsuspend(struct proc *, void *, register_t *); +int compat_43_sys_sigstack(struct proc *, void *, register_t *); +int osf1_sys_gettimeofday(struct proc *, void *, register_t *); +int osf1_sys_getrusage(struct proc *, void *, register_t *); +int sys_getsockopt(struct proc *, void *, register_t *); +int osf1_sys_readv(struct proc *, void *, register_t *); +int osf1_sys_writev(struct proc *, void *, register_t *); +int osf1_sys_settimeofday(struct proc *, void *, register_t *); +int sys_fchown(struct proc *, void *, register_t *); +int sys_fchmod(struct proc *, void *, register_t *); +int compat_43_sys_recvfrom(struct proc *, void *, register_t *); +int sys_rename(struct proc *, void *, register_t *); +int osf1_sys_truncate(struct proc *, void *, register_t *); +int osf1_sys_ftruncate(struct proc *, void *, register_t *); +int osf1_sys_setgid(struct proc *, void *, register_t *); +int osf1_sys_sendto(struct proc *, void *, register_t *); +int sys_shutdown(struct proc *, void *, register_t *); +int osf1_sys_socketpair(struct proc *, void *, register_t *); +int sys_mkdir(struct proc *, void *, register_t *); +int sys_rmdir(struct proc *, void *, register_t *); +int osf1_sys_utimes(struct proc *, void *, register_t *); +int compat_43_sys_getpeername(struct proc *, void *, register_t *); +int compat_43_sys_gethostid(struct proc *, void *, register_t *); +int compat_43_sys_sethostid(struct proc *, void *, register_t *); +int osf1_sys_getrlimit(struct proc *, void *, register_t *); +int osf1_sys_setrlimit(struct proc *, void *, register_t *); +int sys_setsid(struct proc *, void *, register_t *); +int compat_43_sys_quota(struct proc *, void *, register_t *); +int compat_43_sys_getsockname(struct proc *, void *, register_t *); +int osf1_sys_sigaction(struct proc *, void *, register_t *); +int compat_43_sys_getdirentries(struct proc *, void *, register_t *); +int osf1_sys_statfs(struct proc *, void *, register_t *); +int osf1_sys_fstatfs(struct proc *, void *, register_t *); +int compat_09_sys_getdomainname(struct proc *, void *, register_t *); +int compat_09_sys_setdomainname(struct proc *, void *, register_t *); +int osf1_sys_uname(struct proc *, void *, register_t *); +int sys_lchown(struct proc *, void *, register_t *); +int osf1_sys_shmat(struct proc *, void *, register_t *); +int osf1_sys_shmctl(struct proc *, void *, register_t *); +int osf1_sys_shmdt(struct proc *, void *, register_t *); +int osf1_sys_shmget(struct proc *, void *, register_t *); +int sys_getsid(struct proc *, void *, register_t *); +int osf1_sys_sigaltstack(struct proc *, void *, register_t *); +int osf1_sys_sysinfo(struct proc *, void *, register_t *); +int osf1_sys_pathconf(struct proc *, void *, register_t *); +int osf1_sys_fpathconf(struct proc *, void *, register_t *); +int osf1_sys_usleep_thread(struct proc *, void *, register_t *); +int osf1_sys_setsysinfo(struct proc *, void *, register_t *); diff --git a/sys/compat/ossaudio/ossaudio.c b/sys/compat/ossaudio/ossaudio.c index 71370993a55..b978de2856a 100644 --- a/sys/compat/ossaudio/ossaudio.c +++ b/sys/compat/ossaudio/ossaudio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ossaudio.c,v 1.7 2002/02/14 22:57:18 pvalchev Exp $ */ +/* $OpenBSD: ossaudio.c,v 1.8 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: ossaudio.c,v 1.23 1997/10/19 07:41:52 augustss Exp $ */ /* @@ -59,9 +59,9 @@ int ossdebug = 0; #define TO_OSSVOL(x) ((x) * 100 / 255) #define FROM_OSSVOL(x) ((x) * 255 / 100) -static struct audiodevinfo *getdevinfo __P((struct file *, struct proc *)); +static struct audiodevinfo *getdevinfo(struct file *, struct proc *); -static void setblocksize __P((struct file *, struct audio_info *, struct proc *)); +static void setblocksize(struct file *, struct audio_info *, struct proc *); int @@ -85,7 +85,7 @@ oss_ioctl_audio(p, uap, retval) u_int u; int idat, idata; int error; - int (*ioctlf) __P((struct file *, u_long, caddr_t, struct proc *)); + int (*ioctlf)(struct file *, u_long, caddr_t, struct proc *); fdp = p->p_fd; if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL) @@ -569,7 +569,7 @@ getdevinfo(fp, p) { 0, -1 } }; register const struct oss_devs *dp; - int (*ioctlf) __P((struct file *, u_long, caddr_t, struct proc *)) = + int (*ioctlf)(struct file *, u_long, caddr_t, struct proc *) = fp->f_ops->fo_ioctl; struct vnode *vp; struct vattr va; @@ -662,7 +662,7 @@ oss_ioctl_mixer(p, uap, retval) int i; int error; int l, r, n; - int (*ioctlf) __P((struct file *, u_long, caddr_t, struct proc *)); + int (*ioctlf)(struct file *, u_long, caddr_t, struct proc *); fdp = p->p_fd; if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL) diff --git a/sys/compat/ossaudio/ossaudio.h b/sys/compat/ossaudio/ossaudio.h index b4d345706c6..6dc990e90c8 100644 --- a/sys/compat/ossaudio/ossaudio.h +++ b/sys/compat/ossaudio/ossaudio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ossaudio.h,v 1.2 1998/04/26 22:15:44 provos Exp $ */ +/* $OpenBSD: ossaudio.h,v 1.3 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: ossaudio.h,v 1.5 1997/10/16 16:49:37 augustss Exp $ */ /* @@ -36,9 +36,9 @@ struct oss_sys_ioctl_args; -int oss_ioctl_audio __P((struct proc *, struct oss_sys_ioctl_args *, - register_t *)); -int oss_ioctl_mixer __P((struct proc *, struct oss_sys_ioctl_args *, - register_t *)); -int oss_ioctl_sequencer __P((struct proc *, struct oss_sys_ioctl_args *, - register_t *)); +int oss_ioctl_audio(struct proc *, struct oss_sys_ioctl_args *, + register_t *); +int oss_ioctl_mixer(struct proc *, struct oss_sys_ioctl_args *, + register_t *); +int oss_ioctl_sequencer(struct proc *, struct oss_sys_ioctl_args *, + register_t *); diff --git a/sys/compat/sunos/sunos.h b/sys/compat/sunos/sunos.h index 0392623d402..1c12971fc96 100644 --- a/sys/compat/sunos/sunos.h +++ b/sys/compat/sunos/sunos.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sunos.h,v 1.7 1999/06/03 16:01:15 deraadt Exp $ */ +/* $OpenBSD: sunos.h,v 1.8 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: sunos.h,v 1.8 1996/05/05 16:07:43 veego Exp $ */ #define SUNM_RDONLY 0x01 /* mount fs read-only */ @@ -146,6 +146,6 @@ struct sunos_audio_info { __BEGIN_DECLS /* Defined in arch/m68k/m68k/sunos_machdep.c -- sparc uses regular sendsig() */ #ifndef __sparc__ -void sunos_sendsig __P((sig_t, int, int, u_long, int, union sigval)); +void sunos_sendsig(sig_t, int, int, u_long, int, union sigval); #endif __END_DECLS diff --git a/sys/compat/sunos/sunos_exec.c b/sys/compat/sunos/sunos_exec.c index d7cbe05453a..44aa9925ec5 100644 --- a/sys/compat/sunos/sunos_exec.c +++ b/sys/compat/sunos/sunos_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sunos_exec.c,v 1.15 2001/11/15 06:22:30 art Exp $ */ +/* $OpenBSD: sunos_exec.c,v 1.16 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: sunos_exec.c,v 1.11 1996/05/05 12:01:47 briggs Exp $ */ /* @@ -60,10 +60,10 @@ #define sunos_exec_aout_prep_omagic exec_aout_prep_omagic #endif -int sunos_exec_aout_makecmds __P((struct proc *, struct exec_package *)); -int sunos_exec_aout_prep_zmagic __P((struct proc *, struct exec_package *)); -int sunos_exec_aout_prep_nmagic __P((struct proc *, struct exec_package *)); -int sunos_exec_aout_prep_omagic __P((struct proc *, struct exec_package *)); +int sunos_exec_aout_makecmds(struct proc *, struct exec_package *); +int sunos_exec_aout_prep_zmagic(struct proc *, struct exec_package *); +int sunos_exec_aout_prep_nmagic(struct proc *, struct exec_package *); +int sunos_exec_aout_prep_omagic(struct proc *, struct exec_package *); extern int nsunos_sysent; extern struct sysent sunos_sysent[]; diff --git a/sys/compat/sunos/sunos_ioctl.c b/sys/compat/sunos/sunos_ioctl.c index fa93293fb93..3d43e1f5092 100644 --- a/sys/compat/sunos/sunos_ioctl.c +++ b/sys/compat/sunos/sunos_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sunos_ioctl.c,v 1.12 2002/02/14 22:57:18 pvalchev Exp $ */ +/* $OpenBSD: sunos_ioctl.c,v 1.13 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: sunos_ioctl.c,v 1.23 1996/03/14 19:33:46 christos Exp $ */ /* @@ -95,10 +95,10 @@ static u_long s2btab[] = { 38400, }; -static void stios2btios __P((struct sunos_termios *, struct termios *)); -static void btios2stios __P((struct termios *, struct sunos_termios *)); -static void stios2stio __P((struct sunos_termios *, struct sunos_termio *)); -static void stio2stios __P((struct sunos_termio *, struct sunos_termios *)); +static void stios2btios(struct sunos_termios *, struct termios *); +static void btios2stios(struct termios *, struct sunos_termios *); +static void stios2stio(struct sunos_termios *, struct sunos_termio *); +static void stio2stios(struct sunos_termio *, struct sunos_termios *); /* * These two conversion functions have mostly been done @@ -401,7 +401,7 @@ sunos_sys_ioctl(p, v, retval) struct sunos_sys_ioctl_args *uap = v; struct filedesc *fdp = p->p_fd; struct file *fp; - int (*ctl) __P((struct file *, u_long, caddr_t, struct proc *)); + int (*ctl)(struct file *, u_long, caddr_t, struct proc *); int error; if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL) @@ -876,8 +876,8 @@ struct sunos_flock { short l_xxx; }; -static void bsd_to_sunos_flock __P((struct flock *, struct sunos_flock *)); -static void sunos_to_bsd_flock __P((struct sunos_flock *, struct flock *)); +static void bsd_to_sunos_flock(struct flock *, struct sunos_flock *); +static void sunos_to_bsd_flock(struct sunos_flock *, struct flock *); #define SUNOS_F_RDLCK 1 #define SUNOS_F_WRLCK 2 diff --git a/sys/compat/sunos/sunos_misc.c b/sys/compat/sunos/sunos_misc.c index 424802ab271..b46a5c89020 100644 --- a/sys/compat/sunos/sunos_misc.c +++ b/sys/compat/sunos/sunos_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sunos_misc.c,v 1.35 2002/03/14 00:42:25 miod Exp $ */ +/* $OpenBSD: sunos_misc.c,v 1.36 2002/03/14 01:26:50 millert Exp $ */ /* $NetBSD: sunos_misc.c,v 1.65 1996/04/22 01:44:31 christos Exp $ */ /* @@ -107,7 +107,7 @@ # include <machine/machdep.h> /* for prototype of reboot2() */ #endif -static int sunstatfs __P((struct statfs *, caddr_t)); +static int sunstatfs(struct statfs *, caddr_t); int sunos_sys_wait4(p, v, retval) @@ -378,7 +378,7 @@ sunos_sys_sigpending(p, v, retval) * * This is quite ugly, but what do you expect from compatibility code? */ -int sunos_readdir_callback __P((void *, struct dirent *, off_t)); +int sunos_readdir_callback(void *, struct dirent *, off_t); struct sunos_readdir_callback_args { caddr_t outp; diff --git a/sys/compat/sunos/sunos_syscallargs.h b/sys/compat/sunos/sunos_syscallargs.h index 552425b2b04..f210dcfd856 100644 --- a/sys/compat/sunos/sunos_syscallargs.h +++ b/sys/compat/sunos/sunos_syscallargs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sunos_syscallargs.h,v 1.14 2002/03/14 00:44:20 miod Exp $ */ +/* $OpenBSD: sunos_syscallargs.h,v 1.15 2002/03/14 01:26:50 millert Exp $ */ /* * System call argument lists. @@ -227,165 +227,165 @@ struct sunos_sys_uname_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 *)); -int sys_write __P((struct proc *, void *, register_t *)); -int sunos_sys_open __P((struct proc *, void *, register_t *)); -int sys_close __P((struct proc *, void *, register_t *)); -int sunos_sys_wait4 __P((struct proc *, void *, register_t *)); -int sunos_sys_creat __P((struct proc *, void *, register_t *)); -int sys_link __P((struct proc *, void *, register_t *)); -int sys_unlink __P((struct proc *, void *, register_t *)); -int sunos_sys_execv __P((struct proc *, void *, register_t *)); -int sys_chdir __P((struct proc *, void *, register_t *)); -int sunos_sys_mknod __P((struct proc *, void *, register_t *)); -int sys_chmod __P((struct proc *, void *, register_t *)); -int sys_lchown __P((struct proc *, void *, register_t *)); -int sys_obreak __P((struct proc *, void *, register_t *)); -int compat_43_sys_lseek __P((struct proc *, void *, register_t *)); -int sys_getpid __P((struct proc *, void *, register_t *)); -int sys_setuid __P((struct proc *, void *, register_t *)); -int sys_getuid __P((struct proc *, void *, register_t *)); -int sunos_sys_ostime __P((struct proc *, void *, register_t *)); +int sys_nosys(struct proc *, void *, register_t *); +int sys_exit(struct proc *, void *, register_t *); +int sys_fork(struct proc *, void *, register_t *); +int sys_read(struct proc *, void *, register_t *); +int sys_write(struct proc *, void *, register_t *); +int sunos_sys_open(struct proc *, void *, register_t *); +int sys_close(struct proc *, void *, register_t *); +int sunos_sys_wait4(struct proc *, void *, register_t *); +int sunos_sys_creat(struct proc *, void *, register_t *); +int sys_link(struct proc *, void *, register_t *); +int sys_unlink(struct proc *, void *, register_t *); +int sunos_sys_execv(struct proc *, void *, register_t *); +int sys_chdir(struct proc *, void *, register_t *); +int sunos_sys_mknod(struct proc *, void *, register_t *); +int sys_chmod(struct proc *, void *, register_t *); +int sys_lchown(struct proc *, void *, register_t *); +int sys_obreak(struct proc *, void *, register_t *); +int compat_43_sys_lseek(struct proc *, void *, register_t *); +int sys_getpid(struct proc *, void *, register_t *); +int sys_setuid(struct proc *, void *, register_t *); +int sys_getuid(struct proc *, void *, register_t *); +int sunos_sys_ostime(struct proc *, void *, register_t *); #ifdef PTRACE -int sunos_sys_ptrace __P((struct proc *, void *, register_t *)); +int sunos_sys_ptrace(struct proc *, void *, register_t *); #else #endif -int sunos_sys_access __P((struct proc *, void *, register_t *)); -int sys_sync __P((struct proc *, void *, register_t *)); -int sys_kill __P((struct proc *, void *, register_t *)); -int sunos_sys_stat __P((struct proc *, void *, register_t *)); -int sunos_sys_lstat __P((struct proc *, void *, register_t *)); -int sys_dup __P((struct proc *, void *, register_t *)); -int sys_opipe __P((struct proc *, void *, register_t *)); -int sunos_sys_otimes __P((struct proc *, void *, register_t *)); -int sys_profil __P((struct proc *, void *, register_t *)); -int sys_setgid __P((struct proc *, void *, register_t *)); -int sys_getgid __P((struct proc *, void *, register_t *)); -int sys_acct __P((struct proc *, void *, register_t *)); -int sunos_sys_mctl __P((struct proc *, void *, register_t *)); -int sunos_sys_ioctl __P((struct proc *, void *, register_t *)); -int sunos_sys_reboot __P((struct proc *, void *, register_t *)); -int sys_symlink __P((struct proc *, void *, register_t *)); -int sys_readlink __P((struct proc *, void *, register_t *)); -int sunos_sys_execve __P((struct proc *, void *, register_t *)); -int sys_umask __P((struct proc *, void *, register_t *)); -int sys_chroot __P((struct proc *, void *, register_t *)); -int compat_43_sys_fstat __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpagesize __P((struct proc *, void *, register_t *)); -int sys_msync __P((struct proc *, void *, register_t *)); -int sys_vfork __P((struct proc *, void *, register_t *)); -int sys_sbrk __P((struct proc *, void *, register_t *)); -int sys_sstk __P((struct proc *, void *, register_t *)); -int sunos_sys_mmap __P((struct proc *, void *, register_t *)); -int sys_ovadvise __P((struct proc *, void *, register_t *)); -int sys_munmap __P((struct proc *, void *, register_t *)); -int sys_mprotect __P((struct proc *, void *, register_t *)); -int sys_madvise __P((struct proc *, void *, register_t *)); -int sunos_sys_vhangup __P((struct proc *, void *, register_t *)); -int sys_mincore __P((struct proc *, void *, register_t *)); -int sys_getgroups __P((struct proc *, void *, register_t *)); -int sys_setgroups __P((struct proc *, void *, register_t *)); -int sys_getpgrp __P((struct proc *, void *, register_t *)); -int sunos_sys_setpgrp __P((struct proc *, void *, register_t *)); -int sys_setitimer __P((struct proc *, void *, register_t *)); -int sys_swapon __P((struct proc *, void *, register_t *)); -int sys_getitimer __P((struct proc *, void *, register_t *)); -int compat_43_sys_gethostname __P((struct proc *, void *, register_t *)); -int compat_43_sys_sethostname __P((struct proc *, void *, register_t *)); -int compat_43_sys_getdtablesize __P((struct proc *, void *, register_t *)); -int sys_dup2 __P((struct proc *, void *, register_t *)); -int sunos_sys_fcntl __P((struct proc *, void *, register_t *)); -int sys_select __P((struct proc *, void *, register_t *)); -int sys_fsync __P((struct proc *, void *, register_t *)); -int sys_setpriority __P((struct proc *, void *, register_t *)); -int sys_socket __P((struct proc *, void *, register_t *)); -int sys_connect __P((struct proc *, void *, register_t *)); -int compat_43_sys_accept __P((struct proc *, void *, register_t *)); -int sys_getpriority __P((struct proc *, void *, register_t *)); -int compat_43_sys_send __P((struct proc *, void *, register_t *)); -int compat_43_sys_recv __P((struct proc *, void *, register_t *)); -int sys_bind __P((struct proc *, void *, register_t *)); -int sunos_sys_setsockopt __P((struct proc *, void *, register_t *)); -int sys_listen __P((struct proc *, void *, register_t *)); -int sunos_sys_sigvec __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigblock __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigsetmask __P((struct proc *, void *, register_t *)); -int sys_sigsuspend __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigstack __P((struct proc *, void *, register_t *)); -int compat_43_sys_recvmsg __P((struct proc *, void *, register_t *)); -int compat_43_sys_sendmsg __P((struct proc *, void *, register_t *)); -int sys_gettimeofday __P((struct proc *, void *, register_t *)); -int sys_getrusage __P((struct proc *, void *, register_t *)); -int sys_getsockopt __P((struct proc *, void *, register_t *)); -int sys_readv __P((struct proc *, void *, register_t *)); -int sys_writev __P((struct proc *, void *, register_t *)); -int sys_settimeofday __P((struct proc *, void *, register_t *)); -int sys_fchown __P((struct proc *, void *, register_t *)); -int sys_fchmod __P((struct proc *, void *, register_t *)); -int compat_43_sys_recvfrom __P((struct proc *, void *, register_t *)); -int compat_43_sys_setreuid __P((struct proc *, void *, register_t *)); -int compat_43_sys_setregid __P((struct proc *, void *, register_t *)); -int sys_rename __P((struct proc *, void *, register_t *)); -int compat_43_sys_truncate __P((struct proc *, void *, register_t *)); -int compat_43_sys_ftruncate __P((struct proc *, void *, register_t *)); -int sys_flock __P((struct proc *, void *, register_t *)); -int sys_sendto __P((struct proc *, void *, register_t *)); -int sys_shutdown __P((struct proc *, void *, register_t *)); -int sys_socketpair __P((struct proc *, void *, register_t *)); -int sys_mkdir __P((struct proc *, void *, register_t *)); -int sys_rmdir __P((struct proc *, void *, register_t *)); -int sys_utimes __P((struct proc *, void *, register_t *)); -int sunos_sys_sigreturn __P((struct proc *, void *, register_t *)); -int sys_adjtime __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpeername __P((struct proc *, void *, register_t *)); -int compat_43_sys_gethostid __P((struct proc *, void *, register_t *)); -int sunos_sys_getrlimit __P((struct proc *, void *, register_t *)); -int sunos_sys_setrlimit __P((struct proc *, void *, register_t *)); -int compat_43_sys_killpg __P((struct proc *, void *, register_t *)); -int compat_43_sys_getsockname __P((struct proc *, void *, register_t *)); -int sys_poll __P((struct proc *, void *, register_t *)); +int sunos_sys_access(struct proc *, void *, register_t *); +int sys_sync(struct proc *, void *, register_t *); +int sys_kill(struct proc *, void *, register_t *); +int sunos_sys_stat(struct proc *, void *, register_t *); +int sunos_sys_lstat(struct proc *, void *, register_t *); +int sys_dup(struct proc *, void *, register_t *); +int sys_opipe(struct proc *, void *, register_t *); +int sunos_sys_otimes(struct proc *, void *, register_t *); +int sys_profil(struct proc *, void *, register_t *); +int sys_setgid(struct proc *, void *, register_t *); +int sys_getgid(struct proc *, void *, register_t *); +int sys_acct(struct proc *, void *, register_t *); +int sunos_sys_mctl(struct proc *, void *, register_t *); +int sunos_sys_ioctl(struct proc *, void *, register_t *); +int sunos_sys_reboot(struct proc *, void *, register_t *); +int sys_symlink(struct proc *, void *, register_t *); +int sys_readlink(struct proc *, void *, register_t *); +int sunos_sys_execve(struct proc *, void *, register_t *); +int sys_umask(struct proc *, void *, register_t *); +int sys_chroot(struct proc *, void *, register_t *); +int compat_43_sys_fstat(struct proc *, void *, register_t *); +int compat_43_sys_getpagesize(struct proc *, void *, register_t *); +int sys_msync(struct proc *, void *, register_t *); +int sys_vfork(struct proc *, void *, register_t *); +int sys_sbrk(struct proc *, void *, register_t *); +int sys_sstk(struct proc *, void *, register_t *); +int sunos_sys_mmap(struct proc *, void *, register_t *); +int sys_ovadvise(struct proc *, void *, register_t *); +int sys_munmap(struct proc *, void *, register_t *); +int sys_mprotect(struct proc *, void *, register_t *); +int sys_madvise(struct proc *, void *, register_t *); +int sunos_sys_vhangup(struct proc *, void *, register_t *); +int sys_mincore(struct proc *, void *, register_t *); +int sys_getgroups(struct proc *, void *, register_t *); +int sys_setgroups(struct proc *, void *, register_t *); +int sys_getpgrp(struct proc *, void *, register_t *); +int sunos_sys_setpgrp(struct proc *, void *, register_t *); +int sys_setitimer(struct proc *, void *, register_t *); +int sys_swapon(struct proc *, void *, register_t *); +int sys_getitimer(struct proc *, void *, register_t *); +int compat_43_sys_gethostname(struct proc *, void *, register_t *); +int compat_43_sys_sethostname(struct proc *, void *, register_t *); +int compat_43_sys_getdtablesize(struct proc *, void *, register_t *); +int sys_dup2(struct proc *, void *, register_t *); +int sunos_sys_fcntl(struct proc *, void *, register_t *); +int sys_select(struct proc *, void *, register_t *); +int sys_fsync(struct proc *, void *, register_t *); +int sys_setpriority(struct proc *, void *, register_t *); +int sys_socket(struct proc *, void *, register_t *); +int sys_connect(struct proc *, void *, register_t *); +int compat_43_sys_accept(struct proc *, void *, register_t *); +int sys_getpriority(struct proc *, void *, register_t *); +int compat_43_sys_send(struct proc *, void *, register_t *); +int compat_43_sys_recv(struct proc *, void *, register_t *); +int sys_bind(struct proc *, void *, register_t *); +int sunos_sys_setsockopt(struct proc *, void *, register_t *); +int sys_listen(struct proc *, void *, register_t *); +int sunos_sys_sigvec(struct proc *, void *, register_t *); +int compat_43_sys_sigblock(struct proc *, void *, register_t *); +int compat_43_sys_sigsetmask(struct proc *, void *, register_t *); +int sys_sigsuspend(struct proc *, void *, register_t *); +int compat_43_sys_sigstack(struct proc *, void *, register_t *); +int compat_43_sys_recvmsg(struct proc *, void *, register_t *); +int compat_43_sys_sendmsg(struct proc *, void *, register_t *); +int sys_gettimeofday(struct proc *, void *, register_t *); +int sys_getrusage(struct proc *, void *, register_t *); +int sys_getsockopt(struct proc *, void *, register_t *); +int sys_readv(struct proc *, void *, register_t *); +int sys_writev(struct proc *, void *, register_t *); +int sys_settimeofday(struct proc *, void *, register_t *); +int sys_fchown(struct proc *, void *, register_t *); +int sys_fchmod(struct proc *, void *, register_t *); +int compat_43_sys_recvfrom(struct proc *, void *, register_t *); +int compat_43_sys_setreuid(struct proc *, void *, register_t *); +int compat_43_sys_setregid(struct proc *, void *, register_t *); +int sys_rename(struct proc *, void *, register_t *); +int compat_43_sys_truncate(struct proc *, void *, register_t *); +int compat_43_sys_ftruncate(struct proc *, void *, register_t *); +int sys_flock(struct proc *, void *, register_t *); +int sys_sendto(struct proc *, void *, register_t *); +int sys_shutdown(struct proc *, void *, register_t *); +int sys_socketpair(struct proc *, void *, register_t *); +int sys_mkdir(struct proc *, void *, register_t *); +int sys_rmdir(struct proc *, void *, register_t *); +int sys_utimes(struct proc *, void *, register_t *); +int sunos_sys_sigreturn(struct proc *, void *, register_t *); +int sys_adjtime(struct proc *, void *, register_t *); +int compat_43_sys_getpeername(struct proc *, void *, register_t *); +int compat_43_sys_gethostid(struct proc *, void *, register_t *); +int sunos_sys_getrlimit(struct proc *, void *, register_t *); +int sunos_sys_setrlimit(struct proc *, void *, register_t *); +int compat_43_sys_killpg(struct proc *, void *, register_t *); +int compat_43_sys_getsockname(struct proc *, void *, register_t *); +int sys_poll(struct proc *, void *, register_t *); #ifdef NFSSERVER -int sunos_sys_nfssvc __P((struct proc *, void *, register_t *)); +int sunos_sys_nfssvc(struct proc *, void *, register_t *); #else #endif -int sys_getdirentries __P((struct proc *, void *, register_t *)); -int sunos_sys_statfs __P((struct proc *, void *, register_t *)); -int sunos_sys_fstatfs __P((struct proc *, void *, register_t *)); -int sunos_sys_unmount __P((struct proc *, void *, register_t *)); +int sys_getdirentries(struct proc *, void *, register_t *); +int sunos_sys_statfs(struct proc *, void *, register_t *); +int sunos_sys_fstatfs(struct proc *, void *, register_t *); +int sunos_sys_unmount(struct proc *, void *, register_t *); #ifdef NFSCLIENT -int async_daemon __P((struct proc *, void *, register_t *)); -int sys_getfh __P((struct proc *, void *, register_t *)); +int async_daemon(struct proc *, void *, register_t *); +int sys_getfh(struct proc *, void *, register_t *); #else #endif -int compat_09_sys_getdomainname __P((struct proc *, void *, register_t *)); -int compat_09_sys_setdomainname __P((struct proc *, void *, register_t *)); -int sunos_sys_quotactl __P((struct proc *, void *, register_t *)); -int sunos_sys_exportfs __P((struct proc *, void *, register_t *)); -int sunos_sys_mount __P((struct proc *, void *, register_t *)); -int sunos_sys_ustat __P((struct proc *, void *, register_t *)); +int compat_09_sys_getdomainname(struct proc *, void *, register_t *); +int compat_09_sys_setdomainname(struct proc *, void *, register_t *); +int sunos_sys_quotactl(struct proc *, void *, register_t *); +int sunos_sys_exportfs(struct proc *, void *, register_t *); +int sunos_sys_mount(struct proc *, void *, register_t *); +int sunos_sys_ustat(struct proc *, void *, register_t *); #ifdef SYSVSEM -int compat_10_sys_semsys __P((struct proc *, void *, register_t *)); +int compat_10_sys_semsys(struct proc *, void *, register_t *); #else #endif #ifdef SYSVMSG -int compat_10_sys_msgsys __P((struct proc *, void *, register_t *)); +int compat_10_sys_msgsys(struct proc *, void *, register_t *); #else #endif #ifdef SYSVSHM -int compat_10_sys_shmsys __P((struct proc *, void *, register_t *)); +int compat_10_sys_shmsys(struct proc *, void *, register_t *); #else #endif -int sunos_sys_auditsys __P((struct proc *, void *, register_t *)); -int sunos_sys_getdents __P((struct proc *, void *, register_t *)); -int sys_setsid __P((struct proc *, void *, register_t *)); -int sys_fchdir __P((struct proc *, void *, register_t *)); -int sunos_sys_fchroot __P((struct proc *, void *, register_t *)); -int sunos_sys_sigpending __P((struct proc *, void *, register_t *)); -int sys_setpgid __P((struct proc *, void *, register_t *)); -int sys_pathconf __P((struct proc *, void *, register_t *)); -int sys_fpathconf __P((struct proc *, void *, register_t *)); -int sunos_sys_sysconf __P((struct proc *, void *, register_t *)); -int sunos_sys_uname __P((struct proc *, void *, register_t *)); +int sunos_sys_auditsys(struct proc *, void *, register_t *); +int sunos_sys_getdents(struct proc *, void *, register_t *); +int sys_setsid(struct proc *, void *, register_t *); +int sys_fchdir(struct proc *, void *, register_t *); +int sunos_sys_fchroot(struct proc *, void *, register_t *); +int sunos_sys_sigpending(struct proc *, void *, register_t *); +int sys_setpgid(struct proc *, void *, register_t *); +int sys_pathconf(struct proc *, void *, register_t *); +int sys_fpathconf(struct proc *, void *, register_t *); +int sunos_sys_sysconf(struct proc *, void *, register_t *); +int sunos_sys_uname(struct proc *, void *, register_t *); diff --git a/sys/compat/svr4/svr4_exec.c b/sys/compat/svr4/svr4_exec.c index 33c77a100a6..fdfe8756bc1 100644 --- a/sys/compat/svr4/svr4_exec.c +++ b/sys/compat/svr4/svr4_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_exec.c,v 1.13 2001/11/06 19:53:18 miod Exp $ */ +/* $OpenBSD: svr4_exec.c,v 1.14 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_exec.c,v 1.16 1995/10/14 20:24:20 christos Exp $ */ /* @@ -51,8 +51,8 @@ #include <compat/svr4/svr4_exec.h> #include <compat/svr4/svr4_errno.h> -static void *svr4_copyargs __P((struct exec_package *, struct ps_strings *, - void *, void *)); +static void *svr4_copyargs(struct exec_package *, struct ps_strings *, + void *, void *); const char svr4_emul_path[] = "/emul/svr4"; extern char svr4_sigcode[], svr4_esigcode[]; diff --git a/sys/compat/svr4/svr4_exec.h b/sys/compat/svr4/svr4_exec.h index ac06679d3ed..84e0fb82a4c 100644 --- a/sys/compat/svr4/svr4_exec.h +++ b/sys/compat/svr4/svr4_exec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_exec.h,v 1.5 2000/06/15 05:44:10 brad Exp $ */ +/* $OpenBSD: svr4_exec.h,v 1.6 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_exec.h,v 1.7 1995/07/02 06:16:06 christos Exp $ */ /* @@ -62,7 +62,7 @@ # define SVR4_INTERP_ADDR 0 #endif -int svr4_elf_probe __P((struct proc *, struct exec_package *, char *, u_long *, - u_int8_t *)); +int svr4_elf_probe(struct proc *, struct exec_package *, char *, u_long *, + u_int8_t *); #endif /* !_SVR4_EXEC_H_ */ diff --git a/sys/compat/svr4/svr4_fcntl.c b/sys/compat/svr4/svr4_fcntl.c index c8badb3394a..02d10d8399a 100644 --- a/sys/compat/svr4/svr4_fcntl.c +++ b/sys/compat/svr4/svr4_fcntl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_fcntl.c,v 1.21 2002/02/13 19:08:06 art Exp $ */ +/* $OpenBSD: svr4_fcntl.c,v 1.22 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_fcntl.c,v 1.14 1995/10/14 20:24:24 christos Exp $ */ /* @@ -50,14 +50,14 @@ #include <compat/svr4/svr4_util.h> #include <compat/svr4/svr4_fcntl.h> -static u_long svr4_to_bsd_cmd __P((u_long)); -static int svr4_to_bsd_flags __P((int)); -static int bsd_to_svr4_flags __P((int)); -static void bsd_to_svr4_flock __P((struct flock *, struct svr4_flock *)); -static void svr4_to_bsd_flock __P((struct svr4_flock *, struct flock *)); -static void bsd_to_svr3_flock __P((struct flock *, struct svr4_flock_svr3 *)); -static void svr3_to_bsd_flock __P((struct svr4_flock_svr3 *, struct flock *)); -static int fd_truncate __P((struct proc *, int, struct flock *, register_t *)); +static u_long svr4_to_bsd_cmd(u_long); +static int svr4_to_bsd_flags(int); +static int bsd_to_svr4_flags(int); +static void bsd_to_svr4_flock(struct flock *, struct svr4_flock *); +static void svr4_to_bsd_flock(struct svr4_flock *, struct flock *); +static void bsd_to_svr3_flock(struct flock *, struct svr4_flock_svr3 *); +static void svr3_to_bsd_flock(struct svr4_flock_svr3 *, struct flock *); +static int fd_truncate(struct proc *, int, struct flock *, register_t *); static u_long svr4_to_bsd_cmd(cmd) diff --git a/sys/compat/svr4/svr4_filio.c b/sys/compat/svr4/svr4_filio.c index 6f1d6faec68..127f3f6ad6c 100644 --- a/sys/compat/svr4/svr4_filio.c +++ b/sys/compat/svr4/svr4_filio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_filio.c,v 1.4 1997/11/04 07:48:51 niklas Exp $ */ +/* $OpenBSD: svr4_filio.c,v 1.5 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_filio.c,v 1.5 1996/04/11 12:54:40 christos Exp $ */ /* @@ -64,7 +64,7 @@ svr4_fil_ioctl(fp, p, retval, fd, cmd, data) int error; int num; struct filedesc *fdp = p->p_fd; - int (*ctl) __P((struct file *, u_long, caddr_t, struct proc *)) = + int (*ctl)(struct file *, u_long, caddr_t, struct proc *) = fp->f_ops->fo_ioctl; *retval = 0; diff --git a/sys/compat/svr4/svr4_ioctl.c b/sys/compat/svr4/svr4_ioctl.c index 5586be3f055..5cf7e6e0716 100644 --- a/sys/compat/svr4/svr4_ioctl.c +++ b/sys/compat/svr4/svr4_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_ioctl.c,v 1.10 2002/02/13 19:08:06 art Exp $ */ +/* $OpenBSD: svr4_ioctl.c,v 1.11 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_ioctl.c,v 1.16 1996/04/11 12:54:41 christos Exp $ */ /* @@ -56,7 +56,7 @@ #include <compat/svr4/svr4_sockio.h> #ifdef DEBUG_SVR4 -static void svr4_decode_cmd __P((u_long, char *, char *, int *, int *)); +static void svr4_decode_cmd(u_long, char *, char *, int *, int *); /* * Decode an ioctl command symbolically */ @@ -93,8 +93,8 @@ svr4_sys_ioctl(p, v, retval) struct file *fp; struct filedesc *fdp; u_long cmd; - int (*fun) __P((struct file *, struct proc *, register_t *, - int, u_long, caddr_t)); + int (*fun)(struct file *, struct proc *, register_t *, + int, u_long, caddr_t); int error = 0; #ifdef DEBUG_SVR4 char dir[4]; diff --git a/sys/compat/svr4/svr4_ioctl.h b/sys/compat/svr4/svr4_ioctl.h index d35e96369ec..9b5b8d6f7d6 100644 --- a/sys/compat/svr4/svr4_ioctl.h +++ b/sys/compat/svr4/svr4_ioctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_ioctl.h,v 1.4 1997/11/04 07:45:35 niklas Exp $ */ +/* $OpenBSD: svr4_ioctl.h,v 1.5 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_ioctl.h,v 1.5 1996/04/11 12:54:43 christos Exp $ */ /* @@ -46,19 +46,19 @@ #define SVR4_IOW(g,n,t) SVR4_IOC(SVR4_IOC_IN, (g), (n), sizeof(t)) #define SVR4_IOWR(g,n,t) SVR4_IOC(SVR4_IOC_INOUT,(g), (n), sizeof(t)) -int svr4_stream_ti_ioctl __P((struct file *, struct proc *, register_t *, - int, u_long, caddr_t)); -int svr4_stream_ioctl __P((struct file *, struct proc *, register_t *, - int, u_long, caddr_t)); -int svr4_term_ioctl __P((struct file *, struct proc *, register_t *, - int, u_long, caddr_t)); -int svr4_ttold_ioctl __P((struct file *, struct proc *, register_t *, - int, u_long, caddr_t)); -int svr4_fil_ioctl __P((struct file *, struct proc *, register_t *, - int, u_long, caddr_t)); -int svr4_sock_ioctl __P((struct file *, struct proc *, register_t *, - int, u_long, caddr_t)); -int svr4_jerq_ioctl __P((struct file *, struct proc *, register_t *, - int, u_long, caddr_t)); +int svr4_stream_ti_ioctl(struct file *, struct proc *, register_t *, + int, u_long, caddr_t); +int svr4_stream_ioctl(struct file *, struct proc *, register_t *, + int, u_long, caddr_t); +int svr4_term_ioctl(struct file *, struct proc *, register_t *, + int, u_long, caddr_t); +int svr4_ttold_ioctl(struct file *, struct proc *, register_t *, + int, u_long, caddr_t); +int svr4_fil_ioctl(struct file *, struct proc *, register_t *, + int, u_long, caddr_t); +int svr4_sock_ioctl(struct file *, struct proc *, register_t *, + int, u_long, caddr_t); +int svr4_jerq_ioctl(struct file *, struct proc *, register_t *, + int, u_long, caddr_t); #endif /* !_SVR4_IOCTL_H_ */ diff --git a/sys/compat/svr4/svr4_ipc.c b/sys/compat/svr4/svr4_ipc.c index 130bca1dac8..3118a415873 100644 --- a/sys/compat/svr4/svr4_ipc.c +++ b/sys/compat/svr4/svr4_ipc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_ipc.c,v 1.8 2001/11/02 00:27:05 millert Exp $ */ +/* $OpenBSD: svr4_ipc.c,v 1.9 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_ipc.c,v 1.3 1997/03/30 17:21:02 christos Exp $ */ /* @@ -56,42 +56,42 @@ #include <compat/svr4/svr4_ipc.h> #if defined(SYSVMSG) || defined(SYSVSHM) || defined(SYSVSEM) -static void svr4_to_bsd_ipc_perm __P((const struct svr4_ipc_perm *, - struct ipc_perm *)); -static void bsd_to_svr4_ipc_perm __P((const struct ipc_perm *, - struct svr4_ipc_perm *)); +static void svr4_to_bsd_ipc_perm(const struct svr4_ipc_perm *, + struct ipc_perm *); +static void bsd_to_svr4_ipc_perm(const struct ipc_perm *, + struct svr4_ipc_perm *); #endif #ifdef SYSVSEM -static void bsd_to_svr4_semid_ds __P((const struct semid_ds *, - struct svr4_semid_ds *)); -static void svr4_to_bsd_semid_ds __P((const struct svr4_semid_ds *, - struct semid_ds *)); -static int svr4_semop __P((struct proc *, void *, register_t *)); -static int svr4_semget __P((struct proc *, void *, register_t *)); -static int svr4_semctl __P((struct proc *, void *, register_t *)); +static void bsd_to_svr4_semid_ds(const struct semid_ds *, + struct svr4_semid_ds *); +static void svr4_to_bsd_semid_ds(const struct svr4_semid_ds *, + struct semid_ds *); +static int svr4_semop(struct proc *, void *, register_t *); +static int svr4_semget(struct proc *, void *, register_t *); +static int svr4_semctl(struct proc *, void *, register_t *); #endif #ifdef SYSVMSG -static void bsd_to_svr4_msqid_ds __P((const struct msqid_ds *, - struct svr4_msqid_ds *)); -static void svr4_to_bsd_msqid_ds __P((const struct svr4_msqid_ds *, - struct msqid_ds *)); -static int svr4_msgsnd __P((struct proc *, void *, register_t *)); -static int svr4_msgrcv __P((struct proc *, void *, register_t *)); -static int svr4_msgget __P((struct proc *, void *, register_t *)); -static int svr4_msgctl __P((struct proc *, void *, register_t *)); +static void bsd_to_svr4_msqid_ds(const struct msqid_ds *, + struct svr4_msqid_ds *); +static void svr4_to_bsd_msqid_ds(const struct svr4_msqid_ds *, + struct msqid_ds *); +static int svr4_msgsnd(struct proc *, void *, register_t *); +static int svr4_msgrcv(struct proc *, void *, register_t *); +static int svr4_msgget(struct proc *, void *, register_t *); +static int svr4_msgctl(struct proc *, void *, register_t *); #endif #ifdef SYSVSHM -static void bsd_to_svr4_shmid_ds __P((const struct shmid_ds *, - struct svr4_shmid_ds *)); -static void svr4_to_bsd_shmid_ds __P((const struct svr4_shmid_ds *, - struct shmid_ds *)); -static int svr4_shmat __P((struct proc *, void *, register_t *)); -static int svr4_shmdt __P((struct proc *, void *, register_t *)); -static int svr4_shmget __P((struct proc *, void *, register_t *)); -static int svr4_shmctl __P((struct proc *, void *, register_t *)); +static void bsd_to_svr4_shmid_ds(const struct shmid_ds *, + struct svr4_shmid_ds *); +static void svr4_to_bsd_shmid_ds(const struct svr4_shmid_ds *, + struct shmid_ds *); +static int svr4_shmat(struct proc *, void *, register_t *); +static int svr4_shmdt(struct proc *, void *, register_t *); +static int svr4_shmget(struct proc *, void *, register_t *); +static int svr4_shmctl(struct proc *, void *, register_t *); #endif #if defined(SYSVMSG) || defined(SYSVSHM) || defined(SYSVSEM) diff --git a/sys/compat/svr4/svr4_jioctl.c b/sys/compat/svr4/svr4_jioctl.c index 7da26ab4f1f..23529e99737 100644 --- a/sys/compat/svr4/svr4_jioctl.c +++ b/sys/compat/svr4/svr4_jioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_jioctl.c,v 1.1 1997/11/04 07:45:33 niklas Exp $ */ +/* $OpenBSD: svr4_jioctl.c,v 1.2 2002/03/14 01:26:51 millert Exp $ */ /* * Copyright (c) 1997 Niklas Hallqvist @@ -56,7 +56,7 @@ svr4_jerq_ioctl(fp, p, retval, fd, cmd, data) struct svr4_jwinsize jws; struct winsize ws; int error; - int (*ctl) __P((struct file *, u_long, caddr_t, struct proc *)) = + int (*ctl)(struct file *, u_long, caddr_t, struct proc *) = fp->f_ops->fo_ioctl; switch (cmd) { diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c index 462b8a8468a..bbe3f4264ea 100644 --- a/sys/compat/svr4/svr4_misc.c +++ b/sys/compat/svr4/svr4_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_misc.c,v 1.40 2002/02/12 22:13:22 deraadt Exp $ */ +/* $OpenBSD: svr4_misc.c,v 1.41 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_misc.c,v 1.42 1996/12/06 03:22:34 christos Exp $ */ /* @@ -91,20 +91,20 @@ #include <uvm/uvm_extern.h> -static __inline clock_t timeval_to_clock_t __P((struct timeval *)); -static int svr4_setinfo __P((struct proc *, int, svr4_siginfo_t *)); +static __inline clock_t timeval_to_clock_t(struct timeval *); +static int svr4_setinfo(struct proc *, int, svr4_siginfo_t *); struct svr4_hrtcntl_args; -static int svr4_hrtcntl __P((struct proc *, struct svr4_hrtcntl_args *, - register_t *)); -static void bsd_statfs_to_svr4_statvfs __P((const struct statfs *, - struct svr4_statvfs *)); -static void bsd_statfs_to_svr4_statvfs64 __P((const struct statfs *, - struct svr4_statvfs64 *)); -static struct proc *svr4_pfind __P((pid_t pid)); +static int svr4_hrtcntl(struct proc *, struct svr4_hrtcntl_args *, + register_t *); +static void bsd_statfs_to_svr4_statvfs(const struct statfs *, + struct svr4_statvfs *); +static void bsd_statfs_to_svr4_statvfs64(const struct statfs *, + struct svr4_statvfs64 *); +static struct proc *svr4_pfind(pid_t pid); -static int svr4_mknod __P((struct proc *, register_t *, char *, - svr4_mode_t, svr4_dev_t)); +static int svr4_mknod(struct proc *, register_t *, char *, + svr4_mode_t, svr4_dev_t); int svr4_sys_wait(p, v, retval) @@ -218,8 +218,8 @@ svr4_sys_time(p, v, retval) * This is quite ugly, but what do you expect from compatibility code? */ -int svr4_readdir_callback __P((void *, struct dirent *, off_t)); -int svr4_readdir64_callback __P((void *, struct dirent *, off_t)); +int svr4_readdir_callback(void *, struct dirent *, off_t); +int svr4_readdir64_callback(void *, struct dirent *, off_t); struct svr4_readdir_callback_args { caddr_t outp; diff --git a/sys/compat/svr4/svr4_net.c b/sys/compat/svr4/svr4_net.c index adf7b0071f8..a4caf5cfac2 100644 --- a/sys/compat/svr4/svr4_net.c +++ b/sys/compat/svr4/svr4_net.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_net.c,v 1.14 2002/02/08 19:34:16 art Exp $ */ +/* $OpenBSD: svr4_net.c,v 1.15 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_net.c,v 1.12 1996/09/07 12:40:51 mycroft Exp $ */ /* @@ -77,9 +77,9 @@ enum { dev_unix_ord_stream = 40 }; -int svr4_netattach __P((int)); +int svr4_netattach(int); -static int svr4_soo_close __P((struct file *fp, struct proc *p)); +static int svr4_soo_close(struct file *fp, struct proc *p); static struct fileops svr4_netops = { soo_read, soo_write, soo_ioctl, soo_select, soo_kqfilter, diff --git a/sys/compat/svr4/svr4_signal.c b/sys/compat/svr4/svr4_signal.c index 285621567b6..c123e0243c8 100644 --- a/sys/compat/svr4/svr4_signal.c +++ b/sys/compat/svr4/svr4_signal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_signal.c,v 1.9 1998/12/22 07:58:46 deraadt Exp $ */ +/* $OpenBSD: svr4_signal.c,v 1.10 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_signal.c,v 1.24 1996/12/06 03:21:53 christos Exp $ */ /* @@ -58,11 +58,11 @@ #define svr4_sigismember(s, n) ((s)->bits[svr4_sigword(n)] & svr4_sigmask(n)) #define svr4_sigaddset(s, n) ((s)->bits[svr4_sigword(n)] |= svr4_sigmask(n)) -static __inline void svr4_sigfillset __P((svr4_sigset_t *)); -void svr4_to_bsd_sigaction __P((const struct svr4_sigaction *, - struct sigaction *)); -void bsd_to_svr4_sigaction __P((const struct sigaction *, - struct svr4_sigaction *)); +static __inline void svr4_sigfillset(svr4_sigset_t *); +void svr4_to_bsd_sigaction(const struct svr4_sigaction *, + struct sigaction *); +void bsd_to_svr4_sigaction(const struct sigaction *, + struct svr4_sigaction *); static __inline void svr4_sigfillset(s) diff --git a/sys/compat/svr4/svr4_signal.h b/sys/compat/svr4/svr4_signal.h index 39bf06132ea..411138ce897 100644 --- a/sys/compat/svr4/svr4_signal.h +++ b/sys/compat/svr4/svr4_signal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_signal.h,v 1.4 1997/06/02 09:42:17 deraadt Exp $ */ +/* $OpenBSD: svr4_signal.h,v 1.5 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_signal.h,v 1.14 1995/10/14 20:24:41 christos Exp $ */ /* @@ -77,7 +77,7 @@ #define SVR4_SIGIGNORE_MASK 0x0800 #define SVR4_SIGPAUSE_MASK 0x1000 -typedef void (*svr4_sig_t) __P((int, svr4_siginfo_t *, void *)); +typedef void (*svr4_sig_t)(int, svr4_siginfo_t *, void *); #define SVR4_SIG_DFL (svr4_sig_t) 0 #define SVR4_SIG_ERR (svr4_sig_t) -1 #define SVR4_SIG_IGN (svr4_sig_t) 1 @@ -121,9 +121,9 @@ struct svr4_sigaltstack { #define SVR4_SS_DISABLE 0x00000002 extern int bsd_to_svr4_sig[]; -void bsd_to_svr4_sigaltstack __P((const struct sigaltstack *, struct svr4_sigaltstack *)); -void bsd_to_svr4_sigset __P((const sigset_t *, svr4_sigset_t *)); -void svr4_to_bsd_sigaltstack __P((const struct svr4_sigaltstack *, struct sigaltstack *)); -void svr4_to_bsd_sigset __P((const svr4_sigset_t *, sigset_t *)); +void bsd_to_svr4_sigaltstack(const struct sigaltstack *, struct svr4_sigaltstack *); +void bsd_to_svr4_sigset(const sigset_t *, svr4_sigset_t *); +void svr4_to_bsd_sigaltstack(const struct svr4_sigaltstack *, struct sigaltstack *); +void svr4_to_bsd_sigset(const svr4_sigset_t *, sigset_t *); #endif /* !_SVR4_SIGNAL_H_ */ diff --git a/sys/compat/svr4/svr4_socket.h b/sys/compat/svr4/svr4_socket.h index 381df85ad5c..1360ac172b4 100644 --- a/sys/compat/svr4/svr4_socket.h +++ b/sys/compat/svr4/svr4_socket.h @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_socket.h,v 1.1 1996/04/21 22:18:25 deraadt Exp $ */ +/* $OpenBSD: svr4_socket.h,v 1.2 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_socket.h,v 1.1 1996/04/11 12:43:31 christos Exp $ */ /* @@ -37,9 +37,9 @@ struct sockaddr_un; struct proc; struct file; -struct sockaddr_un *svr4_find_socket __P((struct proc *, struct file *, - dev_t, ino_t)); -void svr4_delete_socket __P((struct proc *, struct file *)); -int svr4_add_socket __P((struct proc *, const char *, struct stat *)); +struct sockaddr_un *svr4_find_socket(struct proc *, struct file *, + dev_t, ino_t); +void svr4_delete_socket(struct proc *, struct file *); +int svr4_add_socket(struct proc *, const char *, struct stat *); #endif /* _SVR4_SOCKET_H_ */ diff --git a/sys/compat/svr4/svr4_sockio.c b/sys/compat/svr4/svr4_sockio.c index 535238412c7..7da1c24b450 100644 --- a/sys/compat/svr4/svr4_sockio.c +++ b/sys/compat/svr4/svr4_sockio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_sockio.c,v 1.7 2000/08/29 02:22:13 brad Exp $ */ +/* $OpenBSD: svr4_sockio.c,v 1.8 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_sockio.c,v 1.10 1996/05/03 17:09:15 christos Exp $ */ /* @@ -51,7 +51,7 @@ #include <compat/svr4/svr4_ioctl.h> #include <compat/svr4/svr4_sockio.h> -static int bsd_to_svr4_flags __P((int)); +static int bsd_to_svr4_flags(int); #define bsd_to_svr4_flag(a) \ if (bf & __CONCAT(I,a)) sf |= __CONCAT(SVR4_I,a) @@ -85,7 +85,7 @@ svr4_sock_ioctl(fp, p, retval, fd, cmd, data) caddr_t data; { int error; - int (*ctl) __P((struct file *, u_long, caddr_t, struct proc *)) = + int (*ctl)(struct file *, u_long, caddr_t, struct proc *) = fp->f_ops->fo_ioctl; *retval = 0; diff --git a/sys/compat/svr4/svr4_stat.c b/sys/compat/svr4/svr4_stat.c index af41622d988..d9698f40084 100644 --- a/sys/compat/svr4/svr4_stat.c +++ b/sys/compat/svr4/svr4_stat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_stat.c,v 1.20 2001/11/06 19:53:18 miod Exp $ */ +/* $OpenBSD: svr4_stat.c,v 1.21 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_stat.c,v 1.21 1996/04/22 01:16:07 christos Exp $ */ /* @@ -68,10 +68,10 @@ # define SVR4_NO_OSTAT #endif -static void bsd_to_svr4_xstat __P((struct stat *, struct svr4_xstat *)); -static void bsd_to_svr4_stat64 __P((struct stat *, struct svr4_stat64 *)); -int svr4_ustat __P((struct proc *, void *, register_t *)); -static int svr4_to_bsd_pathconf __P((int)); +static void bsd_to_svr4_xstat(struct stat *, struct svr4_xstat *); +static void bsd_to_svr4_stat64(struct stat *, struct svr4_stat64 *); +int svr4_ustat(struct proc *, void *, register_t *); +static int svr4_to_bsd_pathconf(int); /* * SVR4 uses named pipes as named sockets, so we tell programs @@ -81,7 +81,7 @@ static int svr4_to_bsd_pathconf __P((int)); #ifndef SVR4_NO_OSTAT -static void bsd_to_svr4_stat __P((struct stat *, struct svr4_stat *)); +static void bsd_to_svr4_stat(struct stat *, struct svr4_stat *); static void bsd_to_svr4_stat(st, st4) diff --git a/sys/compat/svr4/svr4_stream.c b/sys/compat/svr4/svr4_stream.c index 09828a6ffce..48dbf16797c 100644 --- a/sys/compat/svr4/svr4_stream.c +++ b/sys/compat/svr4/svr4_stream.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_stream.c,v 1.16 2002/02/14 22:57:18 pvalchev Exp $ */ +/* $OpenBSD: svr4_stream.c,v 1.17 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_stream.c,v 1.19 1996/12/22 23:00:03 fvdl Exp $ */ /* @@ -71,59 +71,59 @@ #include <compat/svr4/svr4_socket.h> /* Utils */ -static int clean_pipe __P((struct proc *, const char *)); -static void getparm __P((struct file *, struct svr4_si_sockparms *)); +static int clean_pipe(struct proc *, const char *); +static void getparm(struct file *, struct svr4_si_sockparms *); /* Address Conversions */ -static void sockaddr_to_netaddr_in __P((struct svr4_strmcmd *, - const struct sockaddr_in *)); -static void sockaddr_to_netaddr_un __P((struct svr4_strmcmd *, - const struct sockaddr_un *)); -static void netaddr_to_sockaddr_in __P((struct sockaddr_in *, - const struct svr4_strmcmd *)); -static void netaddr_to_sockaddr_un __P((struct sockaddr_un *, - const struct svr4_strmcmd *)); +static void sockaddr_to_netaddr_in(struct svr4_strmcmd *, + const struct sockaddr_in *); +static void sockaddr_to_netaddr_un(struct svr4_strmcmd *, + const struct sockaddr_un *); +static void netaddr_to_sockaddr_in(struct sockaddr_in *, + const struct svr4_strmcmd *); +static void netaddr_to_sockaddr_un(struct sockaddr_un *, + const struct svr4_strmcmd *); /* stream ioctls */ -static int i_nread __P((struct file *, struct proc *, register_t *, int, - u_long, caddr_t)); -static int i_fdinsert __P((struct file *, struct proc *, register_t *, int, - u_long, caddr_t)); -static int i_str __P((struct file *, struct proc *, register_t *, int, - u_long, caddr_t)); -static int _i_bind_rsvd __P((struct file *, struct proc *, register_t *, int, - u_long, caddr_t)); -static int _i_rele_rsvd __P((struct file *, struct proc *, register_t *, int, - u_long, caddr_t)); +static int i_nread(struct file *, struct proc *, register_t *, int, + u_long, caddr_t); +static int i_fdinsert(struct file *, struct proc *, register_t *, int, + u_long, caddr_t); +static int i_str(struct file *, struct proc *, register_t *, int, + u_long, caddr_t); +static int _i_bind_rsvd(struct file *, struct proc *, register_t *, int, + u_long, caddr_t); +static int _i_rele_rsvd(struct file *, struct proc *, register_t *, int, + u_long, caddr_t); /* i_str sockmod calls */ -static int sockmod __P((struct file *, int, struct svr4_strioctl *, - struct proc *)); -static int si_listen __P((struct file *, int, struct svr4_strioctl *, - struct proc *)); -static int si_ogetudata __P((struct file *, int, struct svr4_strioctl *, - struct proc *)); -static int si_sockparams __P((struct file *, int, struct svr4_strioctl *, - struct proc *)); -static int si_shutdown __P((struct file *, int, struct svr4_strioctl *, - struct proc *)); -static int si_getudata __P((struct file *, int, struct svr4_strioctl *, - struct proc *)); +static int sockmod(struct file *, int, struct svr4_strioctl *, + struct proc *); +static int si_listen(struct file *, int, struct svr4_strioctl *, + struct proc *); +static int si_ogetudata(struct file *, int, struct svr4_strioctl *, + struct proc *); +static int si_sockparams(struct file *, int, struct svr4_strioctl *, + struct proc *); +static int si_shutdown(struct file *, int, struct svr4_strioctl *, + struct proc *); +static int si_getudata(struct file *, int, struct svr4_strioctl *, + struct proc *); /* i_str timod calls */ -static int timod __P((struct file *, int, struct svr4_strioctl *, - struct proc *)); -static int ti_getinfo __P((struct file *, int, struct svr4_strioctl *, - struct proc *)); -static int ti_bind __P((struct file *, int, struct svr4_strioctl *, - struct proc *)); +static int timod(struct file *, int, struct svr4_strioctl *, + struct proc *); +static int ti_getinfo(struct file *, int, struct svr4_strioctl *, + struct proc *); +static int ti_bind(struct file *, int, struct svr4_strioctl *, + struct proc *); #ifdef DEBUG_SVR4 -static void bufprint __P((u_char *, size_t)); -static int show_ioc __P((const char *, struct svr4_strioctl *)); -static int show_strbuf __P((struct svr4_strbuf *)); -static void show_msg __P((const char *, int, struct svr4_strbuf *, - struct svr4_strbuf *, int)); +static void bufprint(u_char *, size_t); +static int show_ioc(const char *, struct svr4_strioctl *); +static int show_strbuf(struct svr4_strbuf *); +static void show_msg(const char *, int, struct svr4_strbuf *, + struct svr4_strbuf *, int); static void bufprint(buf, len) diff --git a/sys/compat/svr4/svr4_stropts.h b/sys/compat/svr4/svr4_stropts.h index bd217824041..929bb20e8d8 100644 --- a/sys/compat/svr4/svr4_stropts.h +++ b/sys/compat/svr4/svr4_stropts.h @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_stropts.h,v 1.4 1997/02/13 19:45:25 niklas Exp $ */ +/* $OpenBSD: svr4_stropts.h,v 1.5 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_stropts.h,v 1.9 1996/10/28 08:46:38 fvdl Exp $ */ /* @@ -147,6 +147,6 @@ struct svr4_netaddr_un { #define SVR4_ADDROF(sc) (void *) (((char *) (sc)) + (sc)->offs) #define SVR4_C_ADDROF(sc) (const void *) (((const char *) (sc)) + (sc)->offs) -struct svr4_strm *svr4_stream_get __P((struct file *fp)); +struct svr4_strm *svr4_stream_get(struct file *fp); #endif /* !_SVR4_STROPTS */ diff --git a/sys/compat/svr4/svr4_syscallargs.h b/sys/compat/svr4/svr4_syscallargs.h index 2e99a8db671..57668125cd7 100644 --- a/sys/compat/svr4/svr4_syscallargs.h +++ b/sys/compat/svr4/svr4_syscallargs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_syscallargs.h,v 1.32 2001/08/26 04:14:27 deraadt Exp $ */ +/* $OpenBSD: svr4_syscallargs.h,v 1.33 2002/03/14 01:26:51 millert Exp $ */ /* * System call argument lists. @@ -453,161 +453,161 @@ struct svr4_sys_socket_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 *)); -int sys_write __P((struct proc *, void *, register_t *)); -int svr4_sys_open __P((struct proc *, void *, register_t *)); -int sys_close __P((struct proc *, void *, register_t *)); -int svr4_sys_wait __P((struct proc *, void *, register_t *)); -int svr4_sys_creat __P((struct proc *, void *, register_t *)); -int sys_link __P((struct proc *, void *, register_t *)); -int sys_unlink __P((struct proc *, void *, register_t *)); -int svr4_sys_execv __P((struct proc *, void *, register_t *)); -int sys_chdir __P((struct proc *, void *, register_t *)); -int svr4_sys_time __P((struct proc *, void *, register_t *)); -int svr4_sys_mknod __P((struct proc *, void *, register_t *)); -int sys_chmod __P((struct proc *, void *, register_t *)); -int sys_chown __P((struct proc *, void *, register_t *)); -int svr4_sys_break __P((struct proc *, void *, register_t *)); -int svr4_sys_stat __P((struct proc *, void *, register_t *)); -int compat_43_sys_lseek __P((struct proc *, void *, register_t *)); -int sys_getpid __P((struct proc *, void *, register_t *)); -int sys_setuid __P((struct proc *, void *, register_t *)); -int sys_getuid __P((struct proc *, void *, register_t *)); -int svr4_sys_alarm __P((struct proc *, void *, register_t *)); -int svr4_sys_fstat __P((struct proc *, void *, register_t *)); -int svr4_sys_pause __P((struct proc *, void *, register_t *)); -int svr4_sys_utime __P((struct proc *, void *, register_t *)); -int svr4_sys_access __P((struct proc *, void *, register_t *)); -int svr4_sys_nice __P((struct proc *, void *, register_t *)); -int sys_sync __P((struct proc *, void *, register_t *)); -int svr4_sys_kill __P((struct proc *, void *, register_t *)); -int svr4_sys_pgrpsys __P((struct proc *, void *, register_t *)); -int sys_dup __P((struct proc *, void *, register_t *)); -int sys_opipe __P((struct proc *, void *, register_t *)); -int svr4_sys_times __P((struct proc *, void *, register_t *)); -int sys_setgid __P((struct proc *, void *, register_t *)); -int sys_getgid __P((struct proc *, void *, register_t *)); -int svr4_sys_signal __P((struct proc *, void *, register_t *)); +int sys_nosys(struct proc *, void *, register_t *); +int sys_exit(struct proc *, void *, register_t *); +int sys_fork(struct proc *, void *, register_t *); +int sys_read(struct proc *, void *, register_t *); +int sys_write(struct proc *, void *, register_t *); +int svr4_sys_open(struct proc *, void *, register_t *); +int sys_close(struct proc *, void *, register_t *); +int svr4_sys_wait(struct proc *, void *, register_t *); +int svr4_sys_creat(struct proc *, void *, register_t *); +int sys_link(struct proc *, void *, register_t *); +int sys_unlink(struct proc *, void *, register_t *); +int svr4_sys_execv(struct proc *, void *, register_t *); +int sys_chdir(struct proc *, void *, register_t *); +int svr4_sys_time(struct proc *, void *, register_t *); +int svr4_sys_mknod(struct proc *, void *, register_t *); +int sys_chmod(struct proc *, void *, register_t *); +int sys_chown(struct proc *, void *, register_t *); +int svr4_sys_break(struct proc *, void *, register_t *); +int svr4_sys_stat(struct proc *, void *, register_t *); +int compat_43_sys_lseek(struct proc *, void *, register_t *); +int sys_getpid(struct proc *, void *, register_t *); +int sys_setuid(struct proc *, void *, register_t *); +int sys_getuid(struct proc *, void *, register_t *); +int svr4_sys_alarm(struct proc *, void *, register_t *); +int svr4_sys_fstat(struct proc *, void *, register_t *); +int svr4_sys_pause(struct proc *, void *, register_t *); +int svr4_sys_utime(struct proc *, void *, register_t *); +int svr4_sys_access(struct proc *, void *, register_t *); +int svr4_sys_nice(struct proc *, void *, register_t *); +int sys_sync(struct proc *, void *, register_t *); +int svr4_sys_kill(struct proc *, void *, register_t *); +int svr4_sys_pgrpsys(struct proc *, void *, register_t *); +int sys_dup(struct proc *, void *, register_t *); +int sys_opipe(struct proc *, void *, register_t *); +int svr4_sys_times(struct proc *, void *, register_t *); +int sys_setgid(struct proc *, void *, register_t *); +int sys_getgid(struct proc *, void *, register_t *); +int svr4_sys_signal(struct proc *, void *, register_t *); #ifdef SYSVMSG -int svr4_sys_msgsys __P((struct proc *, void *, register_t *)); +int svr4_sys_msgsys(struct proc *, void *, register_t *); #else #endif -int svr4_sys_sysarch __P((struct proc *, void *, register_t *)); +int svr4_sys_sysarch(struct proc *, void *, register_t *); #ifdef SYSVSHM -int svr4_sys_shmsys __P((struct proc *, void *, register_t *)); +int svr4_sys_shmsys(struct proc *, void *, register_t *); #else #endif #ifdef SYSVSEM -int svr4_sys_semsys __P((struct proc *, void *, register_t *)); +int svr4_sys_semsys(struct proc *, void *, register_t *); #else #endif -int svr4_sys_ioctl __P((struct proc *, void *, register_t *)); -int svr4_sys_utssys __P((struct proc *, void *, register_t *)); -int sys_fsync __P((struct proc *, void *, register_t *)); -int svr4_sys_execve __P((struct proc *, void *, register_t *)); -int sys_umask __P((struct proc *, void *, register_t *)); -int sys_chroot __P((struct proc *, void *, register_t *)); -int svr4_sys_fcntl __P((struct proc *, void *, register_t *)); -int svr4_sys_ulimit __P((struct proc *, void *, register_t *)); -int svr4_sys_rdebug __P((struct proc *, void *, register_t *)); -int sys_rmdir __P((struct proc *, void *, register_t *)); -int sys_mkdir __P((struct proc *, void *, register_t *)); -int svr4_sys_getdents __P((struct proc *, void *, register_t *)); -int svr4_sys_getmsg __P((struct proc *, void *, register_t *)); -int svr4_sys_putmsg __P((struct proc *, void *, register_t *)); -int sys_poll __P((struct proc *, void *, register_t *)); -int svr4_sys_lstat __P((struct proc *, void *, register_t *)); -int sys_symlink __P((struct proc *, void *, register_t *)); -int sys_readlink __P((struct proc *, void *, register_t *)); -int sys_getgroups __P((struct proc *, void *, register_t *)); -int sys_setgroups __P((struct proc *, void *, register_t *)); -int sys_fchmod __P((struct proc *, void *, register_t *)); -int sys_fchown __P((struct proc *, void *, register_t *)); -int svr4_sys_sigprocmask __P((struct proc *, void *, register_t *)); -int svr4_sys_sigsuspend __P((struct proc *, void *, register_t *)); -int svr4_sys_sigaltstack __P((struct proc *, void *, register_t *)); -int svr4_sys_sigaction __P((struct proc *, void *, register_t *)); -int svr4_sys_sigpending __P((struct proc *, void *, register_t *)); -int svr4_sys_context __P((struct proc *, void *, register_t *)); -int svr4_sys_statvfs __P((struct proc *, void *, register_t *)); -int svr4_sys_fstatvfs __P((struct proc *, void *, register_t *)); -int svr4_sys_waitsys __P((struct proc *, void *, register_t *)); -int svr4_sys_hrtsys __P((struct proc *, void *, register_t *)); -int svr4_sys_pathconf __P((struct proc *, void *, register_t *)); -int sys_mincore __P((struct proc *, void *, register_t *)); -int svr4_sys_mmap __P((struct proc *, void *, register_t *)); -int sys_mprotect __P((struct proc *, void *, register_t *)); -int sys_munmap __P((struct proc *, void *, register_t *)); -int svr4_sys_fpathconf __P((struct proc *, void *, register_t *)); -int sys_vfork __P((struct proc *, void *, register_t *)); -int sys_fchdir __P((struct proc *, void *, register_t *)); -int sys_readv __P((struct proc *, void *, register_t *)); -int sys_writev __P((struct proc *, void *, register_t *)); -int svr4_sys_xstat __P((struct proc *, void *, register_t *)); -int svr4_sys_lxstat __P((struct proc *, void *, register_t *)); -int svr4_sys_fxstat __P((struct proc *, void *, register_t *)); -int svr4_sys_xmknod __P((struct proc *, void *, register_t *)); -int svr4_sys_setrlimit __P((struct proc *, void *, register_t *)); -int svr4_sys_getrlimit __P((struct proc *, void *, register_t *)); -int sys_lchown __P((struct proc *, void *, register_t *)); -int svr4_sys_memcntl __P((struct proc *, void *, register_t *)); -int sys_rename __P((struct proc *, void *, register_t *)); -int svr4_sys_uname __P((struct proc *, void *, register_t *)); -int svr4_sys_setegid __P((struct proc *, void *, register_t *)); -int svr4_sys_sysconfig __P((struct proc *, void *, register_t *)); -int sys_adjtime __P((struct proc *, void *, register_t *)); -int svr4_sys_systeminfo __P((struct proc *, void *, register_t *)); -int sys_seteuid __P((struct proc *, void *, register_t *)); -int svr4_sys_fchroot __P((struct proc *, void *, register_t *)); -int svr4_sys_utimes __P((struct proc *, void *, register_t *)); -int svr4_sys_vhangup __P((struct proc *, void *, register_t *)); -int svr4_sys_gettimeofday __P((struct proc *, void *, register_t *)); -int sys_getitimer __P((struct proc *, void *, register_t *)); -int sys_setitimer __P((struct proc *, void *, register_t *)); -int svr4_sys_pread __P((struct proc *, void *, register_t *)); -int svr4_sys_pwrite __P((struct proc *, void *, register_t *)); -int svr4_sys_llseek __P((struct proc *, void *, register_t *)); -int svr4_sys_acl __P((struct proc *, void *, register_t *)); -int svr4_sys_auditsys __P((struct proc *, void *, register_t *)); -int sys_clock_gettime __P((struct proc *, void *, register_t *)); -int sys_clock_settime __P((struct proc *, void *, register_t *)); -int sys_clock_getres __P((struct proc *, void *, register_t *)); -int sys_nanosleep __P((struct proc *, void *, register_t *)); -int svr4_sys_facl __P((struct proc *, void *, register_t *)); -int compat_43_sys_setreuid __P((struct proc *, void *, register_t *)); -int compat_43_sys_setregid __P((struct proc *, void *, register_t *)); -int svr4_sys_getdents64 __P((struct proc *, void *, register_t *)); -int svr4_sys_mmap64 __P((struct proc *, void *, register_t *)); -int svr4_sys_stat64 __P((struct proc *, void *, register_t *)); -int svr4_sys_lstat64 __P((struct proc *, void *, register_t *)); -int svr4_sys_fstat64 __P((struct proc *, void *, register_t *)); -int svr4_sys_fstatvfs64 __P((struct proc *, void *, register_t *)); -int svr4_sys_pread64 __P((struct proc *, void *, register_t *)); -int svr4_sys_pwrite64 __P((struct proc *, void *, register_t *)); -int svr4_sys_creat64 __P((struct proc *, void *, register_t *)); -int svr4_sys_open64 __P((struct proc *, void *, register_t *)); -int svr4_sys_socket __P((struct proc *, void *, register_t *)); -int sys_socketpair __P((struct proc *, void *, register_t *)); -int sys_bind __P((struct proc *, void *, register_t *)); -int sys_listen __P((struct proc *, void *, register_t *)); -int compat_43_sys_accept __P((struct proc *, void *, register_t *)); -int sys_connect __P((struct proc *, void *, register_t *)); -int sys_shutdown __P((struct proc *, void *, register_t *)); -int compat_43_sys_recv __P((struct proc *, void *, register_t *)); -int compat_43_sys_recvfrom __P((struct proc *, void *, register_t *)); -int compat_43_sys_recvmsg __P((struct proc *, void *, register_t *)); -int compat_43_sys_send __P((struct proc *, void *, register_t *)); -int compat_43_sys_sendmsg __P((struct proc *, void *, register_t *)); -int sys_sendto __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpeername __P((struct proc *, void *, register_t *)); -int compat_43_sys_getsockname __P((struct proc *, void *, register_t *)); -int sys_getsockopt __P((struct proc *, void *, register_t *)); -int sys_setsockopt __P((struct proc *, void *, register_t *)); +int svr4_sys_ioctl(struct proc *, void *, register_t *); +int svr4_sys_utssys(struct proc *, void *, register_t *); +int sys_fsync(struct proc *, void *, register_t *); +int svr4_sys_execve(struct proc *, void *, register_t *); +int sys_umask(struct proc *, void *, register_t *); +int sys_chroot(struct proc *, void *, register_t *); +int svr4_sys_fcntl(struct proc *, void *, register_t *); +int svr4_sys_ulimit(struct proc *, void *, register_t *); +int svr4_sys_rdebug(struct proc *, void *, register_t *); +int sys_rmdir(struct proc *, void *, register_t *); +int sys_mkdir(struct proc *, void *, register_t *); +int svr4_sys_getdents(struct proc *, void *, register_t *); +int svr4_sys_getmsg(struct proc *, void *, register_t *); +int svr4_sys_putmsg(struct proc *, void *, register_t *); +int sys_poll(struct proc *, void *, register_t *); +int svr4_sys_lstat(struct proc *, void *, register_t *); +int sys_symlink(struct proc *, void *, register_t *); +int sys_readlink(struct proc *, void *, register_t *); +int sys_getgroups(struct proc *, void *, register_t *); +int sys_setgroups(struct proc *, void *, register_t *); +int sys_fchmod(struct proc *, void *, register_t *); +int sys_fchown(struct proc *, void *, register_t *); +int svr4_sys_sigprocmask(struct proc *, void *, register_t *); +int svr4_sys_sigsuspend(struct proc *, void *, register_t *); +int svr4_sys_sigaltstack(struct proc *, void *, register_t *); +int svr4_sys_sigaction(struct proc *, void *, register_t *); +int svr4_sys_sigpending(struct proc *, void *, register_t *); +int svr4_sys_context(struct proc *, void *, register_t *); +int svr4_sys_statvfs(struct proc *, void *, register_t *); +int svr4_sys_fstatvfs(struct proc *, void *, register_t *); +int svr4_sys_waitsys(struct proc *, void *, register_t *); +int svr4_sys_hrtsys(struct proc *, void *, register_t *); +int svr4_sys_pathconf(struct proc *, void *, register_t *); +int sys_mincore(struct proc *, void *, register_t *); +int svr4_sys_mmap(struct proc *, void *, register_t *); +int sys_mprotect(struct proc *, void *, register_t *); +int sys_munmap(struct proc *, void *, register_t *); +int svr4_sys_fpathconf(struct proc *, void *, register_t *); +int sys_vfork(struct proc *, void *, register_t *); +int sys_fchdir(struct proc *, void *, register_t *); +int sys_readv(struct proc *, void *, register_t *); +int sys_writev(struct proc *, void *, register_t *); +int svr4_sys_xstat(struct proc *, void *, register_t *); +int svr4_sys_lxstat(struct proc *, void *, register_t *); +int svr4_sys_fxstat(struct proc *, void *, register_t *); +int svr4_sys_xmknod(struct proc *, void *, register_t *); +int svr4_sys_setrlimit(struct proc *, void *, register_t *); +int svr4_sys_getrlimit(struct proc *, void *, register_t *); +int sys_lchown(struct proc *, void *, register_t *); +int svr4_sys_memcntl(struct proc *, void *, register_t *); +int sys_rename(struct proc *, void *, register_t *); +int svr4_sys_uname(struct proc *, void *, register_t *); +int svr4_sys_setegid(struct proc *, void *, register_t *); +int svr4_sys_sysconfig(struct proc *, void *, register_t *); +int sys_adjtime(struct proc *, void *, register_t *); +int svr4_sys_systeminfo(struct proc *, void *, register_t *); +int sys_seteuid(struct proc *, void *, register_t *); +int svr4_sys_fchroot(struct proc *, void *, register_t *); +int svr4_sys_utimes(struct proc *, void *, register_t *); +int svr4_sys_vhangup(struct proc *, void *, register_t *); +int svr4_sys_gettimeofday(struct proc *, void *, register_t *); +int sys_getitimer(struct proc *, void *, register_t *); +int sys_setitimer(struct proc *, void *, register_t *); +int svr4_sys_pread(struct proc *, void *, register_t *); +int svr4_sys_pwrite(struct proc *, void *, register_t *); +int svr4_sys_llseek(struct proc *, void *, register_t *); +int svr4_sys_acl(struct proc *, void *, register_t *); +int svr4_sys_auditsys(struct proc *, void *, register_t *); +int sys_clock_gettime(struct proc *, void *, register_t *); +int sys_clock_settime(struct proc *, void *, register_t *); +int sys_clock_getres(struct proc *, void *, register_t *); +int sys_nanosleep(struct proc *, void *, register_t *); +int svr4_sys_facl(struct proc *, void *, register_t *); +int compat_43_sys_setreuid(struct proc *, void *, register_t *); +int compat_43_sys_setregid(struct proc *, void *, register_t *); +int svr4_sys_getdents64(struct proc *, void *, register_t *); +int svr4_sys_mmap64(struct proc *, void *, register_t *); +int svr4_sys_stat64(struct proc *, void *, register_t *); +int svr4_sys_lstat64(struct proc *, void *, register_t *); +int svr4_sys_fstat64(struct proc *, void *, register_t *); +int svr4_sys_fstatvfs64(struct proc *, void *, register_t *); +int svr4_sys_pread64(struct proc *, void *, register_t *); +int svr4_sys_pwrite64(struct proc *, void *, register_t *); +int svr4_sys_creat64(struct proc *, void *, register_t *); +int svr4_sys_open64(struct proc *, void *, register_t *); +int svr4_sys_socket(struct proc *, void *, register_t *); +int sys_socketpair(struct proc *, void *, register_t *); +int sys_bind(struct proc *, void *, register_t *); +int sys_listen(struct proc *, void *, register_t *); +int compat_43_sys_accept(struct proc *, void *, register_t *); +int sys_connect(struct proc *, void *, register_t *); +int sys_shutdown(struct proc *, void *, register_t *); +int compat_43_sys_recv(struct proc *, void *, register_t *); +int compat_43_sys_recvfrom(struct proc *, void *, register_t *); +int compat_43_sys_recvmsg(struct proc *, void *, register_t *); +int compat_43_sys_send(struct proc *, void *, register_t *); +int compat_43_sys_sendmsg(struct proc *, void *, register_t *); +int sys_sendto(struct proc *, void *, register_t *); +int compat_43_sys_getpeername(struct proc *, void *, register_t *); +int compat_43_sys_getsockname(struct proc *, void *, register_t *); +int sys_getsockopt(struct proc *, void *, register_t *); +int sys_setsockopt(struct proc *, void *, register_t *); #ifdef NTP -int sys_ntp_gettime __P((struct proc *, void *, register_t *)); -int sys_ntp_adjtime __P((struct proc *, void *, register_t *)); +int sys_ntp_gettime(struct proc *, void *, register_t *); +int sys_ntp_adjtime(struct proc *, void *, register_t *); #else #endif diff --git a/sys/compat/svr4/svr4_termios.c b/sys/compat/svr4/svr4_termios.c index fcdb1d613e6..f31a61826bb 100644 --- a/sys/compat/svr4/svr4_termios.c +++ b/sys/compat/svr4/svr4_termios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_termios.c,v 1.11 2000/08/29 02:22:13 brad Exp $ */ +/* $OpenBSD: svr4_termios.c,v 1.12 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_termios.c,v 1.9 1996/04/11 12:53:48 christos Exp $ */ /* @@ -61,18 +61,18 @@ # endif #endif -u_long bsd_to_svr4_speed __P((u_long, u_long)); -u_long svr4_to_bsd_speed __P((u_long, u_long)); -void svr4_to_bsd_termios __P((const struct svr4_termios *, struct termios *, - int)); -void bsd_to_svr4_termios __P((const struct termios *, struct svr4_termios *)); -void svr4_termio_to_termios __P((const struct svr4_termio *, - struct svr4_termios *)); -void svr4_termios_to_termio __P((const struct svr4_termios *, - struct svr4_termio *)); +u_long bsd_to_svr4_speed(u_long, u_long); +u_long svr4_to_bsd_speed(u_long, u_long); +void svr4_to_bsd_termios(const struct svr4_termios *, struct termios *, + int); +void bsd_to_svr4_termios(const struct termios *, struct svr4_termios *); +void svr4_termio_to_termios(const struct svr4_termio *, + struct svr4_termios *); +void svr4_termios_to_termio(const struct svr4_termios *, + struct svr4_termio *); #ifdef DEBUG_SVR4 -void print_svr4_termios __P((const struct svr4_termios *)); -void print_bsd_termios __P((const struct termios *)); +void print_svr4_termios(const struct svr4_termios *); +void print_bsd_termios(const struct termios *); #endif /* DEBUG_SVR4 */ #define undefined_char(a,b) /**/ @@ -528,7 +528,7 @@ svr4_term_ioctl(fp, p, retval, fd, cmd, data) struct svr4_termios st; struct svr4_termio t; int error, new; - int (*ctl) __P((struct file *, u_long, caddr_t, struct proc *)) = + int (*ctl)(struct file *, u_long, caddr_t, struct proc *) = fp->f_ops->fo_ioctl; *retval = 0; diff --git a/sys/compat/svr4/svr4_ttold.c b/sys/compat/svr4/svr4_ttold.c index 5f7fd8f4200..928771f0325 100644 --- a/sys/compat/svr4/svr4_ttold.c +++ b/sys/compat/svr4/svr4_ttold.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_ttold.c,v 1.6 2000/08/29 02:22:14 brad Exp $ */ +/* $OpenBSD: svr4_ttold.c,v 1.7 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: svr4_ttold.c,v 1.9 1996/04/11 12:54:45 christos Exp $ */ /* @@ -51,23 +51,23 @@ #include <compat/svr4/svr4_ttold.h> #include <compat/svr4/svr4_ioctl.h> -static void svr4_tchars_to_bsd_tchars __P((const struct svr4_tchars *st, - struct tchars *bt)); -static void bsd_tchars_to_svr4_tchars __P((const struct tchars *bt, - struct svr4_tchars *st)); -static void svr4_sgttyb_to_bsd_sgttyb __P((const struct svr4_sgttyb *ss, - struct sgttyb *bs)); -static void bsd_sgttyb_to_svr4_sgttyb __P((const struct sgttyb *bs, - struct svr4_sgttyb *ss)); -static void svr4_ltchars_to_bsd_ltchars __P((const struct svr4_ltchars *sl, - struct ltchars *bl)); -static void bsd_ltchars_to_svr4_ltchars __P((const struct ltchars *bl, - struct svr4_ltchars *sl)); +static void svr4_tchars_to_bsd_tchars(const struct svr4_tchars *st, + struct tchars *bt); +static void bsd_tchars_to_svr4_tchars(const struct tchars *bt, + struct svr4_tchars *st); +static void svr4_sgttyb_to_bsd_sgttyb(const struct svr4_sgttyb *ss, + struct sgttyb *bs); +static void bsd_sgttyb_to_svr4_sgttyb(const struct sgttyb *bs, + struct svr4_sgttyb *ss); +static void svr4_ltchars_to_bsd_ltchars(const struct svr4_ltchars *sl, + struct ltchars *bl); +static void bsd_ltchars_to_svr4_ltchars(const struct ltchars *bl, + struct svr4_ltchars *sl); #ifdef DEBUG_SVR4 -static void print_svr4_sgttyb __P((const char *, struct svr4_sgttyb *)); -static void print_svr4_tchars __P((const char *, struct svr4_tchars *)); -static void print_svr4_ltchars __P((const char *, struct svr4_ltchars *)); +static void print_svr4_sgttyb(const char *, struct svr4_sgttyb *); +static void print_svr4_tchars(const char *, struct svr4_tchars *); +static void print_svr4_ltchars(const char *, struct svr4_ltchars *); static void print_svr4_sgttyb(str, ss) @@ -192,7 +192,7 @@ svr4_ttold_ioctl(fp, p, retval, fd, cmd, data) caddr_t data; { int error; - int (*ctl) __P((struct file *, u_long, caddr_t, struct proc *)) = + int (*ctl)(struct file *, u_long, caddr_t, struct proc *) = fp->f_ops->fo_ioctl; *retval = 0; diff --git a/sys/compat/ultrix/ultrix_misc.c b/sys/compat/ultrix/ultrix_misc.c index 8e46acd843f..8baba7f1d91 100644 --- a/sys/compat/ultrix/ultrix_misc.c +++ b/sys/compat/ultrix/ultrix_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ultrix_misc.c,v 1.23 2002/02/12 13:05:31 art Exp $ */ +/* $OpenBSD: ultrix_misc.c,v 1.24 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: ultrix_misc.c,v 1.23 1996/04/07 17:23:04 jonathan Exp $ */ /* @@ -145,8 +145,8 @@ extern char *ultrix_syscallnames[]; #endif /* __vax__ */ -extern void ULTRIX_EXEC_SETREGS __P((struct proc *, struct exec_package *, - u_long, register_t *)); +extern void ULTRIX_EXEC_SETREGS(struct proc *, struct exec_package *, + u_long, register_t *); extern char sigcode[], esigcode[]; struct emul emul_ultrix = { diff --git a/sys/compat/ultrix/ultrix_syscallargs.h b/sys/compat/ultrix/ultrix_syscallargs.h index 4156963ca9f..b0caec22c4b 100644 --- a/sys/compat/ultrix/ultrix_syscallargs.h +++ b/sys/compat/ultrix/ultrix_syscallargs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ultrix_syscallargs.h,v 1.9 2001/08/26 04:14:27 deraadt Exp $ */ +/* $OpenBSD: ultrix_syscallargs.h,v 1.10 2002/03/14 01:26:51 millert Exp $ */ /* * System call argument lists. @@ -193,140 +193,140 @@ struct ultrix_sys_setsysinfo_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 *)); -int sys_write __P((struct proc *, void *, register_t *)); -int ultrix_sys_open __P((struct proc *, void *, register_t *)); -int sys_close __P((struct proc *, void *, register_t *)); -int compat_43_sys_wait __P((struct proc *, void *, register_t *)); -int ultrix_sys_creat __P((struct proc *, void *, register_t *)); -int sys_link __P((struct proc *, void *, register_t *)); -int sys_unlink __P((struct proc *, void *, register_t *)); -int ultrix_sys_execv __P((struct proc *, void *, register_t *)); -int sys_chdir __P((struct proc *, void *, register_t *)); -int ultrix_sys_mknod __P((struct proc *, void *, register_t *)); -int sys_chmod __P((struct proc *, void *, register_t *)); -int sys_lchown __P((struct proc *, void *, register_t *)); -int sys_obreak __P((struct proc *, void *, register_t *)); -int compat_43_sys_lseek __P((struct proc *, void *, register_t *)); -int sys_getpid __P((struct proc *, void *, register_t *)); -int ultrix_sys_mount __P((struct proc *, void *, register_t *)); -int sys_setuid __P((struct proc *, void *, register_t *)); -int sys_getuid __P((struct proc *, void *, register_t *)); -int ultrix_sys_access __P((struct proc *, void *, register_t *)); -int sys_sync __P((struct proc *, void *, register_t *)); -int sys_kill __P((struct proc *, void *, register_t *)); -int ultrix_sys_stat __P((struct proc *, void *, register_t *)); -int ultrix_sys_lstat __P((struct proc *, void *, register_t *)); -int sys_dup __P((struct proc *, void *, register_t *)); -int sys_opipe __P((struct proc *, void *, register_t *)); -int sys_profil __P((struct proc *, void *, register_t *)); -int sys_getgid __P((struct proc *, void *, register_t *)); -int sys_acct __P((struct proc *, void *, register_t *)); -int ultrix_sys_ioctl __P((struct proc *, void *, register_t *)); -int sys_reboot __P((struct proc *, void *, register_t *)); -int sys_symlink __P((struct proc *, void *, register_t *)); -int sys_readlink __P((struct proc *, void *, register_t *)); -int ultrix_sys_execve __P((struct proc *, void *, register_t *)); -int sys_umask __P((struct proc *, void *, register_t *)); -int sys_chroot __P((struct proc *, void *, register_t *)); -int compat_43_sys_fstat __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpagesize __P((struct proc *, void *, register_t *)); -int sys_vfork __P((struct proc *, void *, register_t *)); -int sys_sbrk __P((struct proc *, void *, register_t *)); -int sys_sstk __P((struct proc *, void *, register_t *)); -int ultrix_sys_mmap __P((struct proc *, void *, register_t *)); -int sys_ovadvise __P((struct proc *, void *, register_t *)); -int sys_munmap __P((struct proc *, void *, register_t *)); -int sys_mprotect __P((struct proc *, void *, register_t *)); -int sys_madvise __P((struct proc *, void *, register_t *)); -int ultrix_sys_vhangup __P((struct proc *, void *, register_t *)); -int sys_mincore __P((struct proc *, void *, register_t *)); -int sys_getgroups __P((struct proc *, void *, register_t *)); -int sys_setgroups __P((struct proc *, void *, register_t *)); -int sys_getpgrp __P((struct proc *, void *, register_t *)); -int ultrix_sys_setpgrp __P((struct proc *, void *, register_t *)); -int sys_setitimer __P((struct proc *, void *, register_t *)); -int ultrix_sys_wait3 __P((struct proc *, void *, register_t *)); -int sys_swapon __P((struct proc *, void *, register_t *)); -int sys_getitimer __P((struct proc *, void *, register_t *)); -int compat_43_sys_gethostname __P((struct proc *, void *, register_t *)); -int compat_43_sys_sethostname __P((struct proc *, void *, register_t *)); -int compat_43_sys_getdtablesize __P((struct proc *, void *, register_t *)); -int sys_dup2 __P((struct proc *, void *, register_t *)); -int sys_fcntl __P((struct proc *, void *, register_t *)); -int ultrix_sys_select __P((struct proc *, void *, register_t *)); -int sys_fsync __P((struct proc *, void *, register_t *)); -int sys_setpriority __P((struct proc *, void *, register_t *)); -int sys_socket __P((struct proc *, void *, register_t *)); -int sys_connect __P((struct proc *, void *, register_t *)); -int compat_43_sys_accept __P((struct proc *, void *, register_t *)); -int sys_getpriority __P((struct proc *, void *, register_t *)); -int compat_43_sys_send __P((struct proc *, void *, register_t *)); -int compat_43_sys_recv __P((struct proc *, void *, register_t *)); -int sys_sigreturn __P((struct proc *, void *, register_t *)); -int sys_bind __P((struct proc *, void *, register_t *)); -int ultrix_sys_setsockopt __P((struct proc *, void *, register_t *)); -int sys_listen __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigvec __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigblock __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigsetmask __P((struct proc *, void *, register_t *)); -int sys_sigsuspend __P((struct proc *, void *, register_t *)); -int compat_43_sys_sigstack __P((struct proc *, void *, register_t *)); -int compat_43_sys_recvmsg __P((struct proc *, void *, register_t *)); -int compat_43_sys_sendmsg __P((struct proc *, void *, register_t *)); -int sys_gettimeofday __P((struct proc *, void *, register_t *)); -int sys_getrusage __P((struct proc *, void *, register_t *)); -int sys_getsockopt __P((struct proc *, void *, register_t *)); -int sys_readv __P((struct proc *, void *, register_t *)); -int sys_writev __P((struct proc *, void *, register_t *)); -int sys_settimeofday __P((struct proc *, void *, register_t *)); -int sys_fchown __P((struct proc *, void *, register_t *)); -int sys_fchmod __P((struct proc *, void *, register_t *)); -int compat_43_sys_recvfrom __P((struct proc *, void *, register_t *)); -int compat_43_sys_setreuid __P((struct proc *, void *, register_t *)); -int compat_43_sys_setregid __P((struct proc *, void *, register_t *)); -int sys_rename __P((struct proc *, void *, register_t *)); -int compat_43_sys_truncate __P((struct proc *, void *, register_t *)); -int compat_43_sys_ftruncate __P((struct proc *, void *, register_t *)); -int sys_flock __P((struct proc *, void *, register_t *)); -int sys_sendto __P((struct proc *, void *, register_t *)); -int sys_shutdown __P((struct proc *, void *, register_t *)); -int sys_socketpair __P((struct proc *, void *, register_t *)); -int sys_mkdir __P((struct proc *, void *, register_t *)); -int sys_rmdir __P((struct proc *, void *, register_t *)); -int sys_utimes __P((struct proc *, void *, register_t *)); -int ultrix_sys_sigcleanup __P((struct proc *, void *, register_t *)); -int sys_adjtime __P((struct proc *, void *, register_t *)); -int compat_43_sys_getpeername __P((struct proc *, void *, register_t *)); -int compat_43_sys_gethostid __P((struct proc *, void *, register_t *)); -int compat_43_sys_getrlimit __P((struct proc *, void *, register_t *)); -int compat_43_sys_setrlimit __P((struct proc *, void *, register_t *)); -int compat_43_sys_killpg __P((struct proc *, void *, register_t *)); -int compat_43_sys_getsockname __P((struct proc *, void *, register_t *)); +int sys_nosys(struct proc *, void *, register_t *); +int sys_exit(struct proc *, void *, register_t *); +int sys_fork(struct proc *, void *, register_t *); +int sys_read(struct proc *, void *, register_t *); +int sys_write(struct proc *, void *, register_t *); +int ultrix_sys_open(struct proc *, void *, register_t *); +int sys_close(struct proc *, void *, register_t *); +int compat_43_sys_wait(struct proc *, void *, register_t *); +int ultrix_sys_creat(struct proc *, void *, register_t *); +int sys_link(struct proc *, void *, register_t *); +int sys_unlink(struct proc *, void *, register_t *); +int ultrix_sys_execv(struct proc *, void *, register_t *); +int sys_chdir(struct proc *, void *, register_t *); +int ultrix_sys_mknod(struct proc *, void *, register_t *); +int sys_chmod(struct proc *, void *, register_t *); +int sys_lchown(struct proc *, void *, register_t *); +int sys_obreak(struct proc *, void *, register_t *); +int compat_43_sys_lseek(struct proc *, void *, register_t *); +int sys_getpid(struct proc *, void *, register_t *); +int ultrix_sys_mount(struct proc *, void *, register_t *); +int sys_setuid(struct proc *, void *, register_t *); +int sys_getuid(struct proc *, void *, register_t *); +int ultrix_sys_access(struct proc *, void *, register_t *); +int sys_sync(struct proc *, void *, register_t *); +int sys_kill(struct proc *, void *, register_t *); +int ultrix_sys_stat(struct proc *, void *, register_t *); +int ultrix_sys_lstat(struct proc *, void *, register_t *); +int sys_dup(struct proc *, void *, register_t *); +int sys_opipe(struct proc *, void *, register_t *); +int sys_profil(struct proc *, void *, register_t *); +int sys_getgid(struct proc *, void *, register_t *); +int sys_acct(struct proc *, void *, register_t *); +int ultrix_sys_ioctl(struct proc *, void *, register_t *); +int sys_reboot(struct proc *, void *, register_t *); +int sys_symlink(struct proc *, void *, register_t *); +int sys_readlink(struct proc *, void *, register_t *); +int ultrix_sys_execve(struct proc *, void *, register_t *); +int sys_umask(struct proc *, void *, register_t *); +int sys_chroot(struct proc *, void *, register_t *); +int compat_43_sys_fstat(struct proc *, void *, register_t *); +int compat_43_sys_getpagesize(struct proc *, void *, register_t *); +int sys_vfork(struct proc *, void *, register_t *); +int sys_sbrk(struct proc *, void *, register_t *); +int sys_sstk(struct proc *, void *, register_t *); +int ultrix_sys_mmap(struct proc *, void *, register_t *); +int sys_ovadvise(struct proc *, void *, register_t *); +int sys_munmap(struct proc *, void *, register_t *); +int sys_mprotect(struct proc *, void *, register_t *); +int sys_madvise(struct proc *, void *, register_t *); +int ultrix_sys_vhangup(struct proc *, void *, register_t *); +int sys_mincore(struct proc *, void *, register_t *); +int sys_getgroups(struct proc *, void *, register_t *); +int sys_setgroups(struct proc *, void *, register_t *); +int sys_getpgrp(struct proc *, void *, register_t *); +int ultrix_sys_setpgrp(struct proc *, void *, register_t *); +int sys_setitimer(struct proc *, void *, register_t *); +int ultrix_sys_wait3(struct proc *, void *, register_t *); +int sys_swapon(struct proc *, void *, register_t *); +int sys_getitimer(struct proc *, void *, register_t *); +int compat_43_sys_gethostname(struct proc *, void *, register_t *); +int compat_43_sys_sethostname(struct proc *, void *, register_t *); +int compat_43_sys_getdtablesize(struct proc *, void *, register_t *); +int sys_dup2(struct proc *, void *, register_t *); +int sys_fcntl(struct proc *, void *, register_t *); +int ultrix_sys_select(struct proc *, void *, register_t *); +int sys_fsync(struct proc *, void *, register_t *); +int sys_setpriority(struct proc *, void *, register_t *); +int sys_socket(struct proc *, void *, register_t *); +int sys_connect(struct proc *, void *, register_t *); +int compat_43_sys_accept(struct proc *, void *, register_t *); +int sys_getpriority(struct proc *, void *, register_t *); +int compat_43_sys_send(struct proc *, void *, register_t *); +int compat_43_sys_recv(struct proc *, void *, register_t *); +int sys_sigreturn(struct proc *, void *, register_t *); +int sys_bind(struct proc *, void *, register_t *); +int ultrix_sys_setsockopt(struct proc *, void *, register_t *); +int sys_listen(struct proc *, void *, register_t *); +int compat_43_sys_sigvec(struct proc *, void *, register_t *); +int compat_43_sys_sigblock(struct proc *, void *, register_t *); +int compat_43_sys_sigsetmask(struct proc *, void *, register_t *); +int sys_sigsuspend(struct proc *, void *, register_t *); +int compat_43_sys_sigstack(struct proc *, void *, register_t *); +int compat_43_sys_recvmsg(struct proc *, void *, register_t *); +int compat_43_sys_sendmsg(struct proc *, void *, register_t *); +int sys_gettimeofday(struct proc *, void *, register_t *); +int sys_getrusage(struct proc *, void *, register_t *); +int sys_getsockopt(struct proc *, void *, register_t *); +int sys_readv(struct proc *, void *, register_t *); +int sys_writev(struct proc *, void *, register_t *); +int sys_settimeofday(struct proc *, void *, register_t *); +int sys_fchown(struct proc *, void *, register_t *); +int sys_fchmod(struct proc *, void *, register_t *); +int compat_43_sys_recvfrom(struct proc *, void *, register_t *); +int compat_43_sys_setreuid(struct proc *, void *, register_t *); +int compat_43_sys_setregid(struct proc *, void *, register_t *); +int sys_rename(struct proc *, void *, register_t *); +int compat_43_sys_truncate(struct proc *, void *, register_t *); +int compat_43_sys_ftruncate(struct proc *, void *, register_t *); +int sys_flock(struct proc *, void *, register_t *); +int sys_sendto(struct proc *, void *, register_t *); +int sys_shutdown(struct proc *, void *, register_t *); +int sys_socketpair(struct proc *, void *, register_t *); +int sys_mkdir(struct proc *, void *, register_t *); +int sys_rmdir(struct proc *, void *, register_t *); +int sys_utimes(struct proc *, void *, register_t *); +int ultrix_sys_sigcleanup(struct proc *, void *, register_t *); +int sys_adjtime(struct proc *, void *, register_t *); +int compat_43_sys_getpeername(struct proc *, void *, register_t *); +int compat_43_sys_gethostid(struct proc *, void *, register_t *); +int compat_43_sys_getrlimit(struct proc *, void *, register_t *); +int compat_43_sys_setrlimit(struct proc *, void *, register_t *); +int compat_43_sys_killpg(struct proc *, void *, register_t *); +int compat_43_sys_getsockname(struct proc *, void *, register_t *); #ifdef NFSSERVER -int ultrix_sys_nfssvc __P((struct proc *, void *, register_t *)); +int ultrix_sys_nfssvc(struct proc *, void *, register_t *); #else #endif -int compat_43_sys_getdirentries __P((struct proc *, void *, register_t *)); -int ultrix_sys_statfs __P((struct proc *, void *, register_t *)); -int ultrix_sys_fstatfs __P((struct proc *, void *, register_t *)); +int compat_43_sys_getdirentries(struct proc *, void *, register_t *); +int ultrix_sys_statfs(struct proc *, void *, register_t *); +int ultrix_sys_fstatfs(struct proc *, void *, register_t *); #ifdef NFSCLIENT -int async_daemon __P((struct proc *, void *, register_t *)); -int sys_getfh __P((struct proc *, void *, register_t *)); +int async_daemon(struct proc *, void *, register_t *); +int sys_getfh(struct proc *, void *, register_t *); #else #endif -int compat_09_sys_getdomainname __P((struct proc *, void *, register_t *)); -int compat_09_sys_setdomainname __P((struct proc *, void *, register_t *)); -int ultrix_sys_quotactl __P((struct proc *, void *, register_t *)); -int ultrix_sys_exportfs __P((struct proc *, void *, register_t *)); -int ultrix_sys_uname __P((struct proc *, void *, register_t *)); -int ultrix_sys_ustat __P((struct proc *, void *, register_t *)); -int ultrix_sys_getmnt __P((struct proc *, void *, register_t *)); -int ultrix_sys_sigpending __P((struct proc *, void *, register_t *)); -int sys_setsid __P((struct proc *, void *, register_t *)); -int ultrix_sys_waitpid __P((struct proc *, void *, register_t *)); -int ultrix_sys_getsysinfo __P((struct proc *, void *, register_t *)); -int ultrix_sys_setsysinfo __P((struct proc *, void *, register_t *)); +int compat_09_sys_getdomainname(struct proc *, void *, register_t *); +int compat_09_sys_setdomainname(struct proc *, void *, register_t *); +int ultrix_sys_quotactl(struct proc *, void *, register_t *); +int ultrix_sys_exportfs(struct proc *, void *, register_t *); +int ultrix_sys_uname(struct proc *, void *, register_t *); +int ultrix_sys_ustat(struct proc *, void *, register_t *); +int ultrix_sys_getmnt(struct proc *, void *, register_t *); +int ultrix_sys_sigpending(struct proc *, void *, register_t *); +int sys_setsid(struct proc *, void *, register_t *); +int ultrix_sys_waitpid(struct proc *, void *, register_t *); +int ultrix_sys_getsysinfo(struct proc *, void *, register_t *); +int ultrix_sys_setsysinfo(struct proc *, void *, register_t *); diff --git a/sys/compat/vax1k/vax1k_exec.c b/sys/compat/vax1k/vax1k_exec.c index a2e37b3916e..dce545d8b0d 100644 --- a/sys/compat/vax1k/vax1k_exec.c +++ b/sys/compat/vax1k/vax1k_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vax1k_exec.c,v 1.1 2001/11/14 14:37:22 hugh Exp $ */ +/* $OpenBSD: vax1k_exec.c,v 1.2 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: vax1k_exec.c,v 1.1 1998/08/21 13:25:47 ragge Exp $ */ /* @@ -50,8 +50,7 @@ #include <compat/vax1k/vax1k_exec.h> -int exec_vax1k_prep_anymagic - __P((struct proc *, struct exec_package *, int)); +int exec_vax1k_prep_anymagic(struct proc *, struct exec_package *, int); /* * exec_vax1k_makecmds(): Check if it's an a.out-format executable diff --git a/sys/compat/vax1k/vax1k_exec.h b/sys/compat/vax1k/vax1k_exec.h index dab327cdf53..28c4f02aee6 100644 --- a/sys/compat/vax1k/vax1k_exec.h +++ b/sys/compat/vax1k/vax1k_exec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vax1k_exec.h,v 1.1 2001/11/14 14:37:22 hugh Exp $ */ +/* $OpenBSD: vax1k_exec.h,v 1.2 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: vax1k_exec.h,v 1.1 1998/08/21 13:25:47 ragge Exp $ */ /*- @@ -43,6 +43,6 @@ #define VAX1K_LDPGSZ 1024 #define VAX1K_USRTEXT VAX1K_LDPGSZ -int exec_vax1k_makecmds __P((struct proc *, struct exec_package *)); -int vax1k_map_readvn __P((struct proc *, struct exec_vmcmd *)); +int exec_vax1k_makecmds(struct proc *, struct exec_package *); +int vax1k_map_readvn(struct proc *, struct exec_vmcmd *); #endif /* _VAX1K_EXEC_H_ */ |