Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2002 03:40:23 +1000
From:      "Tim J. Robbins" <tjr@FreeBSD.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/renice renice.c
Message-ID:  <20020517034023.A8414@treetop.robbins.dropbear.id.au>
In-Reply-To: <XFMail.20020516232746.jhb@FreeBSD.org>; from jhb@FreeBSD.org on Thu, May 16, 2002 at 11:27:46PM -0400
References:  <200205162355.g4GNtam63176@freefall.freebsd.org> <XFMail.20020516232746.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 16, 2002 at 11:27:46PM -0400, John Baldwin wrote:

> Why?  Are there really people out there with usernames of '007' or '0x1c'?

The standard requires user & process ID's to be specified as decimal integers,
and that's the way it has traditionally worked (it used atoi() before).
Users should be able to specify leading zeros without causing the number to
be interpreted as octal.

I believe accepting hexadecimal and octal numbers was a mistake introduced
by christos@netbsd while modifying renice to use strtol() instead of atoi().


Tim

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020517034023.A8414>