/********************************************************************************************************************************/ /* Created: 30-Mar-2010 17:29:51 by OpenVMS SDL EV3-3 */ /* Source: 30-MAR-2010 17:29:22 $1$DGA7274:[STARLET_H.SRC]STARDEFFL.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $LDDEF ***/ #ifndef __LDDEF_LOADED #define __LDDEF_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 #include #define IO$_LD_CONTROL 20 #define LDIO$K_CONNECT 0 #define LDIO$K_DISCONNECT 1 #define LDIO$K_ENABLE_TRACE 2 #define LDIO$K_DISABLE_TRACE 3 #define LDIO$K_GET_TRACE 4 #define LDIO$K_RESET_TRACE 5 #define LDIO$K_GET_CONNECTION 6 #define LDIO$K_SET_SEED 7 #define LDIO$K_ENABLE_WATCH 8 #define LDIO$K_DISABLE_WATCH 9 #define LDIO$K_GET_WATCH 10 #define LDIO$K_RESUME_WATCH 11 #define LDIO$K_GET_SUSPEND_LIST 12 #define LDIO$K_ENABLE_PROTECT 13 #define LDIO$K_DISABLE_PROTECT 14 #define LDIO$K_SET_ALLOCLASS 15 #define LDIO$K_GET_TRACE_PARAMETERS 16 #define LDIO$K_GET_VERSION 17 #define LDIO$M_REPLACE 0x100 #define LDIO$M_ABORT 0x200 #define LDIO$M_INQUIRE 0x400 #define LDIO$M_NOWAIT 0x800 #define LDIO$M_RESET 0x1000 #define LDIO$M_SHARE 0x2000 #define LDIO$M_ACCURATE 0x4000 #define LDIO$M_FDTTRACE 0x8000 #define LDIO$M_LBN 0x10000 #define LDIO$M_OVERRIDE 0x20000 #define LDIO$M_LOCK 0x40000 #define LDIO$M_NOFE 0x80000 #ifdef __NEW_STARLET typedef struct _ldio { unsigned ldio$v_func : 8; unsigned ldio$v_replace : 1; unsigned ldio$v_abort : 1; unsigned ldio$v_inquire : 1; unsigned ldio$v_nowait : 1; unsigned ldio$v_reset : 1; unsigned ldio$v_share : 1; unsigned ldio$v_accurate : 1; unsigned ldio$v_fdttrace : 1; unsigned ldio$v_lbn : 1; unsigned ldio$v_override : 1; unsigned ldio$v_lock : 1; unsigned ldio$v_nofe : 1; unsigned ldio$v_fill_77_ : 4; } LDIO; #else /* __OLD_STARLET */ struct ldio { unsigned ldio$v_func : 8; unsigned ldio$v_replace : 1; unsigned ldio$v_abort : 1; unsigned ldio$v_inquire : 1; unsigned ldio$v_nowait : 1; unsigned ldio$v_reset : 1; unsigned ldio$v_share : 1; unsigned ldio$v_accurate : 1; unsigned ldio$v_fdttrace : 1; unsigned ldio$v_lbn : 1; unsigned ldio$v_override : 1; unsigned ldio$v_lock : 1; unsigned ldio$v_nofe : 1; unsigned ldio$v_fill_77_ : 4; } ; #endif /* #ifdef __NEW_STARLET */ #define LDRSN$K_NOTSHARED 1 #define LDRSN$K_NOSHARE 2 #define LDRSN$K_ALLOCLASS 3 #define LDRSN$K_UNITNUMBER 4 #define LDRSN$K_TRACKS 5 #define LDRSN$K_SECTORS 6 #define LDRSN$K_CYLINDERS 7 #define LDRSN$K_MAXBLOCK 8 #define LDRSN$K_NOLBNMAP 9 #define LDRSN$K_STARTLBN 10 #define LDRSN$K_DEVICENAME 11 #define LDRSN$K_NOTREPLACED 12 #define LDRSN$K_RANGEINUSE 13 #define LDRSN$K_FILEIDINUSE 14 #define LDRSN$K_INCMPPROT 15 #define LDRSN$K_INCMPDEVTYPE 16 #define LDTRC$C_LENGTH 88 #define LDTRC$K_LENGTH 88 #ifdef __NEW_STARLET typedef struct _trace_ent { unsigned int ldtrc$l_pid; unsigned int ldtrc$l_lbn; unsigned int ldtrc$l_bcnt; unsigned short int ldtrc$w_func; unsigned short int ldtrc$w_reserved; unsigned int ldtrc$l_iosb [2]; __union { unsigned __int64 ldtrc$q_start_time; unsigned int ldtrc$l_start_time; } ldtrc$r_stime_union; __union { unsigned __int64 ldtrc$q_end_time; unsigned int ldtrc$l_end_time; } ldtrc$r_etime_union; unsigned __int64 ldtrc$q_start_scc; unsigned __int64 ldtrc$q_end_scc; unsigned int ldtrc$l_startcpu; unsigned int ldtrc$l_endcpu; __union { unsigned __int64 ldtrc$q_elapsed; unsigned int ldtrc$l_elapsed; } ldtrc$r_elapsed_union; unsigned __int64 ldtrc$q_start_usec; unsigned __int64 ldtrc$q_end_usec; } TRACE_ENT; #if !defined(__VAXC) #define ldtrc$q_start_time ldtrc$r_stime_union.ldtrc$q_start_time #define ldtrc$l_start_time ldtrc$r_stime_union.ldtrc$l_start_time #define ldtrc$q_end_time ldtrc$r_etime_union.ldtrc$q_end_time #define ldtrc$l_end_time ldtrc$r_etime_union.ldtrc$l_end_time #define ldtrc$q_elapsed ldtrc$r_elapsed_union.ldtrc$q_elapsed #define ldtrc$l_elapsed ldtrc$r_elapsed_union.ldtrc$l_elapsed #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ typedef struct _trace_ent { unsigned int ldtrc$l_pid; unsigned int ldtrc$l_lbn; unsigned int ldtrc$l_bcnt; unsigned short int ldtrc$w_func; unsigned short int ldtrc$w_reserved; unsigned int ldtrc$l_iosb [2]; __union { unsigned int ldtrc$q_start_time [2]; unsigned int ldtrc$l_start_time; } ldtrc$r_stime_union; __union { unsigned int ldtrc$q_end_time [2]; unsigned int ldtrc$l_end_time; } ldtrc$r_etime_union; unsigned int ldtrc$q_start_scc [2]; unsigned int ldtrc$q_end_scc [2]; unsigned int ldtrc$l_startcpu; unsigned int ldtrc$l_endcpu; __union { unsigned int ldtrc$q_elapsed [2]; unsigned int ldtrc$l_elapsed; } ldtrc$r_elapsed_union; unsigned int ldtrc$q_start_usec [2]; unsigned int ldtrc$q_end_usec [2]; } trace_ent; #if !defined(__VAXC) #define ldtrc$q_start_time ldtrc$r_stime_union.ldtrc$q_start_time #define ldtrc$l_start_time ldtrc$r_stime_union.ldtrc$l_start_time #define ldtrc$q_end_time ldtrc$r_etime_union.ldtrc$q_end_time #define ldtrc$l_end_time ldtrc$r_etime_union.ldtrc$l_end_time #define ldtrc$q_elapsed ldtrc$r_elapsed_union.ldtrc$q_elapsed #define ldtrc$l_elapsed ldtrc$r_elapsed_union.ldtrc$l_elapsed #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #define LDWTC$M_CHARS 0x7F #define LDWTC$M_NOLBN 0x1 #define LDWTC$M_FILE 0x2 #define LDWTC$M_REMOVE_ALL 0x80 #define LDWTC$C_SUSPEND 0 #define LDWTC$C_CRASH 1 #define LDWTC$C_ERROR 2 #define LDWTC$C_OPCOM 3 #define LDWTC$C_MAX 3 #define LDWTC$C_LENGTH 22 #define LDWTC$K_LENGTH 22 #ifdef __cplusplus /* Define structure prototypes */ struct _sbkdef; #endif /* #ifdef __cplusplus */ #ifdef __NEW_STARLET typedef struct _watchpt { unsigned int ldwtc$l_lbn; __union { unsigned short int ldwtc$w_flags; __struct { __union { unsigned ldwtc$v_chars : 7; __struct { unsigned ldwtc$v_nolbn : 1; unsigned ldwtc$v_file : 1; unsigned ldwtc$v_reserved : 5; unsigned ldwtc$v_remove_all : 1; } ldwtc$r_flags2; } ldwtc$r_flags1; } ldwtc$r_fill_79_; } ldwtc$r_fill_78_; unsigned short int ldwtc$w_action; unsigned short int ldwtc$w_func; unsigned short int ldwtc$w_retcode; __union { struct _sbkdef *ldwtc$a_sbk; void *ldwtc$a_fcb; } ldwtc$r_sbk_fcb; __union { unsigned short int ldwtc$w_fid [3]; __struct { unsigned short int ldwtc$w_fid_num; unsigned short int ldwtc$w_fid_seq; unsigned short int ldwtc$w_fid_rvn; } ldwtc$r_fidarea2; } ldwtc$r_fidarea1; } WATCHPT; #if !defined(__VAXC) #define ldwtc$w_flags ldwtc$r_fill_78_.ldwtc$w_flags #define ldwtc$v_chars ldwtc$r_fill_78_.ldwtc$r_fill_79_.ldwtc$r_flags1.ldwtc$v_chars #define ldwtc$v_nolbn ldwtc$r_fill_78_.ldwtc$r_fill_79_.ldwtc$r_flags1.ldwtc$r_flags2.ldwtc$v_nolbn #define ldwtc$v_file ldwtc$r_fill_78_.ldwtc$r_fill_79_.ldwtc$r_flags1.ldwtc$r_flags2.ldwtc$v_file #define ldwtc$v_reserved ldwtc$r_fill_78_.ldwtc$r_fill_79_.ldwtc$r_flags1.ldwtc$r_flags2.ldwtc$v_reserved #define ldwtc$v_remove_all ldwtc$r_fill_78_.ldwtc$r_fill_79_.ldwtc$r_flags1.ldwtc$r_flags2.ldwtc$v_remove_all #define ldwtc$a_sbk ldwtc$r_sbk_fcb.ldwtc$a_sbk #define ldwtc$a_fcb ldwtc$r_sbk_fcb.ldwtc$a_fcb #define ldwtc$w_fid ldwtc$r_fidarea1.ldwtc$w_fid #define ldwtc$w_fid_num ldwtc$r_fidarea1.ldwtc$r_fidarea2.ldwtc$w_fid_num #define ldwtc$w_fid_seq ldwtc$r_fidarea1.ldwtc$r_fidarea2.ldwtc$w_fid_seq #define ldwtc$w_fid_rvn ldwtc$r_fidarea1.ldwtc$r_fidarea2.ldwtc$w_fid_rvn #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ typedef struct _watchpt { unsigned int ldwtc$l_lbn; __union { unsigned short int ldwtc$w_flags; __struct { __union { unsigned ldwtc$v_chars : 7; __struct { unsigned ldwtc$v_nolbn : 1; unsigned ldwtc$v_file : 1; unsigned ldwtc$v_reserved : 5; unsigned ldwtc$v_remove_all : 1; } ldwtc$r_flags2; } ldwtc$r_flags1; } ldwtc$r_fill_79_; } ldwtc$r_fill_78_; unsigned short int ldwtc$w_action; unsigned short int ldwtc$w_func; unsigned short int ldwtc$w_retcode; __union { void *ldwtc$a_sbk; void *ldwtc$a_fcb; } ldwtc$r_sbk_fcb; __union { unsigned short int ldwtc$w_fid [3]; __struct { unsigned short int ldwtc$w_fid_num; unsigned short int ldwtc$w_fid_seq; unsigned short int ldwtc$w_fid_rvn; } ldwtc$r_fidarea2; } ldwtc$r_fidarea1; } watchpt; #if !defined(__VAXC) #define ldwtc$w_flags ldwtc$r_fill_78_.ldwtc$w_flags #define ldwtc$v_chars ldwtc$r_fill_78_.ldwtc$r_fill_79_.ldwtc$r_flags1.ldwtc$v_chars #define ldwtc$v_nolbn ldwtc$r_fill_78_.ldwtc$r_fill_79_.ldwtc$r_flags1.ldwtc$r_flags2.ldwtc$v_nolbn #define ldwtc$v_file ldwtc$r_fill_78_.ldwtc$r_fill_79_.ldwtc$r_flags1.ldwtc$r_flags2.ldwtc$v_file #define ldwtc$v_reserved ldwtc$r_fill_78_.ldwtc$r_fill_79_.ldwtc$r_flags1.ldwtc$r_flags2.ldwtc$v_reserved #define ldwtc$v_remove_all ldwtc$r_fill_78_.ldwtc$r_fill_79_.ldwtc$r_flags1.ldwtc$r_flags2.ldwtc$v_remove_all #define ldwtc$a_sbk ldwtc$r_sbk_fcb.ldwtc$a_sbk #define ldwtc$a_fcb ldwtc$r_sbk_fcb.ldwtc$a_fcb #define ldwtc$w_fid ldwtc$r_fidarea1.ldwtc$w_fid #define ldwtc$w_fid_num ldwtc$r_fidarea1.ldwtc$r_fidarea2.ldwtc$w_fid_num #define ldwtc$w_fid_seq ldwtc$r_fidarea1.ldwtc$r_fidarea2.ldwtc$w_fid_seq #define ldwtc$w_fid_rvn ldwtc$r_fidarea1.ldwtc$r_fidarea2.ldwtc$w_fid_rvn #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #define LDSUSP$C_LENGTH 16 #define LDSUSP$K_LENGTH 16 #ifdef __NEW_STARLET typedef struct _suspend_list { unsigned int ldsusp$l_pid; unsigned int ldsusp$l_lbn; unsigned short int ldsusp$w_flags; unsigned short int ldsusp$w_action; unsigned short int ldsusp$w_func; unsigned short int ldsusp$w_retcode; } SUSPEND_LIST; #else /* __OLD_STARLET */ typedef struct _suspend_list { unsigned int ldsusp$l_pid; unsigned int ldsusp$l_lbn; unsigned short int ldsusp$w_flags; unsigned short int ldsusp$w_action; unsigned short int ldsusp$w_func; unsigned short int ldsusp$w_retcode; } suspend_list; #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 /* __LDDEF_LOADED */