00001 #ifndef mbxdef_h 00002 #define mbxdef_h 00003 00004 #define MBX_M_ALLOC 0x1 00005 #define MBX_M_VALID 0x2 00006 #define MBX_M_DELPEND 0x4 00007 #define MBX_M_QUOTALCK 0x8 00008 #define MBX_K_LENGTH 48 00009 #define MBX_C_LENGTH 48 00010 #define MBX_S_MBXDEF 48 00011 00012 struct _mbx { 00013 unsigned long long mbx_q_msg; 00014 // unsigned short int mbx_w_size; 00015 // unsigned char mbx_b_type; 00016 union { 00017 unsigned char mbx_b_flags; 00018 struct { 00019 unsigned mbx_v_alloc : 1; 00020 unsigned mbx_v_valid : 1; 00021 unsigned mbx_v_delpend : 1; 00022 unsigned mbx_v_quotalck : 1; 00023 unsigned mbx_v_fill_0_ : 4; 00024 }; 00025 }; 00026 unsigned char mbx_b_creatport; 00027 unsigned short int mbx_w_unit; 00028 unsigned short int mbx_w_ref; 00029 unsigned short int mbx_w_reader; 00030 unsigned short int mbx_w_readast; 00031 unsigned short int mbx_w_writast; 00032 unsigned short int mbx_w_maxmsg; 00033 unsigned short int mbx_w_msgcnt; 00034 unsigned short int mbx_w_buffquo; 00035 unsigned short int mbx_w_prot; 00036 unsigned int mbx_l_ownuic; 00037 char mbx_t_name [16]; 00038 }; 00039 00040 #endif 00041 00042