Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 1998 12:11:19 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Brandon Gale <bagale@cgocable.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: fcntl
Message-ID:  <19980721121119.H2301@freebie.lemis.com>
In-Reply-To: <000001bdb436$d6fed320$ba04e218@dell-xps133c.cgocable.net>; from Brandon Gale on Mon, Jul 20, 1998 at 07:33:45PM -0400
References:  <000001bdb436$d6fed320$ba04e218@dell-xps133c.cgocable.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980721121119.H2301>