| 2323 | |
| 2324 | |
| 2325 | static const char* get_lockname_v3(const UCHAR lock) |
| 2326 | { |
| 2327 | /************************************** |
| 2328 | * |
| 2329 | * g e t _ l o c k n a m e _ v 3 |
| 2330 | * |
| 2331 | ************************************** |
| 2332 | * |
| 2333 | * Functional description |
| 2334 | * Get the lock mnemonic, given its binary value. |
| 2335 | * This is for TPB versions 1 & 3. |
| 2336 | * |
| 2337 | **************************************/ |
| 2338 | const char* typestr = "unknown"; |
| 2339 | switch (lock) |
| 2340 | { |
| 2341 | case LCK_none: |
| 2342 | case LCK_SR: |
| 2343 | typestr = "isc_tpb_lock_read, isc_tpb_shared"; |
| 2344 | break; |
| 2345 | case LCK_PR: |
| 2346 | typestr = "isc_tpb_lock_read, isc_tpb_protected/isc_tpb_exclusive"; |
| 2347 | break; |
| 2348 | case LCK_SW: |
| 2349 | typestr = "isc_tpb_lock_write, isc_tpb_shared"; |
| 2350 | break; |
| 2351 | case LCK_EX: |
| 2352 | typestr = "isc_tpb_lock_write, isc_tpb_protected/isc_tpb_exclusive"; |
| 2353 | break; |
| 2354 | } |
| 2355 | return typestr; |
| 2356 | } |
| 2357 | |
| 2358 | |
| 2359 | static ULONG inventory_page(thread_db* tdbb, ULONG sequence) |