diff options
author | jhb <jhb@FreeBSD.org> | 2006-06-27 18:28:50 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-06-27 18:28:50 +0000 |
commit | dff69a853ef2a388e03aefe1ccf2d04909ef8405 (patch) | |
tree | cb6f2ab0b9fc8b11fc6fae3e937411e62c1f6d28 /sys/sys/syscallsubr.h | |
parent | e3f66d999d6f25cdbeb14c8bf651286bd6c7aff3 (diff) | |
download | FreeBSD-src-dff69a853ef2a388e03aefe1ccf2d04909ef8405.zip FreeBSD-src-dff69a853ef2a388e03aefe1ccf2d04909ef8405.tar.gz |
- Add a kern_semctl() helper function for __semctl(). It accepts a pointer
to a copied-in copy of the 'union semun' and a uioseg to indicate which
memory space the 'buf' pointer of the union points to. This is then used
in linux_semctl() and svr4_sys_semctl() to eliminate use of the stackgap.
- Mark linux_ipc() and svr4_sys_semsys() MPSAFE.
Diffstat (limited to 'sys/sys/syscallsubr.h')
-rw-r--r-- | sys/sys/syscallsubr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h index 7329f6c..d4f818b 100644 --- a/sys/sys/syscallsubr.h +++ b/sys/sys/syscallsubr.h @@ -41,6 +41,7 @@ struct msghdr; struct msqid_ds; struct rlimit; struct rusage; +union semun; struct sockaddr; struct stat; struct kevent; @@ -123,6 +124,8 @@ int kern_rename(struct thread *td, char *from, char *to, int kern_rmdir(struct thread *td, char *path, enum uio_seg pathseg); int kern_sched_rr_get_interval(struct thread *td, pid_t pid, struct timespec *ts); +int kern_semctl(struct thread *td, int semid, int semnum, int cmd, + union semun *arg, enum uio_seg bufseg); int kern_select(struct thread *td, int nd, fd_set *fd_in, fd_set *fd_ou, fd_set *fd_ex, struct timeval *tvp); int kern_sendfile(struct thread *td, struct sendfile_args *uap, |