Locking Methods
Chapter Updated 2/1/99
| Error Code | Description | 
|---|---|
| EBADF | Invalid file descriptor | 
| EINVAL | Invalid lock information or file does not support locks | 
| EACCESS EAGAIN | Lock can not be set because it is blocked by an existing lock on the file. | 
| ENOLCK | The system is out of lock resources, too many file locks in place. | 
| EDEADLK | Deadlock condition | 
| EINTR | Process was interrupted by a signal while it was waiting | 
| Method | Description | 
|---|---|
| xbDbf::AutoLockOn | Turns autolocking on | 
| xbDbf::AutoLockOff | Turns autolocking off | 
| xbDbf::ExclusiveLock | Lock file and indexes in exclusive mode | 
| xbDbf::ExclusiveUnlock | Unlock files and indexes | 
| xbDbf::LockDatabase | Locks or unlocks a DBF database | 
| xbNdx::LockIndex | Locks or unlocks an xbNdx index | 
| xbNdx::LockMemoFile | Locks or unlocks a DBT memo field file | 
| Return Code | Description | 
|---|---|
| XB_INVALID_RECORD | An invalid record given | 
| XB_LOCK_FAILED | The lock action failed, see errno | 
| XB_NO_ERROR | The lock was successful | 
| Return Code | Description | 
|---|---|
| XB_LOCK_FAILED | The lock action failed, see errno | 
| XB_NO_ERROR | The lock was successful | 
| Return Code | Description | 
|---|---|
| XB_LOCK_FAILED | The lock action failed, see errno | 
| XB_NO_ERROR | The lock was successful | 
(c)1997 StarTech
