isfd | isam file identifier |
mode | either ISMANULOCK or ISAUTOLOCK |
SUCCESS, or a negative value on error, in which case the error code is found in iserrno.
this routine can be used to switch the designated file between manual and automatic locking modes.
when switching from automatic to manual, the current record, if locked, will be released.
future plans include the ability to switch to/from exclusive lock as well, but at present an attempt to do so will result in an EBADARG error.