From owner-freebsd-hackers Tue Aug 13 12:10:44 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA04081 for hackers-outgoing; Tue, 13 Aug 1996 12:10:44 -0700 (PDT) Received: from helmholtz.salk.edu (helmholtz.salk.edu [198.202.70.34]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA04074 for ; Tue, 13 Aug 1996 12:10:41 -0700 (PDT) Received: from pauling.salk.edu (pauling [198.202.70.108]) by helmholtz.salk.edu (8.7.5/8.7.3) with SMTP id MAA20051 for ; Tue, 13 Aug 1996 12:10:34 -0700 (PDT) Date: Tue, 13 Aug 1996 12:10:01 -0700 (PDT) From: Tom Bartol To: hackers@freebsd.org Subject: lockf() function missing? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi all, I'm trying to compile a large neuron simulation package (appropriately named NEURON) on FreeBSD 2.2-960801-SNAP. The package uses Interviews-3.1 and I've almost got it made except that one of the source files makes reference to the lockf() function. This function appears in SunOS 4.1.3 man pages as being part of the standard C library functions in unistd.h. It also appears here on SGIs, Alphas, and Linux machines but is suspiciously absent from FreeBSD as far as I can tell. Is it really missing? Is there a replacement for lockf that I can cobble together myself using fcntl calls? If so, what refs should I use to do so? Thanks for you advice, Tom