#: 20695 S12/OS9/68000 (OSK)
09-Jan-95 11:59:48
Sb: #20687-unix functions
Fm: Pete Lyall 76703,4230
To: Bob van der Poel 76510,2203 (X)
Locks, unlocks, and tests for locks on a Unix file. Calling syntax is
'lockf(fd,cmd,size)', where fd and cmd are ints, and size is a long.
Command tokens are:
F_ULOCK 0 /* unlock a previously locked section */
F_LOCK 1 /* lock a section for exclusive use */
F_TLOCK 2 /* test and lock a sexction (non-blockking) */
F_TEST 3 /* test section for other processes' locks */
I'm sure you could implement this with SS_LOCK etc on an RBF device.
Pete
|