From owner-freebsd-current Mon Apr 17 07:28:37 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA00692 for current-outgoing; Mon, 17 Apr 1995 07:28:37 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id HAA00603 for ; Mon, 17 Apr 1995 07:26:28 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA06908; Mon, 17 Apr 1995 16:25:15 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id QAA20806; Mon, 17 Apr 1995 16:25:13 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id OAA06482; Mon, 17 Apr 1995 14:43:00 +0200 From: J Wunsch Message-Id: <199504171243.OAA06482@uriah.heep.sax.de> Subject: Re: fcntl F_SETLK backward compatibility kludge To: syssgm@devetir.qld.gov.au (Stephen McKay) Date: Mon, 17 Apr 1995 14:42:58 +0200 (MET DST) Cc: current@FreeBSD.org, syssgm@devetir.qld.gov.au In-Reply-To: <199504170831.SAA27341@orion.devetir.qld.gov.au> from "Stephen McKay" at Apr 17, 95 06:31:35 pm Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 744 Sender: current-owner@FreeBSD.org Precedence: bulk As Stephen McKay wrote: > > I have scanned the 2.0 source code for uses of fcntl() locking and have found > four cases. "amd", "vi", and "sendmail" use fcntl() locking to simulate > flock() locking if that is unavailable. "at" uses fcntl() locking, but only > with full file locking (whence = 0, start = 0, end = 0) which is correctly > detected by the above scheme. It seems likely that most uses of fcntl() > locking are to simulate flock(), and will be correctly handled. Elm was also using this (config-dependant, but it suggested to use fcntl, flock and lock files alltogether by default). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)