/********************************************************************************************************************************/ /* Created: 27-Oct-2009 11:42:06 by OpenVMS SDL EV2-3 */ /* Source: 27-OCT-2009 11:42:00 DISK$SYSMAN:[LAISHEV.WORK.DCPP]ADCDEF.SDL;96 */ /********************************************************************************************************************************/ /*** MODULE ADCDEF IDENT ADCDEF-1-X ***/ #ifndef __ADCDEF_LOADED #define __ADCDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif /*++ */ /* */ /* Facility: */ /* Advanced Direct Connection */ /* */ /* Abstract: */ /* This is an interface module contains data structures definitions, */ /* constants, functions/procedures prototypes. */ /* Based on spec: http://adc.sourceforge.net/ADC.html */ /* */ /* Author: */ /* Ruslan R. Laishev */ /* */ /* Creation Date: 03-JUL-2009 */ /* */ /* Modification History: */ /* */ /*-- */ #define ADC$PORT_ADC 412 #define ADC$EOL_ADC 10 /* */ /* Queue/Double Linked list */ /* */ #ifdef __NEW_STARLET #pragma __member_alignment typedef struct _que { struct _que *que_a_flink; #pragma __member_alignment struct _que *que_a_blink; #pragma __member_alignment unsigned __int64 que_q_spare; } QUE; #else /* __OLD_STARLET */ struct que { void *que_a_flink; void *que_a_blink; unsigned int que_q_spare [2]; } ; #endif /* #ifdef __NEW_STARLET */ #ifdef __NEW_STARLET typedef struct _asc { unsigned char asc_b_asc; char asc_t_asc [64]; } ASC; #else /* __OLD_STARLET */ struct asc { unsigned char asc_b_asc; char asc_t_asc [64]; } ; #endif /* #ifdef __NEW_STARLET */ #ifdef __NEW_STARLET typedef struct _ichc_buf { QUE ichc_r_link; unsigned short int ichc_w_len; unsigned char ichc_b_buf [2048]; } ICHC_BUF; #else /* __OLD_STARLET */ struct ichc_buf { struct que ichc_r_link; unsigned short int ichc_w_len; unsigned char ichc_b_buf [2048]; } ; #endif /* #ifdef __NEW_STARLET */ /* */ /* ADC Message Types */ /* */ #define ADC$MT_BROAD 1 /* Hub must send message to all connected clients, including the sender of the message. */ #define ADC$MT_CLIENT 2 /* Clients must use this message type when communicating directly over TCP. */ #define ADC$MT_DIRECT 3 /* The hub must send the message to the target_sid user. */ #define ADC$MT_ECHO 4 /* The hub must send the message to the target_sid user and the my_sid user. */ #define ADC$MT_FEAT 5 /* The hub must send message to all clients that support both all required (+) */ /* and no excluded (-) features named. */ /* The feature name is matched against the corresponding SU field in INF sent by each client. */ #define ADC$MT_HUB 6 /* Clients must use this message type when a message is intended for the hub only. */ #define ADC$MT_INFO 7 /* Hubs must use this message type when sending a message to a client that didn't */ /* come from another client. */ #define ADC$MT_UDP 8 /* Clients must use this message type when communicating directly over UDP. */ /* */ /* BASE messages */ /* */ #define ADC$MT_FROMHUB 1 /* F - From hub (hub-client TCP) */ #define ADC$MT_TOHUB 2 /* T - To hub (hub-client TCP) */ #define ADC$MT_TC2C 3 /* C - Between clients (client-client TCP) */ #define ADC$MT_UC2CP 4 /* U - Between clients (client-client UDP) */ /* */ /* ADC Actions */ /* */ #define ADC$ACT_STA 1 #define ADC$ACT_SUP 2 #define ADC$ACT_SID 3 #define ADC$ACT_INF 4 #define ADC$ACT_MSG 5 #define ADC$ACT_SCH 6 #define ADC$ACT_RES 7 #define ADC$ACT_CTM 8 #define ADC$ACT_RCM 9 #define ADC$ACT_GPA 10 #define ADC$ACT_PAS 11 #define ADC$ACT_QUI 12 #define ADC$ACT_GET 13 #define ADC$ACT_GFI 14 #define ADC$ACT_SND 15 /* */ /* SCH/SEARCH options */ /* */ #define SCH$M_AN 0x1 #define SCH$M_NO 0x2 #define SCH$M_EX 0x4 #define SCH$M_LE 0x8 #define SCH$M_GE 0x10 #define SCH$M_EQ 0x20 #define SCH$M_TO 0x40 #define SCH$M_TY 0x80 #ifdef __NEW_STARLET typedef struct _adc_sch { __union { unsigned int sch$l_flags; __struct { unsigned sch$v_an : 1; unsigned sch$v_no : 1; unsigned sch$v_ex : 1; unsigned sch$v_le : 1; unsigned sch$v_ge : 1; unsigned sch$v_eq : 1; unsigned sch$v_to : 1; unsigned sch$v_ty : 1; } sch$r_fill_1_; } sch$r_fill_0_; } ADC_SCH; #if !defined(__VAXC) #define sch$l_flags sch$r_fill_0_.sch$l_flags #define sch$v_an sch$r_fill_0_.sch$r_fill_1_.sch$v_an #define sch$v_no sch$r_fill_0_.sch$r_fill_1_.sch$v_no #define sch$v_ex sch$r_fill_0_.sch$r_fill_1_.sch$v_ex #define sch$v_le sch$r_fill_0_.sch$r_fill_1_.sch$v_le #define sch$v_ge sch$r_fill_0_.sch$r_fill_1_.sch$v_ge #define sch$v_eq sch$r_fill_0_.sch$r_fill_1_.sch$v_eq #define sch$v_to sch$r_fill_0_.sch$r_fill_1_.sch$v_to #define sch$v_ty sch$r_fill_0_.sch$r_fill_1_.sch$v_ty #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct adc_sch { __union { unsigned int sch$l_flags; __struct { unsigned sch$v_an : 1; unsigned sch$v_no : 1; unsigned sch$v_ex : 1; unsigned sch$v_le : 1; unsigned sch$v_ge : 1; unsigned sch$v_eq : 1; unsigned sch$v_to : 1; unsigned sch$v_ty : 1; } sch$r_fill_1_; } sch$r_fill_0_; } ; #if !defined(__VAXC) #define sch$l_flags sch$r_fill_0_.sch$l_flags #define sch$v_an sch$r_fill_0_.sch$r_fill_1_.sch$v_an #define sch$v_no sch$r_fill_0_.sch$r_fill_1_.sch$v_no #define sch$v_ex sch$r_fill_0_.sch$r_fill_1_.sch$v_ex #define sch$v_le sch$r_fill_0_.sch$r_fill_1_.sch$v_le #define sch$v_ge sch$r_fill_0_.sch$r_fill_1_.sch$v_ge #define sch$v_eq sch$r_fill_0_.sch$r_fill_1_.sch$v_eq #define sch$v_to sch$r_fill_0_.sch$r_fill_1_.sch$v_to #define sch$v_ty sch$r_fill_0_.sch$r_fill_1_.sch$v_ty #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ /* */ /* RES/SEARCH's result options */ /* */ #define RES$M_FN 0x1 #define RES$M_SI 0x2 #define RES$M_SL 0x4 #define RES$M_TO 0x8 #ifdef __NEW_STARLET typedef struct _adc_res { __union { unsigned int res$l_flags; __struct { unsigned res$v_fn : 1; unsigned res$v_si : 1; unsigned res$v_sl : 1; unsigned res$v_to : 1; unsigned res$v_fill_4_ : 4; } res$r_fill_3_; } res$r_fill_2_; } ADC_RES; #if !defined(__VAXC) #define res$l_flags res$r_fill_2_.res$l_flags #define res$v_fn res$r_fill_2_.res$r_fill_3_.res$v_fn #define res$v_si res$r_fill_2_.res$r_fill_3_.res$v_si #define res$v_sl res$r_fill_2_.res$r_fill_3_.res$v_sl #define res$v_to res$r_fill_2_.res$r_fill_3_.res$v_to #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct adc_res { __union { unsigned int res$l_flags; __struct { unsigned res$v_fn : 1; unsigned res$v_si : 1; unsigned res$v_sl : 1; unsigned res$v_to : 1; unsigned res$v_fill_4_ : 4; } res$r_fill_3_; } res$r_fill_2_; } ; #if !defined(__VAXC) #define res$l_flags res$r_fill_2_.res$l_flags #define res$v_fn res$r_fill_2_.res$r_fill_3_.res$v_fn #define res$v_si res$r_fill_2_.res$r_fill_3_.res$v_si #define res$v_sl res$r_fill_2_.res$r_fill_3_.res$v_sl #define res$v_to res$r_fill_2_.res$r_fill_3_.res$v_to #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ /* */ /* SUP/SUPPORTED Features options */ /* */ #define SUP$M_BASE 0x1 #define SUP$M_TIGR 0x2 #define SUP$M_BZIP 0x4 #define SUP$M_ZLIF 0x8 #define SUP$M_ZLIG 0x10 #ifdef __NEW_STARLET typedef struct _adc_sup { __union { unsigned int sup$l_flags; __struct { unsigned sup$v_base : 1; unsigned sup$v_tigr : 1; unsigned sup$v_bzip : 1; unsigned sup$v_zlif : 1; unsigned sup$v_zlig : 1; unsigned sup$v_fill_7_ : 3; } sup$r_fill_6_; } sup$r_fill_5_; } ADC_SUP; #if !defined(__VAXC) #define sup$l_flags sup$r_fill_5_.sup$l_flags #define sup$v_base sup$r_fill_5_.sup$r_fill_6_.sup$v_base #define sup$v_tigr sup$r_fill_5_.sup$r_fill_6_.sup$v_tigr #define sup$v_bzip sup$r_fill_5_.sup$r_fill_6_.sup$v_bzip #define sup$v_zlif sup$r_fill_5_.sup$r_fill_6_.sup$v_zlif #define sup$v_zlig sup$r_fill_5_.sup$r_fill_6_.sup$v_zlig #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct adc_sup { __union { unsigned int sup$l_flags; __struct { unsigned sup$v_base : 1; unsigned sup$v_tigr : 1; unsigned sup$v_bzip : 1; unsigned sup$v_zlif : 1; unsigned sup$v_zlig : 1; unsigned sup$v_fill_7_ : 3; } sup$r_fill_6_; } sup$r_fill_5_; } ; #if !defined(__VAXC) #define sup$l_flags sup$r_fill_5_.sup$l_flags #define sup$v_base sup$r_fill_5_.sup$r_fill_6_.sup$v_base #define sup$v_tigr sup$r_fill_5_.sup$r_fill_6_.sup$v_tigr #define sup$v_bzip sup$r_fill_5_.sup$r_fill_6_.sup$v_bzip #define sup$v_zlif sup$r_fill_5_.sup$r_fill_6_.sup$v_zlif #define sup$v_zlig sup$r_fill_5_.sup$r_fill_6_.sup$v_zlig #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ /* */ /* ADC client's INFormation structure */ /* */ /* */ /* ADC Actions */ /* */ #define INF$M_ID 0x1 #define INF$M_PD 0x2 #define INF$M_I4 0x4 #define INF$M_I6 0x8 #define INF$M_U4 0x10 #define INF$M_U6 0x20 #define INF$M_SS 0x40 #define INF$M_SF 0x80 #define INF$M_VE 0x100 #define INF$M_US 0x200 #define INF$M_DS 0x400 #define INF$M_SL 0x800 #define INF$M_AS 0x1000 #define INF$M_AM 0x2000 #define INF$M_EM 0x4000 #define INF$M_NI 0x8000 #define INF$M_DE 0x10000 #define INF$M_HN 0x20000 #define INF$M_HR 0x40000 #define INF$M_HO 0x80000 #define INF$M_TO 0x100000 #define INF$M_CT 0x200000 #define INF$M_AW 0x400000 #define INF$M_SU 0x800000 #define INF$M_RF 0x1000000 #define INF$M_BOT 0x1 #define INF$M_USER 0x2 #define INF$M_OPER 0x4 #define INF$M_MGR 0x8 #define INF$M_OWNER 0x10 #define INF$M_HUB 0x20 #ifdef __NEW_STARLET typedef struct _adc_inf { __union { unsigned int inf$l_inf; __struct { unsigned inf$v_id : 1; unsigned inf$v_pd : 1; unsigned inf$v_i4 : 1; unsigned inf$v_i6 : 1; unsigned inf$v_u4 : 1; unsigned inf$v_u6 : 1; unsigned inf$v_ss : 1; unsigned inf$v_sf : 1; unsigned inf$v_ve : 1; unsigned inf$v_us : 1; unsigned inf$v_ds : 1; unsigned inf$v_sl : 1; unsigned inf$v_as : 1; unsigned inf$v_am : 1; unsigned inf$v_em : 1; unsigned inf$v_ni : 1; unsigned inf$v_de : 1; unsigned inf$v_hn : 1; unsigned inf$v_hr : 1; unsigned inf$v_ho : 1; unsigned inf$v_to : 1; unsigned inf$v_ct : 1; unsigned inf$v_aw : 1; unsigned inf$v_su : 1; unsigned inf$v_rf : 1; unsigned inf$v_fill_12_ : 7; } inf$r_fill_9_; } inf$r_fill_8_; ASC inf$r_id; ASC inf$r_pd; unsigned int inf$l_i4; unsigned __int64 inf$q_i6; unsigned int inf$l_u4; unsigned int inf$l_u6; unsigned __int64 inf$q_ss; unsigned int inf$l_sf; ASC inf$r_ve; unsigned int inf$l_us; unsigned int inf$l_ds; unsigned int inf$l_sl; unsigned int inf$l_as; unsigned int inf$l_am; ASC inf$r_em; ASC inf$r_ni; ASC inf$r_de; unsigned int inf$l_hn; unsigned int inf$l_hr; unsigned int inf$l_ho; ASC inf$r_to; __union { unsigned int inf$l_ct; __struct { unsigned inf$v_bot : 1; unsigned inf$v_user : 1; unsigned inf$v_oper : 1; unsigned inf$v_mgr : 1; unsigned inf$v_owner : 1; unsigned inf$v_hub : 1; unsigned inf$v_fill_13_ : 2; } inf$r_fill_11_; } inf$r_fill_10_; unsigned int inf$l_aw; ASC inf$r_su; ASC inf$r_rf; } ADC_INF; #if !defined(__VAXC) #define inf$l_inf inf$r_fill_8_.inf$l_inf #define inf$v_id inf$r_fill_8_.inf$r_fill_9_.inf$v_id #define inf$v_pd inf$r_fill_8_.inf$r_fill_9_.inf$v_pd #define inf$v_i4 inf$r_fill_8_.inf$r_fill_9_.inf$v_i4 #define inf$v_i6 inf$r_fill_8_.inf$r_fill_9_.inf$v_i6 #define inf$v_u4 inf$r_fill_8_.inf$r_fill_9_.inf$v_u4 #define inf$v_u6 inf$r_fill_8_.inf$r_fill_9_.inf$v_u6 #define inf$v_ss inf$r_fill_8_.inf$r_fill_9_.inf$v_ss #define inf$v_sf inf$r_fill_8_.inf$r_fill_9_.inf$v_sf #define inf$v_ve inf$r_fill_8_.inf$r_fill_9_.inf$v_ve #define inf$v_us inf$r_fill_8_.inf$r_fill_9_.inf$v_us #define inf$v_ds inf$r_fill_8_.inf$r_fill_9_.inf$v_ds #define inf$v_sl inf$r_fill_8_.inf$r_fill_9_.inf$v_sl #define inf$v_as inf$r_fill_8_.inf$r_fill_9_.inf$v_as #define inf$v_am inf$r_fill_8_.inf$r_fill_9_.inf$v_am #define inf$v_em inf$r_fill_8_.inf$r_fill_9_.inf$v_em #define inf$v_ni inf$r_fill_8_.inf$r_fill_9_.inf$v_ni #define inf$v_de inf$r_fill_8_.inf$r_fill_9_.inf$v_de #define inf$v_hn inf$r_fill_8_.inf$r_fill_9_.inf$v_hn #define inf$v_hr inf$r_fill_8_.inf$r_fill_9_.inf$v_hr #define inf$v_ho inf$r_fill_8_.inf$r_fill_9_.inf$v_ho #define inf$v_to inf$r_fill_8_.inf$r_fill_9_.inf$v_to #define inf$v_ct inf$r_fill_8_.inf$r_fill_9_.inf$v_ct #define inf$v_aw inf$r_fill_8_.inf$r_fill_9_.inf$v_aw #define inf$v_su inf$r_fill_8_.inf$r_fill_9_.inf$v_su #define inf$v_rf inf$r_fill_8_.inf$r_fill_9_.inf$v_rf #define inf$l_ct inf$r_fill_10_.inf$l_ct #define inf$v_bot inf$r_fill_10_.inf$r_fill_11_.inf$v_bot #define inf$v_user inf$r_fill_10_.inf$r_fill_11_.inf$v_user #define inf$v_oper inf$r_fill_10_.inf$r_fill_11_.inf$v_oper #define inf$v_mgr inf$r_fill_10_.inf$r_fill_11_.inf$v_mgr #define inf$v_owner inf$r_fill_10_.inf$r_fill_11_.inf$v_owner #define inf$v_hub inf$r_fill_10_.inf$r_fill_11_.inf$v_hub #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct adc_inf { __union { unsigned int inf$l_inf; __struct { unsigned inf$v_id : 1; unsigned inf$v_pd : 1; unsigned inf$v_i4 : 1; unsigned inf$v_i6 : 1; unsigned inf$v_u4 : 1; unsigned inf$v_u6 : 1; unsigned inf$v_ss : 1; unsigned inf$v_sf : 1; unsigned inf$v_ve : 1; unsigned inf$v_us : 1; unsigned inf$v_ds : 1; unsigned inf$v_sl : 1; unsigned inf$v_as : 1; unsigned inf$v_am : 1; unsigned inf$v_em : 1; unsigned inf$v_ni : 1; unsigned inf$v_de : 1; unsigned inf$v_hn : 1; unsigned inf$v_hr : 1; unsigned inf$v_ho : 1; unsigned inf$v_to : 1; unsigned inf$v_ct : 1; unsigned inf$v_aw : 1; unsigned inf$v_su : 1; unsigned inf$v_rf : 1; unsigned inf$v_fill_12_ : 7; } inf$r_fill_9_; } inf$r_fill_8_; struct asc inf$r_id; struct asc inf$r_pd; unsigned int inf$l_i4; unsigned int inf$q_i6 [2]; unsigned int inf$l_u4; unsigned int inf$l_u6; unsigned int inf$q_ss [2]; unsigned int inf$l_sf; struct asc inf$r_ve; unsigned int inf$l_us; unsigned int inf$l_ds; unsigned int inf$l_sl; unsigned int inf$l_as; unsigned int inf$l_am; struct asc inf$r_em; struct asc inf$r_ni; struct asc inf$r_de; unsigned int inf$l_hn; unsigned int inf$l_hr; unsigned int inf$l_ho; struct asc inf$r_to; __union { unsigned int inf$l_ct; __struct { unsigned inf$v_bot : 1; unsigned inf$v_user : 1; unsigned inf$v_oper : 1; unsigned inf$v_mgr : 1; unsigned inf$v_owner : 1; unsigned inf$v_hub : 1; unsigned inf$v_fill_13_ : 2; } inf$r_fill_11_; } inf$r_fill_10_; unsigned int inf$l_aw; struct asc inf$r_su; struct asc inf$r_rf; } ; #if !defined(__VAXC) #define inf$l_inf inf$r_fill_8_.inf$l_inf #define inf$v_id inf$r_fill_8_.inf$r_fill_9_.inf$v_id #define inf$v_pd inf$r_fill_8_.inf$r_fill_9_.inf$v_pd #define inf$v_i4 inf$r_fill_8_.inf$r_fill_9_.inf$v_i4 #define inf$v_i6 inf$r_fill_8_.inf$r_fill_9_.inf$v_i6 #define inf$v_u4 inf$r_fill_8_.inf$r_fill_9_.inf$v_u4 #define inf$v_u6 inf$r_fill_8_.inf$r_fill_9_.inf$v_u6 #define inf$v_ss inf$r_fill_8_.inf$r_fill_9_.inf$v_ss #define inf$v_sf inf$r_fill_8_.inf$r_fill_9_.inf$v_sf #define inf$v_ve inf$r_fill_8_.inf$r_fill_9_.inf$v_ve #define inf$v_us inf$r_fill_8_.inf$r_fill_9_.inf$v_us #define inf$v_ds inf$r_fill_8_.inf$r_fill_9_.inf$v_ds #define inf$v_sl inf$r_fill_8_.inf$r_fill_9_.inf$v_sl #define inf$v_as inf$r_fill_8_.inf$r_fill_9_.inf$v_as #define inf$v_am inf$r_fill_8_.inf$r_fill_9_.inf$v_am #define inf$v_em inf$r_fill_8_.inf$r_fill_9_.inf$v_em #define inf$v_ni inf$r_fill_8_.inf$r_fill_9_.inf$v_ni #define inf$v_de inf$r_fill_8_.inf$r_fill_9_.inf$v_de #define inf$v_hn inf$r_fill_8_.inf$r_fill_9_.inf$v_hn #define inf$v_hr inf$r_fill_8_.inf$r_fill_9_.inf$v_hr #define inf$v_ho inf$r_fill_8_.inf$r_fill_9_.inf$v_ho #define inf$v_to inf$r_fill_8_.inf$r_fill_9_.inf$v_to #define inf$v_ct inf$r_fill_8_.inf$r_fill_9_.inf$v_ct #define inf$v_aw inf$r_fill_8_.inf$r_fill_9_.inf$v_aw #define inf$v_su inf$r_fill_8_.inf$r_fill_9_.inf$v_su #define inf$v_rf inf$r_fill_8_.inf$r_fill_9_.inf$v_rf #define inf$l_ct inf$r_fill_10_.inf$l_ct #define inf$v_bot inf$r_fill_10_.inf$r_fill_11_.inf$v_bot #define inf$v_user inf$r_fill_10_.inf$r_fill_11_.inf$v_user #define inf$v_oper inf$r_fill_10_.inf$r_fill_11_.inf$v_oper #define inf$v_mgr inf$r_fill_10_.inf$r_fill_11_.inf$v_mgr #define inf$v_owner inf$r_fill_10_.inf$r_fill_11_.inf$v_owner #define inf$v_hub inf$r_fill_10_.inf$r_fill_11_.inf$v_hub #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ /* */ /* ADC Message fields arguments */ /* */ #ifdef __NEW_STARLET typedef struct _adc_msg { QUE msg$r_link; unsigned msg$v_sid : 20 /** WARNING: bitfield array has been reduced to a string **/ ; /* SID of message originator */ unsigned msg$v_fill_14_ : 4; unsigned char msg$b_mt; /* See ADC Message Types constant */ unsigned char msg$b_act; /* ADC Actions */ __union { ADC_INF msg$r_inf; } msg$r_bl; unsigned int msg$l_opts; __struct { unsigned char msg$b_len; char msg$t_sts [255]; } msg$r_line; } ADC_MSG; #if !defined(__VAXC) #define msg$r_inf msg$r_bl.msg$r_inf #define msg$b_len msg$r_line.msg$b_len #define msg$t_sts msg$r_line.msg$t_sts #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct adc_msg { struct que msg$r_link; unsigned msg$v_sid : 20 /** WARNING: bitfield array has been reduced to a string **/ ; /* SID of message originator */ unsigned msg$v_fill_14_ : 4; unsigned char msg$b_mt; /* See ADC Message Types constant */ unsigned char msg$b_act; /* ADC Actions */ __union { struct adc_inf msg$r_inf; } msg$r_bl; unsigned int msg$l_opts; __struct { unsigned char msg$b_len; char msg$t_sts [255]; } msg$r_line; } ; #if !defined(__VAXC) #define msg$r_inf msg$r_bl.msg$r_inf #define msg$b_len msg$r_line.msg$b_len #define msg$t_sts msg$r_line.msg$t_sts #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ /* */ /* ADC user's session context */ /* */ #define CTX$M_IDENTIFY 0x1 #define CTX$M_VERIFY 0x2 #define CTX$M_NORMAL 0x4 #define CTX$M_DATA 0x8 #ifdef __NEW_STARLET typedef struct _adc_ctx { QUE ctx$r_link; unsigned ctx$v_sid : 20 /** WARNING: bitfield array has been reduced to a string **/ ; /* Session Id */ unsigned ctx$v_fill_17_ : 4; unsigned int ctx$l_chan; /* Network I/O channel */ unsigned int ctx$l_addr; /* struct in_addr */ unsigned short int ctx$w_port; __struct { unsigned char addr_b_len; char addr_t_sts [32]; } ctx$r_addr; ADC_INF ctx$r_inf; unsigned char ctx$b_salt [32]; ASC ctx$r_user; __union { unsigned int ctx$l_state; __struct { unsigned ctx$v_identify : 1; unsigned ctx$v_verify : 1; unsigned ctx$v_normal : 1; unsigned ctx$v_data : 1; unsigned ctx$v_fill_18_ : 4; } ctx$r_fill_16_; } ctx$r_fill_15_; unsigned int ctx$l_opts; __struct { unsigned short int buf_w_len; unsigned char buf_b_buf [2048]; } ctx$r_buf; } ADC_CTX; #if !defined(__VAXC) #define addr_b_len ctx$r_addr.addr_b_len #define addr_t_sts ctx$r_addr.addr_t_sts #define ctx$l_state ctx$r_fill_15_.ctx$l_state #define ctx$v_identify ctx$r_fill_15_.ctx$r_fill_16_.ctx$v_identify #define ctx$v_verify ctx$r_fill_15_.ctx$r_fill_16_.ctx$v_verify #define ctx$v_normal ctx$r_fill_15_.ctx$r_fill_16_.ctx$v_normal #define ctx$v_data ctx$r_fill_15_.ctx$r_fill_16_.ctx$v_data #define buf_w_len ctx$r_buf.buf_w_len #define buf_b_buf ctx$r_buf.buf_b_buf #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ struct adc_ctx { struct que ctx$r_link; unsigned ctx$v_sid : 20 /** WARNING: bitfield array has been reduced to a string **/ ; /* Session Id */ unsigned ctx$v_fill_17_ : 4; unsigned int ctx$l_chan; /* Network I/O channel */ unsigned int ctx$l_addr; /* struct in_addr */ unsigned short int ctx$w_port; __struct { unsigned char addr_b_len; char addr_t_sts [32]; } ctx$r_addr; struct adc_inf ctx$r_inf; unsigned char ctx$b_salt [32]; struct asc ctx$r_user; __union { unsigned int ctx$l_state; __struct { unsigned ctx$v_identify : 1; unsigned ctx$v_verify : 1; unsigned ctx$v_normal : 1; unsigned ctx$v_data : 1; unsigned ctx$v_fill_18_ : 4; } ctx$r_fill_16_; } ctx$r_fill_15_; unsigned int ctx$l_opts; __struct { unsigned short int buf_w_len; unsigned char buf_b_buf [2048]; } ctx$r_buf; } ; #if !defined(__VAXC) #define addr_b_len ctx$r_addr.addr_b_len #define addr_t_sts ctx$r_addr.addr_t_sts #define ctx$l_state ctx$r_fill_15_.ctx$l_state #define ctx$v_identify ctx$r_fill_15_.ctx$r_fill_16_.ctx$v_identify #define ctx$v_verify ctx$r_fill_15_.ctx$r_fill_16_.ctx$v_verify #define ctx$v_normal ctx$r_fill_15_.ctx$r_fill_16_.ctx$v_normal #define ctx$v_data ctx$r_fill_15_.ctx$r_fill_16_.ctx$v_data #define buf_w_len ctx$r_buf.buf_w_len #define buf_b_buf ctx$r_buf.buf_b_buf #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ /* */ /* */ /* */ #define CTX$M_USED 0x1 #ifdef __cplusplus /* Define structure prototypes */ struct _ctx; #endif /* #ifdef __cplusplus */ #ifdef __NEW_STARLET typedef struct _adc_ent { __union { unsigned int ctx$l_flag; __struct { unsigned ctx$v_used : 1; unsigned ctx$v_fill_21_ : 31; } ctx$r_fill_20_; } ctx$r_fill_19_; struct _ctx *ctx$a_ptr; } ADC_ENT; #if !defined(__VAXC) #define ctx$l_flag ctx$r_fill_19_.ctx$l_flag #define ctx$v_used ctx$r_fill_19_.ctx$r_fill_20_.ctx$v_used #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ #pragma __member_alignment struct adc_ent { __union { unsigned int ctx$l_flag; __struct { unsigned ctx$v_used : 1; unsigned ctx$v_fill_21_ : 31; } ctx$r_fill_20_; } ctx$r_fill_19_; void *ctx$a_ptr; } ; #if !defined(__VAXC) #define ctx$l_flag ctx$r_fill_19_.ctx$l_flag #define ctx$v_used ctx$r_fill_19_.ctx$r_fill_20_.ctx$v_used #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ /* */ /* */ /* */ #ifdef __NEW_STARLET typedef struct _adc_vec { ASC vec$r_ni; ASC vec$r_de; ASC vec$r_ve; ASC vec$r_hh; ASC vec$r_ws; ASC vec$r_ow; unsigned short int vec$w_uc; unsigned __int64 vec$q_ss; unsigned int vec$l_sf; unsigned int vec$l_ms; unsigned short int vec$w_mc; char vec$b_fill_22_ [6]; unsigned __int64 vec$q_minss; /* Minimum Shared Size */ unsigned int vec$l_minsf; /* Minimum Shared Files */ unsigned int vec$l_minsl; /* Minimum slots */ } ADC_VEC; #else /* __OLD_STARLET */ struct adc_vec { struct asc vec$r_ni; struct asc vec$r_de; struct asc vec$r_ve; struct asc vec$r_hh; struct asc vec$r_ws; struct asc vec$r_ow; unsigned short int vec$w_uc; unsigned int vec$q_ss [2]; unsigned int vec$l_sf; unsigned int vec$l_ms; unsigned short int vec$w_mc; char vec$b_fill_22_ [6]; unsigned int vec$q_minss [2]; /* Minimum Shared Size */ unsigned int vec$l_minsf; /* Minimum Shared Files */ unsigned int vec$l_minsl; /* Minimum slots */ } ; #endif /* #ifdef __NEW_STARLET */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __ADCDEF_LOADED */