Document that all the other commands are either
identical to the FreeBSD ones or rejected by kern_msgctl(). Found with: Coverity Prevent(tm) CID: 3456 Approved by: kib (mentor)
This commit is contained in:
parent
ec5e25f237
commit
7356a43c88
@ -672,6 +672,14 @@ linux_msgctl(struct thread *td, struct linux_msgctl_args *args)
|
||||
return (error);
|
||||
}
|
||||
|
||||
/*
|
||||
* TODO: implement this
|
||||
* case LINUX_MSG_STAT:
|
||||
*/
|
||||
case LINUX_IPC_STAT:
|
||||
/* NOTHING */
|
||||
break;
|
||||
|
||||
case LINUX_IPC_SET:
|
||||
error = linux_msqid_pullup(args->cmd & LINUX_IPC_64,
|
||||
&linux_msqid, PTRIN(args->buf));
|
||||
@ -679,6 +687,14 @@ linux_msgctl(struct thread *td, struct linux_msgctl_args *args)
|
||||
return (error);
|
||||
linux_to_bsd_msqid_ds(&linux_msqid, &bsd_msqid);
|
||||
break;
|
||||
|
||||
case LINUX_IPC_RMID:
|
||||
/* NOTHING */
|
||||
break;
|
||||
|
||||
default:
|
||||
return (EINVAL);
|
||||
break;
|
||||
}
|
||||
|
||||
error = kern_msgctl(td, args->msqid, bsd_cmd, &bsd_msqid);
|
||||
|
Loading…
Reference in New Issue
Block a user