On Thu, Jan 13, 2005 at 03:59:28PM -0500, Havoc Pennington wrote: > The "emulate glibc if it's not there" approach isn't used much in > desktop software, we usually use the "portable wrappers" approach as > with Qt and GLib. I don't think that debate is very on-topic for this > list, but it extends well beyond typedefs. See dbus-sysdeps.h, or all of > GLib/Qt
Well I see why you would use guint16 for the GLib interface, but for the plain C interface I can't see why you'd want to invent new types. Also, uint16_t and related types are not glibc, but part of the C99 standard, and have been in use long before that standard. > Even outside of software, see vsftpd for example and their secure coding > guidelines which include wrapping all system headers/functions as a > guideline. Sure, but as you can see, the current typedefs could well be the cause of a security hole on another architecture. The blind wrapping done in dbus-types.h is detrimental to security. -- Met vriendelijke groet / with kind regards, Guus Sliepen <[EMAIL PROTECTED]>
signature.asc
Description: Digital signature