From owner-cvs-all Tue Jul 7 05:21:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA17831 for cvs-all-outgoing; Tue, 7 Jul 1998 05:21:54 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from arc.hq.cti.ru (arc.hq.cti.ru [195.34.40.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA17778; Tue, 7 Jul 1998 05:20:47 -0700 (PDT) (envelope-from tejblum@arc.hq.cti.ru) Received: from arc.hq.cti.ru (localhost [127.0.0.1]) by arc.hq.cti.ru (8.9.0/8.9.0) with ESMTP id QAA08167; Tue, 7 Jul 1998 16:20:31 +0400 (MSD) Message-Id: <199807071220.QAA08167@arc.hq.cti.ru> X-Mailer: exmh version 2.0zeta 7/24/97 To: dg@root.com cc: committers@FreeBSD.ORG, dt@FreeBSD.ORG Subject: Re: lockf() In-reply-to: Your message of "Tue, 07 Jul 1998 04:03:32 PDT." <199807071103.EAA22543@implode.root.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 07 Jul 1998 16:20:30 +0400 From: Dmitrij Tejblum Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > >Any unix in the world, including NetBSD, but excluding FreeBSD, have > >the lockf() function call. I can easy obtain it from NetBSD. > > > >Does somebody have objections/suggestions/whatever else? > > I'm familiar with flock(), which FreeBSD of course has, but what does > "lockf()" do? This is just a simplified interface for fcntl() advisory record locking. It is a SysVism, and now it is standartisied in SUSV2. Short description: #include int lockf(int fd, int function, off_t size); function is one of: #define F_ULOCK 0 /* unlock locked section */ #define F_LOCK 1 /* lock a section for exclusive use */ #define F_TLOCK 2 /* test and lock a section for exclusive use */ #define F_TEST 3 /* test a section for locks by other processes */ I may post whole manpage, if you want. Dima To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message