From owner-freebsd-hackers Tue Aug 22 13:12:28 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id NAA14860 for hackers-outgoing; Tue, 22 Aug 1995 13:12:28 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id NAA14846 for ; Tue, 22 Aug 1995 13:12:23 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id GAA21010; Wed, 23 Aug 1995 06:11:26 +1000 Date: Wed, 23 Aug 1995 06:11:26 +1000 From: Bruce Evans Message-Id: <199508222011.GAA21010@godzilla.zeta.org.au> To: msmith@atrad.adelaide.edu.au, terry@cs.weber.edu Subject: Re: Using space in a DOS filesystem Cc: hackers@freebsd.org Sender: hackers-owner@freebsd.org Precedence: bulk >> > 1) Look up the file >> > 2) Assert a mandatory file lock >> >> Instructions on this one would be needed 8) >Open it O_EXCL in the device node exporting code. In FreeBSD, unlike in Terryx :-), O_EXCL is only implemented for regular files. The semantics of O_EXCL are specified by POSIX (only) for regular files. They don't give mandatory locking. Everything that opens the file would have to use O_EXCL to give advisory locking. Bruce