Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site cuae2.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!mgnetp!hw3b!wnuxb!cuae2!cwd From: cwd@cuae2.UUCP (Chris Donahue) Newsgroups: net.sources.games Subject: Re: problems with galaxy/robots/others on Sys V Rel 2 Message-ID: <338@cuae2.UUCP> Date: Sun, 16-Jun-85 21:59:36 EDT Article-I.D.: cuae2.338 Posted: Sun Jun 16 21:59:36 1985 Date-Received: Tue, 18-Jun-85 04:33:52 EDT References: <739@burl.UUCP> Organization: AT&T-IS, /app/eng, Lisle, IL Lines: 19 > The problems mentioned compiling galaxy, robots, and others are > due to the use of the flock() utility of BSD, which Sys V does > not have. flock() is a general-purpose advisory lock routine > for files (i.e., we want to make sure that two players aren't > writing the score file at the exact same time). > > I am too swamped at the moment to write a public-domain version > of flock(), and from the hell I caught last time I posted something > MUCH more trivial than flock() [dup2()] that I had written myself, > I don't think I'd be able to do so anyway. UNIX System V Rel. 2 does support file locking through the fcntl system call. Use the GETLK, SETLK, SETWLK commands with fcntl as a substitute for flock. A replacement for flock would be a 2-5 line subroutine at the most. Chris Donahue AT&T Info. Sys. Application Engineering