/*
 * @DEC_COPYRIGHT@
 */
/*
 * HISTORY
 * $Log:	msgbuf.h,v $
 * Revision 4.2.2.2  92/02/28  14:52:41  Scott_Cranston
 * 	AG bmerge
 * 	removed #if UERF stuff added in TIN
 * 	[92/02/28  10:28:14  Scott_Cranston]
 * 
 * Revision 4.2  91/09/19  22:59:01  devbld
 * 	Adding ODE Headers
 * 
 * $EndLog$
 */
/*	
 *	@(#)$RCSfile: msgbuf.h,v $ $Revision: 4.2.2.2 $ (DEC) $Date: 92/02/28 14:52:41 $
 */ 
/*
 */
/*
 * (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
 * ALL RIGHTS RESERVED
 */
/* 
 * Mach Operating System
 * Copyright (c) 1989 Carnegie-Mellon University
 * All rights reserved.  The CMU software License Agreement specifies
 * the terms and conditions for use and redistribution.
 */
/*
 * OSF/1 Release 1.0
 */
/*
 * Copyright (c) 1982, 1986 Regents of the University of California.
 * All rights reserved.  The Berkeley software License Agreement
 * specifies the terms and conditions for redistribution.
 *

 */


 /*
  * Change History
  *
  * 27-Jun-91   Scott Cranston
  *     Changed optional compilation of binary error support strategy.
  *        - changed instances of '#ifdef _UERF' to'#if UERF'
  *
  * 5-Jun-91	Scott Cranston
  *      Increased size of msgbuf to 24Kb for binary error logging
  */

#ifndef	_SYS_MSGBUF_H_
#define _SYS_MSGBUF_H_

#define MSG_MAGIC	0x063061

#define MSG_BSIZE	(4096 - 3 * sizeof (long))

struct	msgbuf {
	long	msg_magic;
	long	msg_bufx;
	long	msg_bufr;
	char	msg_bufc[MSG_BSIZE];
};

#ifdef	KERNEL
#ifdef	mips
/*
 * The message buffer lives at the end of physical address
 * space, so that we can recover it after a crash.
 */
extern struct	msgbuf *pmsgbuf;
#else
extern struct	msgbuf msgbuf;
#endif	/* mips */
#endif	/* KERNEL */
#endif	/* _SYS_MSGBUF_H_ */
