From owner-freebsd-arch Wed Oct 24 12:37:26 2001 Delivered-To: freebsd-arch@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 7D69437B406 for ; Wed, 24 Oct 2001 12:37:10 -0700 (PDT) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.11.4/8.11.4) id f9OJaws46582; Wed, 24 Oct 2001 15:36:58 -0400 (EDT) (envelope-from wollman) Date: Wed, 24 Oct 2001 15:36:58 -0400 (EDT) From: Garrett Wollman Message-Id: <200110241936.f9OJaws46582@khavrinen.lcs.mit.edu> To: Dag-Erling Smorgrav Cc: arch@FreeBSD.org Subject: Re: "types" man page In-Reply-To: References: <200110241902.f9OJ2vA46197@khavrinen.lcs.mit.edu> 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 < said: > Our printf(3) man page does not mention a 'j' conversion specifier, > and I don't have a copy of C99 at hand. I suppose it's a C99 thing? > Does our printf(3) (and our printf(9)) support it? I have patches for printf(3), which were posted to the freebsd-standards list; I haven't even looked at the kernel printf, but the changes would be fairly similar. The other new C99 modifiers are `r' (for ptrdiff_t) and `z' (for size_t). C99 also adds the `a' conversion for floating-point numbers, and POSIX/SUS adds the `'' (single close quote) modifier to print using thousands-separators; neither of these are likely to be useful in the kernel. The advice for 4.x should probably say to use `long' almost all the time, except for those types which are documented as `might be longer than long'. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message