add comments describing the fields
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 3 May 1991 08:40:34 +0000 (00:40 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 3 May 1991 08:40:34 +0000 (00:40 -0800)
SCCS-vsn: sys/sys/msgbuf.h 7.5

usr/src/sys/sys/msgbuf.h

index 2ac826a..abb9368 100644 (file)
@@ -4,16 +4,16 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)msgbuf.h    7.4 (Berkeley) %G%
+ *     @(#)msgbuf.h    7.5 (Berkeley) %G%
  */
 
  */
 
-#define        MSG_MAGIC       0x063061
 #define        MSG_BSIZE       (4096 - 3 * sizeof(long))
 struct msgbuf {
 #define        MSG_BSIZE       (4096 - 3 * sizeof(long))
 struct msgbuf {
+#define        MSG_MAGIC       0x063061
        long    msg_magic;
        long    msg_magic;
-       long    msg_bufx;
-       long    msg_bufr;
-       char    msg_bufc[MSG_BSIZE];
+       long    msg_bufx;               /* write pointer */
+       long    msg_bufr;               /* read pointer */
+       char    msg_bufc[MSG_BSIZE];    /* buffer */
 };
 #ifdef KERNEL
 struct msgbuf *msgbufp;
 };
 #ifdef KERNEL
 struct msgbuf *msgbufp;