From owner-freebsd-audit Thu May 16 5:43:55 2002 Delivered-To: freebsd-audit@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id DFBA937B405 for ; Thu, 16 May 2002 05:43:49 -0700 (PDT) Received: from hades.hell.gr (patr530-b220.otenet.gr [212.205.244.228]) by mailsrv.otenet.gr (8.12.3/8.12.3) with ESMTP id g4GChkHL027513; Thu, 16 May 2002 15:43:47 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.3/8.12.3) with ESMTP id g4GChi6m093773; Thu, 16 May 2002 15:43:44 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.3/8.12.3/Submit) id g4GChh9I093768; Thu, 16 May 2002 15:43:44 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 16 May 2002 15:43:43 +0300 From: Giorgos Keramidas To: Peter Pentchev Cc: Dag-Erling Smorgrav , Bruce Evans , Mike Makonnen , freebsd-audit@FreeBSD.ORG Subject: Re: RFC: Port of NetBSD cat(1)'s -f option. Message-ID: <20020516124343.GA93634@hades.hell.gr> References: <20020515211758.GB68380@hades.hell.gr> <20020516164332.B1704-100000@gamplex.bde.org> <20020516134044.A349@straylight.oblivion.bg> <20020516152345.E349@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020516152345.E349@straylight.oblivion.bg> User-Agent: Mutt/1.3.99i Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-05-16 15:23, Peter Pentchev wrote: > Actually, now I don't know what to think - for the past few months, > I have been writing my own programs with explicit checks for -1. > Is there an OS out there that returns negative values other than -1? > I presume that no *new* OS and no new syscalls will be written to > return such, so no further incompatibility would be introduced; > but is there an existing platform that would break programs which > check explicitly for -1? I'm not sure. The < 0 check is almost hardwired in my fingers, because of a few years of writing it this way. Just trying to be on the safe side of the world, I guess. - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message