From owner-freebsd-hackers Tue Mar 11 13:30:38 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F13137B401 for ; Tue, 11 Mar 2003 13:30:36 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E7DD43FD7 for ; Tue, 11 Mar 2003 13:30:35 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id h2BLUIJu016212; Tue, 11 Mar 2003 13:30:18 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id h2BLUIV0016211; Tue, 11 Mar 2003 13:30:18 -0800 Date: Tue, 11 Mar 2003 13:30:18 -0800 From: Brooks Davis To: Zhihui Zhang Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: long long sysctl possible? Message-ID: <20030311133018.A15519@Odin.AC.HMC.Edu> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from bf20761@binghamton.edu on Tue, Mar 11, 2003 at 04:25:10PM -0500 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 11, 2003 at 04:25:10PM -0500, Zhihui Zhang wrote: >=20 > I notice that the SYSCTL_INT() only support integer. Is there a support of > things like 64-bit SYSCTL_LONGLONG()? If so, where is the sample code? > Thanks. A quick look at sys/sysctl.h shows that there's a type CTLTYPE_QUAD, but not SYSCTL_QUAD or SYSCTL_INT64 macro. You could add such a macro quite easily though. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --wac7ysb48OaltWcw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+blVpXY6L6fI4GtQRAiNhAKDalUG4NTgSmJQDGfz0d4RXDIrCzACg1QPk 3DMn6rbB+tM3yaHmu47PFxg= =wrhQ -----END PGP SIGNATURE----- --wac7ysb48OaltWcw-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message