Date: Mon, 30 Sep 2002 18:39:47 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: Nate Lawson <nate@root.org> Cc: hackers@FreeBSD.ORG Subject: Re: proper printf fmt type for off_t? Message-ID: <20020930183946.A27098@Odin.AC.HMC.Edu> In-Reply-To: <Pine.BSF.4.21.0209301835230.83911-100000@root.org>; from nate@root.org on Mon, Sep 30, 2002 at 06:36:39PM -0700 References: <Pine.BSF.4.21.0209301835230.83911-100000@root.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 30, 2002 at 06:36:39PM -0700, Nate Lawson wrote: > What's the portable way of printing an off_t? It should work on Linux and > FreeBSD. Linux seems to recommend casting the off_t to intmax_t which > isn't present in FreeBSD. This is in usermode. In current, intmax_t is defined in stdint.h. In stable, I think you're SOL and have to cast to quad_t which is totally non-portable. -- 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 --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9mPziXY6L6fI4GtQRAtO6AKDHjS8U+Ar9sE4GhkTUUWDnh4SCKwCeM14A o1IgaFhDmVQcZaLRgoZUTcE= =pVAq -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020930183946.A27098>