libdbus On ARM Integer Sizes Question

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Thu Mar 14 21:34:59 UTC 2019


On Thu, 14 Mar 2019 12:09:53 +0000, Simon McVittie wrote:

> On Linux (and most Unix platforms, but not Windows), long is the same
> size as a pointer, so it's 32-bit on 32-bit architectures and 64-bit
> on 64-bit architectures.

Thanks for that.

> Historically there were some LLP64 Unix platforms that used the same
> type sizes as 64-bit Windows, but none of them are really relevant
> any more: all vaguely mainstream Unix platform developers (including
> Linux, *BSD, macOS etc.) seem to have been convinced by the reasoning
> in <http://www.unix.org/unix/version2/whatsnew/lp64_wp.html> that LP64
> is the easiest model to deal with.

Also C99 has stdint.h, so you can explicitly use type names like
“uint32_t” and “uint64_t” and always get the correct size.

But, yeah, Python ctypes doesn’t have these names ...


More information about the dbus mailing list