Date: Thu, 20 Dec 2007 12:30:23 -0700 (MST) From: "M. Warner Losh" <imp@bsdimp.com> To: jb@freebsd.org Cc: perforce@freebsd.org Subject: Re: PERFORCE change 131204 for review Message-ID: <20071220.123023.255346724.imp@bsdimp.com> In-Reply-To: <200712190317.lBJ3HLYT006625@repoman.freebsd.org> References: <200712190317.lBJ3HLYT006625@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200712190317.lBJ3HLYT006625@repoman.freebsd.org> John Birrell <jb@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071220.123023.255346724.imp>