00001 #ifndef lckdef_h 00002 #define lckdef_h 00003 00004 #define LCK_M_VALBLK 0x1 00005 #define LCK_M_CONVERT 0x2 00006 #define LCK_M_NOQUEUE 0x4 00007 #define LCK_M_SYNCSTS 0x8 00008 #define LCK_M_SYSTEM 0x10 00009 #define LCK_M_NOQUOTA 0x20 00010 #define LCK_M_CVTSYS 0x40 00011 #define LCK_M_RECOVER 0x80 00012 #define LCK_M_PROTECT 0x100 00013 #define LCK_M_NODLCKWT 0x200 00014 #define LCK_M_NODLCKBLK 0x400 00015 #define LCK_M_EXPEDITE 0x800 00016 #define LCK_M_QUECVT 0x1000 00017 #define LCK_M_BYPASS 0x2000 00018 #define LCK_M_DEQALL 0x1 00019 #define LCK_M_CANCEL 0x2 00020 #define LCK_M_INVVALBLK 0x4 00021 #define LCK_K_NLMODE 0 00022 #define LCK_K_CRMODE 1 00023 #define LCK_K_CWMODE 2 00024 #define LCK_K_PRMODE 3 00025 #define LCK_K_PWMODE 4 00026 #define LCK_K_EXMODE 5 00027 00028 union _lckdef { 00029 struct { 00030 unsigned lck_v_valblk : 1; 00031 unsigned lck_v_convert : 1; 00032 unsigned lck_v_noqueue : 1; 00033 unsigned lck_v_syncsts : 1; 00034 unsigned lck_v_system : 1; 00035 unsigned lck_v_noquota : 1; 00036 unsigned lck_v_cvtsys : 1; 00037 unsigned lck_v_recover : 1; 00038 unsigned lck_v_protect : 1; 00039 unsigned lck_v_nodlckwt : 1; 00040 unsigned lck_v_nodlckblk : 1; 00041 unsigned lck_v_expedite : 1; 00042 unsigned lck_v_quecvt : 1; 00043 unsigned lck_v_bypass : 1; 00044 unsigned lck_v_fill_70_ : 2; 00045 }; 00046 struct { 00047 unsigned lck_v_deqall : 1; 00048 unsigned lck_v_cancel : 1; 00049 unsigned lck_v_invvalblk : 1; 00050 unsigned lck_v_fill_71_ : 5; 00051 }; 00052 00053 }; 00054 00055 #endif 00056 00057