From owner-freebsd-standards@FreeBSD.ORG Mon Sep 11 18:09:28 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF1A416A403 for ; Mon, 11 Sep 2006 18:09:28 +0000 (UTC) (envelope-from uberlord@gentoo.org) Received: from mail.marples.name (rsm.demon.co.uk [80.177.111.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FC7443D76 for ; Mon, 11 Sep 2006 18:09:21 +0000 (GMT) (envelope-from uberlord@gentoo.org) Received: from uberpc.marples.name (uberpc.marples.name [10.73.1.30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.marples.name (Postfix) with ESMTP id 87A9C190038; Mon, 11 Sep 2006 19:09:20 +0100 (BST) From: Roy Marples Organization: Gentoo To: Stanislav Sedov Date: Mon, 11 Sep 2006 19:09:23 +0100 User-Agent: KMail/1.9.4 References: <200609102148.26767.uberlord@gentoo.org> <20060911125816.4a606317@localhost> In-Reply-To: <20060911125816.4a606317@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609111909.23599.uberlord@gentoo.org> Cc: freebsd-standards@freebsd.org Subject: Re: FreeBSD Port: sysutils/fuser X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2006 18:09:29 -0000 On Monday 11 September 2006 09:58, Stanislav Sedov wrote: > On Sun, 10 Sep 2006 21:48:26 +0100 > > Roy Marples mentioned: > > Hi > > > > I'm currently adding FreeBSD support to Gentoo baselayout rc system. We > > use the linux fuser tool a bit, and rely on the return value being non > > zero of no files are in use on the requested mount points. > > > > Attached is a patch that enables the same in FreeBSD > > But POSIX says the following: > -------------------------------------------------------------- > EXIT STATUS > > The following exit values shall be returned: > > 0 > Successful completion. > > >0 > > An error occurred. > -------------------------------------------------------------- > > So, as I understand correctly, we should return 0 in this case. Do they define what <0 means? Could always return -1. A return value is easier than checking output. Thanks -- Roy Marples Gentoo/Linux Developer (baselayout, networking)