aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/syscallsubr.h
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2003-11-05 01:53:10 +0000
committerMax Khon <fjoe@FreeBSD.org>2003-11-05 01:53:10 +0000
commit2332251c6a44d2de0574b4db982c17682c26d948 (patch)
tree13633d0f8603d472f72de0c33cea5d7cd406e7e2 /sys/sys/syscallsubr.h
parentdef19aab78b51c609582f305bdc8883420c42325 (diff)
downloadsrc-2332251c6a44d2de0574b4db982c17682c26d948.tar.gz
src-2332251c6a44d2de0574b4db982c17682c26d948.zip
Back out the following revisions:
1.36 +73 -60 src/sys/compat/linux/linux_ipc.c 1.83 +102 -48 src/sys/kern/sysv_shm.c 1.8 +4 -0 src/sys/sys/syscallsubr.h That change was intended to support vmware3, but wantrem parameter is useless because vmware3 uses SYSV shared memory to talk with X server and X server is native application. The patch worked because check for wantrem was not valid (wantrem and SHMSEG_REMOVED was never checked for SHMSEG_ALLOCATED segments). Add kern.ipc.shm_allow_removed (integer, rw) sysctl (default 0) which when set to 1 allows to return removed segments in shm_find_segment_by_shmid() and shm_find_segment_by_shmidx(). MFC after: 1 week
Notes
Notes: svn path=/head/; revision=122088
Diffstat (limited to 'sys/sys/syscallsubr.h')
-rw-r--r--sys/sys/syscallsubr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index a58a07fecf22..8c5202738494 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -75,9 +75,9 @@ int kern_select(struct thread *td, int nd, fd_set *fd_in, fd_set *fd_ou,
int kern_sendit(struct thread *td, int s, struct msghdr *mp, int flags,
struct mbuf *control);
int kern_shmat(struct thread *td, int shmid, const void *shmaddr,
- int shmflg, int wantrem);
+ int shmflg);
int kern_shmctl(struct thread *td, int shmid, int cmd, void *buf,
- size_t *bufsz, int wantrem);
+ size_t *bufsz);
int kern_sigaction(struct thread *td, int sig, struct sigaction *act,
struct sigaction *oact, int flags);
int kern_sigaltstack(struct thread *td, stack_t *ss, stack_t *oss);