Date: Mon, 04 Jun 2001 21:26:35 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Jim Pirzyk <Jim.Pirzyk@disney.com> Cc: freebsd-arch@FreeBSD.ORG Subject: Re: sysctl interger type max Message-ID: <61123.991682795@critter> In-Reply-To: Your message of "Mon, 04 Jun 2001 12:24:27 PDT." <01060412242703.00744@snoopy>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <01060412242703.00744@snoopy>, Jim Pirzyk writes: >In sysctl(8), you can set an integer type, but the max value >an int can be is 2 * N-1 where N is the size of int. This leads >to a problem when trying to set kern.hostid and the number is >greater that 2GB on an IA32 system. So my question is should >CTLTYPE_INT be treated as a long or some other larger numeric >number? Or should we declare some CLTYPE_UINT type? We do have an SYSCTL_UINT these days. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?61123.991682795>