From owner-freebsd-hackers Tue Aug 13 14:31:13 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA12773 for hackers-outgoing; Tue, 13 Aug 1996 14:31:13 -0700 (PDT) Received: from mexico.brainstorm.eu.org (root@mexico.brainstorm.eu.org [193.56.58.253]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA12757 for ; Tue, 13 Aug 1996 14:31:08 -0700 (PDT) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.eu.org [193.56.58.33]) by mexico.brainstorm.eu.org (8.7.5/8.7.3) with ESMTP id XAA04121 for ; Tue, 13 Aug 1996 23:30:48 +0200 Received: (from uucp@localhost) by brasil.brainstorm.eu.org (8.6.12/8.6.12) with UUCP id XAA01350 for hackers@freebsd.org; Tue, 13 Aug 1996 23:30:25 +0200 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.Alpha.7/keltia-uucp-2.9) id WAA14681; Tue, 13 Aug 1996 22:52:10 +0200 (MET DST) Message-Id: <199608132052.WAA14681@keltia.freenix.fr> Date: Tue, 13 Aug 1996 22:52:10 +0200 From: roberto@keltia.freenix.fr (Ollivier Robert) To: hackers@freebsd.org Subject: Re: lockf() function missing? In-Reply-To: ; from Tom Bartol on Aug 13, 1996 12:10:01 -0700 References: X-Mailer: Mutt 0.39 Mime-Version: 1.0 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk According to Tom Bartol: > 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 It is missing because it is supposed to be a System V syscall. You could probably emulate it with either fcntl or flock or better change the program to use fcntl(2). -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 2.2-CURRENT #17: Fri Aug 2 20:40:17 MET DST 1996