/* <rsdmdef.h>
 */
#ifndef _RSDMDEF_H
#define _RSDMDEF_H

#define RSDM$_JOIN_SYSTEM	1	/* system RD Join function */
#define RSDM$_JOIN_DEFAULT	2	/* process default RD Join function */
#define RSDM$_JOIN_DOMAIN	3	/* other RD Join function */
#define RSDM$_LEAVE		4	/* leave RD function */
#define RSDM$K_SYSTEM_RSDM_ID	1	/* system RSDM_ID */
#define RSDM$K_PROCESS_RSDM_ID	2	/* process RSDM_ID */

/* RSDM$ bitfields */
#define RSDM$V_READ	0
#define RSDM$V_WRITE	1
#define RSDM$V_LOCK	2
#define RSDM$M_READ	(1<<RSDM$V_READ)	/* 0x01 */
#define RSDM$M_WRITE	(1<<RSDM$V_WRITE)	/* 0x02 */
#define RSDM$M_LOCK	(1<<RSDM$V_LOCK)	/* 0x04 */
struct rsdm$bits {
    union {
	unsigned long rsdm$l_misc_access;
	struct {
	    unsigned rsdm$v_read  : 1;	/* read access */
	    unsigned rsdm$v_write : 1;	/* write access */
	    unsigned rsdm$v_lock  : 1;	/* lock access */
	    unsigned		  : 5;
	    unsigned		  : 24;
	} rsdm$r_misc_access_bits;
    } rsdm$r_misc_access_overlay;
};

#endif	/*_RSDMDEF_H*/
