home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / sys / msgbuf.h < prev    next >
C/C++ Source or Header  |  1993-10-19  |  1KB  |  58 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1989 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  */
  7. /*
  8.  * HISTORY
  9.  * $Log:    msgbuf.h,v $
  10.  * Revision 2.5  89/05/30  10:43:37  rvb
  11.  *     Rephrased a comment.
  12.  *     [89/05/17            af]
  13.  * 
  14.  * Revision 2.4  89/03/09  22:05:57  rpd
  15.  *     More cleanup.
  16.  * 
  17.  * Revision 2.3  89/02/25  17:54:58  gm0w
  18.  *     Changes for cleanup.
  19.  * 
  20.  * Revision 2.2  89/01/23  22:27:16  af
  21.  *     Hack for mips msgbuf allocation
  22.  *     [89/01/07            af]
  23.  */
  24. /*
  25.  * Copyright (c) 1982, 1986 Regents of the University of California.
  26.  * All rights reserved.  The Berkeley software License Agreement
  27.  * specifies the terms and conditions for redistribution.
  28.  *
  29.  *    @(#)msgbuf.h    7.1 (Berkeley) 6/4/86
  30.  */
  31.  
  32. #ifndef    _SYS_MSGBUF_H_
  33. #define _SYS_MSGBUF_H_
  34.  
  35. #define MSG_MAGIC    0x063061
  36. #define MSG_BSIZE    (4096 - 3 * sizeof (long))
  37.  
  38. struct    msgbuf {
  39.     long    msg_magic;
  40.     long    msg_bufx;
  41.     long    msg_bufr;
  42.     char    msg_bufc[MSG_BSIZE];
  43. };
  44.  
  45. #ifdef    KERNEL
  46. #if    mips || NeXT
  47. /*
  48.  * The message buffer lives at the end of physical address
  49.  * space, so that we can recover it after a crash.
  50.  */
  51. extern struct    msgbuf *pmsgbuf;
  52. #else
  53. extern struct    msgbuf msgbuf;
  54. #endif    mips
  55. #endif    KERNEL
  56. #endif    _SYS_MSGBUF_H_
  57.  
  58.