1 /* 2 * Copyright (c) 1981, 1984, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)msgbuf.h 8.1 (Berkeley) 06/02/93 8 */ 9 10 #define MSG_BSIZE (4096 - 3 * sizeof(long)) 11 struct msgbuf { 12 #define MSG_MAGIC 0x063061 13 long msg_magic; 14 long msg_bufx; /* write pointer */ 15 long msg_bufr; /* read pointer */ 16 char msg_bufc[MSG_BSIZE]; /* buffer */ 17 }; 18 #ifdef KERNEL 19 struct msgbuf *msgbufp; 20 #endif 21