From owner-freebsd-arch Mon Jun 4 12:36:21 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mail.disney.com (mail.disney.com [204.128.192.15]) by hub.freebsd.org (Postfix) with ESMTP id BAB9737B401 for ; Mon, 4 Jun 2001 12:36:19 -0700 (PDT) (envelope-from Jim.Pirzyk@disney.com) Received: from pain10.corp.disney.com (root@pain10.corp.disney.com [153.7.110.100]) by mail.disney.com (Switch-2.0.1/Switch-2.0.1) with SMTP id f54JZeA16547 for ; Mon, 4 Jun 2001 12:35:40 -0700 (PDT) Received: from [172.30.50.1] by pain.corp.disney.com with ESMTP for freebsd-arch@FreeBSD.ORG; Mon, 4 Jun 2001 12:37:09 -0700 Received: from mercury.fan.fa.disney.com (mercury.fan.fa.disney.com [153.7.119.1]) by louie.fa.disney.com (8.9.2/8.9.2) with ESMTP id MAA27215 for ; Mon, 4 Jun 2001 12:36:18 -0700 (PDT) (envelope-from Jim.Pirzyk@disney.com) Received: from snoopy.fan.fa.disney.com by mercury.fan.fa.disney.com; Mon, 4 Jun 2001 12:36:18 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Jim Pirzyk Organization: Walt Disney Feature Animation To: Poul-Henning Kamp Subject: Re: sysctl interger type max Date: Mon, 4 Jun 2001 12:36:18 -0700 X-Mailer: KMail [version 1.2] Cc: freebsd-arch@FreeBSD.ORG References: <61123.991682795@critter> In-Reply-To: <61123.991682795@critter> MIME-Version: 1.0 Message-Id: <01060412361804.00744@snoopy> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday 04 June 2001 12:26 pm, Poul-Henning Kamp wrote: > 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. Yes for establishing the oid in the kernel, but sysctl command line is limited to 2 * 31 bits even if the variable is set to CLTYPE_{UINT|LONG|ULONG}. This means you cannot set the variables to a possible range of values. - JimP -- --- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $ __o Jim.Pirzyk@disney.com ------------- pirzyk@freebsd.org _'\<,_ Senior Systems Engineer, Walt Disney Feature Animation (*)/ (*) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message