summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2008-04-03 16:21:43 +0000
committerru <ru@FreeBSD.org>2008-04-03 16:21:43 +0000
commitc60a524cb1cf560ebf95db2dafc77b1de66faf7d (patch)
tree50bfbb09de07d5e1c4a534d158bdd8ab9865afd5 /lib
parent253d6ed01c4c6583932e5d2a72f5df2ef6f108fc (diff)
downloadFreeBSD-src-c60a524cb1cf560ebf95db2dafc77b1de66faf7d.zip
FreeBSD-src-c60a524cb1cf560ebf95db2dafc77b1de66faf7d.tar.gz
Fix descriptions of "struct msqid_ds and "struct ipc_perm" to match
harsh reality.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/msgctl.322
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/libc/gen/msgctl.3 b/lib/libc/gen/msgctl.3
index 7978725..ddd827c 100644
--- a/lib/libc/gen/msgctl.3
+++ b/lib/libc/gen/msgctl.3
@@ -31,7 +31,7 @@
.\"
.\" $FreeBSD$
.\"/
-.Dd November 24, 1997
+.Dd April 3, 2008
.Dt MSGCTL 3
.Os
.Sh NAME
@@ -65,9 +65,9 @@ struct msqid_ds {
struct ipc_perm msg_perm; /* msg queue permission bits */
struct msg *msg_first; /* first message in the queue */
struct msg *msg_last; /* last message in the queue */
- u_long msg_cbytes; /* number of bytes in use on the queue */
- u_long msg_qnum; /* number of msgs in the queue */
- u_long msg_qbytes; /* max # of bytes on the queue */
+ msglen_t msg_cbytes; /* number of bytes in use on the queue */
+ msgqnum_t msg_qnum; /* number of msgs in the queue */
+ msglen_t msg_qbytes; /* max # of bytes on the queue */
pid_t msg_lspid; /* pid of last msgsnd() */
pid_t msg_lrpid; /* pid of last msgrcv() */
time_t msg_stime; /* time of last msgsnd() */
@@ -89,13 +89,13 @@ structure is defined in
and looks like this:
.Bd -literal
struct ipc_perm {
- ushort cuid; /* creator user id */
- ushort cgid; /* creator group id */
- ushort uid; /* user id */
- ushort gid; /* group id */
- ushort mode; /* r/w permission */
- ushort seq; /* sequence # (to generate unique msg/sem/shm id) */
- key_t key; /* user specified msg/sem/shm key */
+ 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 */
+ unsigned short seq; /* sequence # (to generate unique ipcid) */
+ key_t key; /* user specified msg/sem/shm key */
};
.Ed
.Pp
OpenPOWER on IntegriCloud