diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2008-11-26 16:38:43 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2008-11-26 16:38:43 +0000 |
commit | b213864d66b9832b7cd85dc91f48ba1d83f6afaf (patch) | |
tree | 180bd4c6864adb1abefc5c21164c72afe17114dc /sys/compat | |
parent | 38802e4268a2c3ee431cbe7340b4e6866ab0bc8e (diff) | |
download | FreeBSD-src-b213864d66b9832b7cd85dc91f48ba1d83f6afaf.zip FreeBSD-src-b213864d66b9832b7cd85dc91f48ba1d83f6afaf.tar.gz |
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)
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_ipc.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c index f1f4b15..273c2f7 100644 --- a/sys/compat/linux/linux_ipc.c +++ b/sys/compat/linux/linux_ipc.c @@ -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); |