Xref: utzoo comp.unix.questions:29913 comp.unix.ultrix:6716 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!stanford.edu!neon.Stanford.EDU!Gang-of-Four!dkeisen From: dkeisen@Gang-of-Four.Stanford.EDU (Dave Eisen) Newsgroups: comp.unix.questions,comp.unix.ultrix,cs.unix.questions Subject: Re: file and record locking questions (general) Keywords: record,locking,ultrix Message-ID: <1991Mar30.023826.9925@neon.Stanford.EDU> Date: 30 Mar 91 02:38:26 GMT References: <1991Mar29.040736.18783@bronze.ucs.indiana.edu> <1991Mar29.124756.18856@news.cs.indiana.edu> Sender: news@neon.Stanford.EDU (USENET News System) Distribution: na Organization: Sequoia Peripherals Lines: 23 In article <1991Mar29.124756.18856@news.cs.indiana.edu> royle@tope.cs.indiana.edu (Keenan Royle) writes: >yes it is portable. (not just Ultrix) > >flock locks a file. >lockf and fcntl can lock records in files (or the whole file). >lockf is just a nice front-end to fcntl. > >All locks are advisory. > >Ultrix is BSD based. Portablity to system 5 may be trickier. > Yes it might be. The locking mechanisms (using lockf and fcntl) in SCO Xenix are *not* advisory locks, they are out and out LOCKS. I believe it's the same in System V. -- Dave Eisen 1101 San Antonio Rd. Suite 102 Mountain View, CA 94043 (415) 967-5644 dkeisen@Gang-of-Four.Stanford.EDU (for now)