/********************************************************************************************************************************/ /* Created: 15-MAR-2001 23:38:00 by OpenVMS SDL EV1-33 */ /* Source: 15-MAR-2001 23:34:09 _$11$DUA933:[BUILD.SDL]STARDEFFL.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $LCKDEF ***/ #ifndef __LCKDEF_LOADED #define __LCKDEF_LOADED 1 #pragma nostandard #ifdef __cplusplus extern "C" { #define __unknown_params ... #else #define __unknown_params #endif #if !defined(__VAXC) && !defined(VAXC) #define __struct struct #define __union union #else #define __struct variant_struct #define __union variant_union #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_DEQALL 0x1 #define LCK$M_CANCEL 0x2 #define LCK$M_INVVALBLK 0x4 #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 */ 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 */ /* */ /* IFBLKING bitfield mask; /* PERFORM CONVERSION IF BLOCKING */ /* */ unsigned lck$v_fill_56 : 2; } 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_fill_57 : 5; } lck$r_lckdef_bits1; /*LOCK MODES */ } ; #if !defined(__VAXC) && !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_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) && !defined(VAXC) */ #ifdef __cplusplus } #endif #pragma standard #endif /* __LCKDEF_LOADED */