diff options
| author | 2003-12-11 23:02:30 +0000 | |
|---|---|---|
| committer | 2003-12-11 23:02:30 +0000 | |
| commit | c1f74b45732c57baf2962e97f56eca235500643c (patch) | |
| tree | c2e341794f12ee67b8f4f0219c6e91f4588af9ca /sys/kern | |
| parent | POSIX says rlim_t should be unsigned so make it u_quad_t. Also add (diff) | |
| download | wireguard-openbsd-c1f74b45732c57baf2962e97f56eca235500643c.tar.xz wireguard-openbsd-c1f74b45732c57baf2962e97f56eca235500643c.zip | |
Add id_t type as per POSIX and use it for [gs]etpriority(2).
OK henning@ and deraadt@
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/kern_resource.c | 6 | ||||
| -rw-r--r-- | sys/kern/syscalls.master | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 1eab6bddb54..1e868518989 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_resource.c,v 1.25 2003/12/11 22:55:22 millert Exp $ */ +/* $OpenBSD: kern_resource.c,v 1.26 2003/12/11 23:02:30 millert Exp $ */ /* $NetBSD: kern_resource.c,v 1.38 1996/10/23 07:19:38 matthias Exp $ */ /*- @@ -68,7 +68,7 @@ sys_getpriority(curp, v, retval) { register struct sys_getpriority_args /* { syscallarg(int) which; - syscallarg(int) who; + syscallarg(id_t) who; } */ *uap = v; register struct proc *p; register int low = NZERO + PRIO_MAX + 1; @@ -126,7 +126,7 @@ sys_setpriority(curp, v, retval) { register struct sys_setpriority_args /* { syscallarg(int) which; - syscallarg(int) who; + syscallarg(id_t) who; syscallarg(int) prio; } */ *uap = v; register struct proc *p; diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 80d9878d0b7..a4ab6e5a97c 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ -; $OpenBSD: syscalls.master,v 1.63 2003/12/10 23:10:08 millert Exp $ +; $OpenBSD: syscalls.master,v 1.64 2003/12/11 23:02:30 millert Exp $ ; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -193,13 +193,13 @@ fd_set *ex, struct timeval *tv); } 94 UNIMPL setdopt 95 STD { int sys_fsync(int fd); } -96 STD { int sys_setpriority(int which, int who, int prio); } +96 STD { int sys_setpriority(int which, id_t who, int prio); } 97 STD { int sys_socket(int domain, int type, int protocol); } 98 STD { int sys_connect(int s, const struct sockaddr *name, \ socklen_t namelen); } 99 COMPAT_43 { int sys_accept(int s, caddr_t name, \ int *anamelen); } oaccept -100 STD { int sys_getpriority(int which, int who); } +100 STD { int sys_getpriority(int which, id_t who); } 101 COMPAT_43 { int sys_send(int s, caddr_t buf, int len, \ int flags); } osend 102 COMPAT_43 { int sys_recv(int s, caddr_t buf, int len, \ |
