issetmode

switch locking mode

SYNOPSIS

int issetmode( int isfd, int mode );

isfd isam file identifier
mode either ISMANULOCK or ISAUTOLOCK

RETURN

SUCCESS, or a negative value on error, in which case the error code is found in iserrno.

NOTES

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.