Remove redundant checks for msgsnd(3) and msgrcv(3).
COMPAT_IA32 (implicitly) requires SYSVSEM, SYSVSHM and SYSVMSG in kernel. Pointed out by: jhb
This commit is contained in:
parent
354f6f4c2e
commit
7c00aa0ce7
@ -1371,9 +1371,6 @@ freebsd32_msgsnd(struct thread *td, struct freebsd32_msgsnd_args *uap)
|
||||
int32_t mtype32;
|
||||
int error;
|
||||
|
||||
if (!SYSCALL_MODULE_PRESENT(msgsnd))
|
||||
return (nosys(td, (struct nosys_args *)uap));
|
||||
|
||||
msgp = PTRIN(uap->msgp);
|
||||
if ((error = copyin(msgp, &mtype32, sizeof(mtype32))) != 0)
|
||||
return (error);
|
||||
@ -1391,9 +1388,6 @@ freebsd32_msgrcv(struct thread *td, struct freebsd32_msgrcv_args *uap)
|
||||
int32_t mtype32;
|
||||
int error;
|
||||
|
||||
if (!SYSCALL_MODULE_PRESENT(msgrcv))
|
||||
return (nosys(td, (struct nosys_args *)uap));
|
||||
|
||||
msgp = PTRIN(uap->msgp);
|
||||
if ((error = kern_msgrcv(td, uap->msqid,
|
||||
(char *)msgp + sizeof(mtype32), uap->msgsz,
|
||||
|
Loading…
Reference in New Issue
Block a user