PERFORCE change 131204 for review
M. Warner Losh
imp at bsdimp.com
Thu Dec 20 11:31:48 PST 2007
In message: <200712190317.lBJ3HLYT006625 at repoman.freebsd.org>
John Birrell <jb at 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
More information about the p4-projects
mailing list