From owner-freebsd-questions Mon Jul 20 19:41:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA21605 for freebsd-questions-outgoing; Mon, 20 Jul 1998 19:41:46 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA21586 for ; Mon, 20 Jul 1998 19:41:41 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id MAA02527; Tue, 21 Jul 1998 12:11:19 +0930 (CST) Message-ID: <19980721121119.H2301@freebie.lemis.com> Date: Tue, 21 Jul 1998 12:11:19 +0930 From: Greg Lehey To: Brandon Gale , freebsd-questions@FreeBSD.ORG Subject: Re: fcntl References: <000001bdb436$d6fed320$ba04e218@dell-xps133c.cgocable.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <000001bdb436$d6fed320$ba04e218@dell-xps133c.cgocable.net>; from Brandon Gale on Mon, Jul 20, 1998 at 07:33:45PM -0400 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Monday, 20 July 1998 at 19:33:45 -0400, Brandon Gale wrote: [-- Attachment #2: winmail.dat --] [-- Type: application/ms-tnef, Encoding: base64, Size: 2.5K --] [-- application/ms-tnef is unsupported (use 'v' to view this part) --] Please don't add proprietary attachments. They're a multiple of the size of the original message, and we can't read them. > We are having extreme problems using record locking functions (GNU C) on > machine running FreeBSD 2.2.4. To the best of my knowledge, there never was a 2.2.4. > We have had success using flock and locking entire files, however, > our needs dictate the use of record locking. We are experienced C > programmers and cannot get the fcntl function (the only documented > function in the GNU C Library) to work. If this is the only > function that can lock records please explain in detail (and if > possible an example). If there are other undocumented functions > please forward any information and examples you have. We really > appreciate any help you could give us and I thank you in advance. We don't use the GNU C library, but fcntl(2) is a system call. Can you describe what problems you're having with it? Do you appreciate that this is advisory locking, not mandatory locking? Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message