summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/msgctl.3
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-06-29 18:54:17 +0000
committerkib <kib@FreeBSD.org>2009-06-29 18:54:17 +0000
commit8eb4412c3f17561dfaafef706ac9142086068e62 (patch)
tree71c8cd4991bc25f40a9a88bd3adad87ee2cfa271 /lib/libc/gen/msgctl.3
parent49f1934625b5e0ef669dd50385840fa4a71a85f3 (diff)
downloadFreeBSD-src-8eb4412c3f17561dfaafef706ac9142086068e62.zip
FreeBSD-src-8eb4412c3f17561dfaafef706ac9142086068e62.tar.gz
Make the structure definitions in the man pages match the real code, and
remove no longer valid caution. Approved by: re (kensmith)
Diffstat (limited to 'lib/libc/gen/msgctl.3')
-rw-r--r--lib/libc/gen/msgctl.314
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/libc/gen/msgctl.3 b/lib/libc/gen/msgctl.3
index ddd827c..7d4ec0d 100644
--- a/lib/libc/gen/msgctl.3
+++ b/lib/libc/gen/msgctl.3
@@ -71,12 +71,8 @@ struct msqid_ds {
pid_t msg_lspid; /* pid of last msgsnd() */
pid_t msg_lrpid; /* pid of last msgrcv() */
time_t msg_stime; /* time of last msgsnd() */
- long msg_pad1;
time_t msg_rtime; /* time of last msgrcv() */
- long msg_pad2;
time_t msg_ctime; /* time of last msgctl() */
- long msg_pad3;
- long msg_pad4[4];
};
.Ed
.Pp
@@ -89,11 +85,11 @@ structure is defined in
and looks like this:
.Bd -literal
struct ipc_perm {
- unsigned short cuid; /* creator user id */
- unsigned short cgid; /* creator group id */
- unsigned short uid; /* user id */
- unsigned short gid; /* group id */
- unsigned short mode; /* r/w permission */
+ uid_t cuid; /* creator user id */
+ gid_t cgid; /* creator group id */
+ uid_t uid; /* user id */
+ gid_t gid; /* group id */
+ mode_t mode; /* r/w permission */
unsigned short seq; /* sequence # (to generate unique ipcid) */
key_t key; /* user specified msg/sem/shm key */
};
OpenPOWER on IntegriCloud