Date: Thu, 12 Aug 2010 12:20:57 -0700 From: mdf@FreeBSD.org To: freebsd-arch@freebsd.org Subject: RFC: replace vm_offset_t with uintptr_t and vm_size_t with size_t Message-ID: <AANLkTik_2pXA1LP9dq-iOLkFrQBG7jP=4yUXBjtDOBF3@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Looking over the arch-specific definitions, using uintptr_t and size_t would not affect the actual width of these sizes. However, it would simplify e.g. conformant printf(9) statements, since there is an approved specifier for size_t and, while there isn't one for uintptr_t, ptrdiff_t is pretty close (Bruce, is there a better specifier)? Admittedly, this isn't the simplest of undertakings, as there are 590 instances of vm_size_t in the FreeBSD source code and 3887 of vm_offset_t. Has this proposal made the rounds before and been shot down for some reason? Thanks, matthew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTik_2pXA1LP9dq-iOLkFrQBG7jP=4yUXBjtDOBF3>