/********************************************************************************************************************************/ /* Created: 9-Mar-2021 22:28:05 by OpenVMS SDL EV3-3 */ /* Source: 09-MAR-2021 22:28:01 $1$DGA8085:[STARLET_H.SRC]STARDEFFL.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $LCKDEF ***/ #ifndef __LCKDEF_LOADED #define __LCKDEF_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 /*+ */ /* LOCK MANAGER DEFINITIONS */ /*- */ #define LCK$M_VALBLK 0x1 #define LCK$M_CONVERT 0x2 #define LCK$M_NOQUEUE 0x4 #define LCK$M_SYNCSTS 0x8 #define LCK$M_SYSTEM 0x10 #define LCK$M_NOQUOTA 0x20 #define LCK$M_CVTSYS 0x40 #define LCK$M_RECOVER 0x80 #define LCK$M_PROTECT 0x100 #define LCK$M_NODLCKWT 0x200 #define LCK$M_NODLCKBLK 0x400 #define LCK$M_EXPEDITE 0x800 #define LCK$M_QUECVT 0x1000 #define LCK$M_BYPASS 0x2000 #define LCK$M_NOIOLOCK8 0x4000 #define LCK$M_NOFORK 0x8000 #define LCK$M_XVALBLK 0x10000 #define LCK$M_DEQALL 0x1 #define LCK$M_CANCEL 0x2 #define LCK$M_INVVALBLK 0x4 #define LCK$M_RESV_NOIOLOCK8 0x4000 #define LCK$M_RESV_NOFORK 0x8000 #define LCK$M_RESV_XVALBLK 0x10000 #define LCK$K_NLMODE 0 /* NULL */ #define LCK$K_CRMODE 1 /* CONCURRENT READ */ #define LCK$K_CWMODE 2 /* CONCURRENT WRITE */ #define LCK$K_PRMODE 3 /* PROTECTED READ */ #define LCK$K_PWMODE 4 /* PROTECTED WRITE */ #define LCK$K_EXMODE 5 /* EXCLUSIVE */ #ifdef __NEW_STARLET typedef union _lckdef { __struct { unsigned lck$v_valblk : 1; /* VALUE BLOCK INCLUDED */ unsigned lck$v_convert : 1; /* CONVERSION REQUEST */ unsigned lck$v_noqueue : 1; /* DO NOT QUEUE REQUEST */ unsigned lck$v_syncsts : 1; /* SYNCHRONOUS STATUS REQUESTED */ unsigned lck$v_system : 1; /* SYSTEM LOCK */ unsigned lck$v_noquota : 1; /* DON'T CHARGE QUOTA */ unsigned lck$v_cvtsys : 1; /* CONVERT TO SYSTEM */ unsigned lck$v_recover : 1; /* RECOVER LOCK DURING FAILOVER */ unsigned lck$v_protect : 1; /* PROTECT LOCK DURING FAILOVER */ unsigned lck$v_nodlckwt : 1; /* NO DEADLOCK WAITING */ unsigned lck$v_nodlckblk : 1; /* NO DEADLOCK BLOCKING */ unsigned lck$v_expedite : 1; /* EXPEDITE NLMODE REQUEST */ unsigned lck$v_quecvt : 1; /* FORCE CONVERSION TO QUEUE */ unsigned lck$v_bypass : 1; /* BYPASS WAITING REQUESTS */ unsigned lck$v_noiolock8 : 1; /* DO NOT LOCK IOLOCK8 FOR CALLBACK */ unsigned lck$v_nofork : 1; /* SAFE TO PERFORM OPERATION WITHOUT FORK */ unsigned lck$v_xvalblk : 1; /* LONG VALUE BLOCK INCLUDED */ /* */ /* IFBLKING bitfield mask; /* PERFORM CONVERSION IF BLOCKING */ /* */ unsigned lck$v_fill_75_ : 7; } lck$r_lckdef_bits0; __struct { unsigned lck$v_deqall : 1; /* DEQUEUE ALL LOCKS */ unsigned lck$v_cancel : 1; /* CANCEL REQUEST */ unsigned lck$v_invvalblk : 1; /* INVALIDATE VALUE BLOCK */ unsigned lck$v_pad : 11; /* RESERVE NEXT 11 BITS */ unsigned lck$v_resv_noiolock8 : 1; /* DO NOT LOCK IOLOCK8 FOR CALLBACK */ unsigned lck$v_resv_nofork : 1; /* SAFE TO PERFORM OPERATION WITHOUT FORK */ unsigned lck$v_resv_xvalblk : 1; /* LONG VALUE BLOCK INCLUDED */ unsigned lck$v_fill_76_ : 7; } lck$r_lckdef_bits1; /*LOCK MODES */ } LCKDEF; #if !defined(__VAXC) #define lck$v_valblk lck$r_lckdef_bits0.lck$v_valblk #define lck$v_convert lck$r_lckdef_bits0.lck$v_convert #define lck$v_noqueue lck$r_lckdef_bits0.lck$v_noqueue #define lck$v_syncsts lck$r_lckdef_bits0.lck$v_syncsts #define lck$v_system lck$r_lckdef_bits0.lck$v_system #define lck$v_noquota lck$r_lckdef_bits0.lck$v_noquota #define lck$v_cvtsys lck$r_lckdef_bits0.lck$v_cvtsys #define lck$v_recover lck$r_lckdef_bits0.lck$v_recover #define lck$v_protect lck$r_lckdef_bits0.lck$v_protect #define lck$v_nodlckwt lck$r_lckdef_bits0.lck$v_nodlckwt #define lck$v_nodlckblk lck$r_lckdef_bits0.lck$v_nodlckblk #define lck$v_expedite lck$r_lckdef_bits0.lck$v_expedite #define lck$v_quecvt lck$r_lckdef_bits0.lck$v_quecvt #define lck$v_bypass lck$r_lckdef_bits0.lck$v_bypass #define lck$v_noiolock8 lck$r_lckdef_bits0.lck$v_noiolock8 #define lck$v_nofork lck$r_lckdef_bits0.lck$v_nofork #define lck$v_xvalblk lck$r_lckdef_bits0.lck$v_xvalblk #define lck$v_deqall lck$r_lckdef_bits1.lck$v_deqall #define lck$v_cancel lck$r_lckdef_bits1.lck$v_cancel #define lck$v_invvalblk lck$r_lckdef_bits1.lck$v_invvalblk #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ union lckdef { __struct { unsigned lck$v_valblk : 1; /* VALUE BLOCK INCLUDED */ unsigned lck$v_convert : 1; /* CONVERSION REQUEST */ unsigned lck$v_noqueue : 1; /* DO NOT QUEUE REQUEST */ unsigned lck$v_syncsts : 1; /* SYNCHRONOUS STATUS REQUESTED */ unsigned lck$v_system : 1; /* SYSTEM LOCK */ unsigned lck$v_noquota : 1; /* DON'T CHARGE QUOTA */ unsigned lck$v_cvtsys : 1; /* CONVERT TO SYSTEM */ unsigned lck$v_recover : 1; /* RECOVER LOCK DURING FAILOVER */ unsigned lck$v_protect : 1; /* PROTECT LOCK DURING FAILOVER */ unsigned lck$v_nodlckwt : 1; /* NO DEADLOCK WAITING */ unsigned lck$v_nodlckblk : 1; /* NO DEADLOCK BLOCKING */ unsigned lck$v_expedite : 1; /* EXPEDITE NLMODE REQUEST */ unsigned lck$v_quecvt : 1; /* FORCE CONVERSION TO QUEUE */ unsigned lck$v_bypass : 1; /* BYPASS WAITING REQUESTS */ unsigned lck$v_noiolock8 : 1; /* DO NOT LOCK IOLOCK8 FOR CALLBACK */ unsigned lck$v_nofork : 1; /* SAFE TO PERFORM OPERATION WITHOUT FORK */ unsigned lck$v_xvalblk : 1; /* LONG VALUE BLOCK INCLUDED */ /* */ /* IFBLKING bitfield mask; /* PERFORM CONVERSION IF BLOCKING */ /* */ unsigned lck$v_fill_75_ : 7; } lck$r_lckdef_bits0; __struct { unsigned lck$v_deqall : 1; /* DEQUEUE ALL LOCKS */ unsigned lck$v_cancel : 1; /* CANCEL REQUEST */ unsigned lck$v_invvalblk : 1; /* INVALIDATE VALUE BLOCK */ unsigned lck$v_pad : 11; /* RESERVE NEXT 11 BITS */ unsigned lck$v_resv_noiolock8 : 1; /* DO NOT LOCK IOLOCK8 FOR CALLBACK */ unsigned lck$v_resv_nofork : 1; /* SAFE TO PERFORM OPERATION WITHOUT FORK */ unsigned lck$v_resv_xvalblk : 1; /* LONG VALUE BLOCK INCLUDED */ unsigned lck$v_fill_76_ : 7; } lck$r_lckdef_bits1; /*LOCK MODES */ } ; #if !defined(__VAXC) #define lck$v_valblk lck$r_lckdef_bits0.lck$v_valblk #define lck$v_convert lck$r_lckdef_bits0.lck$v_convert #define lck$v_noqueue lck$r_lckdef_bits0.lck$v_noqueue #define lck$v_syncsts lck$r_lckdef_bits0.lck$v_syncsts #define lck$v_system lck$r_lckdef_bits0.lck$v_system #define lck$v_noquota lck$r_lckdef_bits0.lck$v_noquota #define lck$v_cvtsys lck$r_lckdef_bits0.lck$v_cvtsys #define lck$v_recover lck$r_lckdef_bits0.lck$v_recover #define lck$v_protect lck$r_lckdef_bits0.lck$v_protect #define lck$v_nodlckwt lck$r_lckdef_bits0.lck$v_nodlckwt #define lck$v_nodlckblk lck$r_lckdef_bits0.lck$v_nodlckblk #define lck$v_expedite lck$r_lckdef_bits0.lck$v_expedite #define lck$v_quecvt lck$r_lckdef_bits0.lck$v_quecvt #define lck$v_bypass lck$r_lckdef_bits0.lck$v_bypass #define lck$v_noiolock8 lck$r_lckdef_bits0.lck$v_noiolock8 #define lck$v_nofork lck$r_lckdef_bits0.lck$v_nofork #define lck$v_xvalblk lck$r_lckdef_bits0.lck$v_xvalblk #define lck$v_deqall lck$r_lckdef_bits1.lck$v_deqall #define lck$v_cancel lck$r_lckdef_bits1.lck$v_cancel #define lck$v_invvalblk lck$r_lckdef_bits1.lck$v_invvalblk #endif /* #if !defined(__VAXC) */ #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 /* __LCKDEF_LOADED */