/*	@(#)mxipc.h	13.3 (RC International) 91/03/04	*/

#include <sys/ioctl.h>

/*
 *  Ioctl commands.
 */

#define	MXIOKEEPINFO		_IOW('x', 0, int)
#define	MXIOSETQBSZ		_IOW('x', 1, int)
#define	MXIOGETQBSZ		_IOR('x', 2, int)
#define	MXIOGETSTAT		_IOR('x', 3, struct mxipc_statistics)

/*
 *  Statistics information.
 */

struct mxipc_statistics
{
    time_t			mxst_first_open;	/* first open time */
    time_t			mxst_last_open;		/* last open time */
    time_t			mxst_last_read;		/* last read time */
    time_t			mxst_last_write;	/* last write time */
    u_long			mxst_last_opener;	/* last opener's pid */
    u_long			mxst_last_reader;	/* last reader's pid */
    u_long			mxst_last_writer;	/* last writer's pid */
    u_short			mxst_max_wq_depth;	/* max queue depth */
    u_short			mxst_n_closes;		/* # closes */
    u_short			mxst_n_msgs;		/* # messages */
    u_short			mxst_n_bytes;		/* # bytes */
    u_long			mxst_tot_msgs;		/* total # messages */
    u_long			mxst_tot_bytes;		/* total # bytes */
    u_long			mxst_tot_alloc;		/* allocated memory */
};

