Guardian Programming Reference Summary for C
Functions Summary (D-F)
Guardian Programming Reference Summary for C—522630-001
5-31
lock-descr
participants
12 = The disk-process lock tables were changed between calls
41 = Checksum error on control. The control parameter has been altered
between calls to FILE_GETLOCKINFO_ or was not initialized before the
first call.
45 = Information for one locked record or file has been returned
[0] = Lock type. 0 indicates a file lock; 1 indicates a record lock.
[1] = Flags. The bits are:
<0> = 1 indicates a generic lock.
<1:15> = Reserved.
[2] = The number of participants (the number of holders and waiters for the lock).
[3:4] = Record ID if the lock is a record lock on a file that is not key-sequenced;
undefined otherwise.
[5] = The length in bytes of the key if the lock is a record lock on a key-sequenced
file; 0 otherwise.
[6:n] = The key value if the lock is a record lock on a key-sequenced file.
[0] = Flags. The bits have the following meanings:
Bit 0 = 1
= 0
The participant is identified by process handle.
The participant is identified by transid.
Bits 1-3 = 1
= 0
The lock is granted.
The lock is in the waiting state.
Bit 4 = 1 The lock is an intent lock internally set by DP2.
Bits 5-15 Reserved.
[1] = Reserved.
[2:11] = The process handle of the participant (if bit 0 of the participants
parameter = 1).
[2:5] = The transid of the participant (if bit 0 of the participants parameter = 0).
0 = Information for one locked file and all its lock holders/waiters was returned
without error. More locks might exist; continue calling
FILE_GETLOCKINFO_.