From owner-p4-projects@FreeBSD.ORG Thu Dec 20 19:31:48 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4DFE216A46B; Thu, 20 Dec 2007 19:31:48 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E20D816A468; Thu, 20 Dec 2007 19:31:47 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 8650813C4D9; Thu, 20 Dec 2007 19:31:47 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.14.1) with ESMTP id lBKJRRT0021864; Thu, 20 Dec 2007 12:27:27 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 20 Dec 2007 12:30:23 -0700 (MST) Message-Id: <20071220.123023.255346724.imp@bsdimp.com> To: jb@freebsd.org From: "M. Warner Losh" In-Reply-To: <200712190317.lBJ3HLYT006625@repoman.freebsd.org> References: <200712190317.lBJ3HLYT006625@repoman.freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: perforce@freebsd.org Subject: Re: PERFORCE change 131204 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2007 19:31:48 -0000 In message: <200712190317.lBJ3HLYT006625@repoman.freebsd.org> John Birrell writes: : getopt(3) returns an integer. Even on Solaris. : The use of EOF is inappropriate. getopt(3) returns nothing associated : with a stream file. Once upon a time it did return EOF. However, in the standardizations process, it was switched to -1 so there wouldn't be a dependency on stdio.h. 4.4BSD-lite had EOF, while 4.4BSD-Lite2 had -1. Warner