Xbase DBMS Record and File Locking
Chapter Updated 4/8/98
| 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 | 
|---|---|
| DBF::AutoLockOn | Turns autolocking on | 
| DBF::AutoLockOff | Turns autolocking off | 
| DBF::ExclusiveLock | Lock file and indexes in exclusive mode | 
| DBF::ExclusiveUnlock | Unlock files and indexes | 
| DBF::LockDatabase | Locks or unlocks a DBF database | 
| NDX::LockIndex | Locks or unlocks an NDX index | 
| NDX::LockMemoFile | Locks or unlocks a DBT memo field file | 
| Return Code | Description | 
|---|---|
| INVALID_RECORD | An invalid record given | 
| LOCK_FAILED | The lock action failed, see errno | 
| NO_ERROR | The lock was successful | 
| Return Code | Description | 
|---|---|
| LOCK_FAILED | The lock action failed, see errno | 
| NO_ERROR | The lock was successful | 
| Return Code | Description | 
|---|---|
| LOCK_FAILED | The lock action failed, see errno | 
| NO_ERROR | The lock was successful | 
(c)1997 StarTech
