/*
 *   msg: contiguous message storage system.
 */

#define		MSGMAGIC	0x7715		/* unlikely data pattern */
#define		TRC		0x8000000	/* trace flag */

/*
 *   bs_state flags
 */
#define		MSGWAIT		0x0001		/* wait for arena to clear */

/*
 *   Format of the message arena
 */
struct	buddy		{
	unsigned	short	bs_state;
	unsigned	short	bs_magic;
	struct		buddy	*bs_forw;
	struct		buddy	*bs_back;
	};
