shell-locks(3)
fd_rlock, fd_lock, fd_trylock, fd_unlock, fd_is_locked - Functions for operating with file locks.
- fd_rlock $num $filename
- fd_lock $num $filename
- fd_trylock $num $filename
- fd_unlock $fd_num
- fd_is_locked $filename
The function opens the file to the specified descriptor and takes a read lock.
The function opens the file to the specified descriptor and takes a write lock.
The function opens the file to the specified descriptor and takes a write lock. If the lock could not be taken, then the function failed.
Closes the descriptor and releases the lock.
Checks whether a lock is present on the specified file.
Authors and contributors of the programs included in the libshell package are listed in the COPYING file.
Report bugs to the authors.