Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!brl-smoke!smoke!cottrell@NBS-VMS.ARPA From: cottrell@NBS-VMS.ARPA (COTTRELL, JAMES) Newsgroups: net.lang.c Subject: Record Locking Message-ID: <1085@brl-smoke.ARPA> Date: Tue, 18-Feb-86 19:16:45 EST Article-I.D.: brl-smok.1085 Posted: Tue Feb 18 19:16:45 1986 Date-Received: Wed, 19-Feb-86 20:42:11 EST Sender: news@brl-smoke.ARPA Lines: 23 /* Dagwynn once lamented the absence of record locking in BSD: > If I had it, I'd sure use it. (RECORD locking more than FILE locking.) > Living on a 4.2BSD kernel, I have no record locking at all (my System V > emulation obviously can't compensate adequately for this lack). Allow me to propose a kluge. Since on can create lockfiles of any name, create a parrallel directory /whatever/lock, and create lock files of the form `name#number' in that directory. Thus to lock record three of file `foo' create a lock /whatever/lock/foo#3'. Multi-record lox are more difficult, but can be done with a little head scratching. Yeah, it ain't pretty, but it just might work. > Since record locking is a recent addition, it is not surprising that > previous existing utilities don't use it; that proves nothing about its > possible future importance. Most assuredly. jim cottrell@nbs */ ------