From owner-freebsd-arch@FreeBSD.ORG Sat May 12 15:27:48 2007 Return-Path: X-Original-To: arch@FreeBSD.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2DCB116A400; Sat, 12 May 2007 15:27:48 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id A3F0713C448; Sat, 12 May 2007 15:27:47 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.1/8.14.1) with ESMTP id l4CFRbu3028965; Sat, 12 May 2007 19:27:37 +0400 (MSD) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.14.1/8.14.1/Submit) id l4CFRZKg028964; Sat, 12 May 2007 19:27:35 +0400 (MSD) (envelope-from ache) Date: Sat, 12 May 2007 19:27:35 +0400 From: Andrey Chernov To: "Sean C. Farley" Message-ID: <20070512152735.GB28834@nagual.pp.ru> References: <20070505213202.GA49925@nagual.pp.ru> <20070505163707.J6670@thor.farley.org> <20070505221125.GA50439@nagual.pp.ru> <20070506091835.A43775@besplex.bde.org> <20070508162458.G6015@baba.farley.org> <20070508222521.GA59534@nagual.pp.ru> <20070509200000.B56490@besplex.bde.org> <20070510184447.H4969@baba.farley.org> <20070511003443.GA6422@nagual.pp.ru> <20070511182126.U9004@baba.farley.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070511182126.U9004@baba.farley.org> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: Daniel Eischen , arch@FreeBSD.org Subject: Re: HEADS DOWN X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 May 2007 15:27:48 -0000 On Fri, May 11, 2007 at 06:44:37PM -0500, Sean C. Farley wrote: > No need to worry any longer; I changed them into warnx(). What value > should I give errno? I do not want the program to receive a random > error code. The first warnx() could be EINVAL. The second warnx() > would be a coding error on my part. EDOOFUS would fit. :) I know I > should not use it. EINVAL? IMHO EFAULT. EDOOFUS is not POSIX-allowed errno. EINVAL used primarily for arg checking. -- http://ache.pp.ru/