TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: Bob van der Poel 76510,2203 (X)
from: Pete Lyall 76703,4230
date: 1995-01-09 11:59:48
subject: #20687-unix functions

#: 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

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.