sizeof(struct kevent) on ARM 32-bit
Dr. Nikolaus Klepp
dr.klepp at gmx.at
Fri Feb 28 10:11:06 UTC 2020
Hi!
Anno domini 2020 Fri, 28 Feb 11:48:00 +0200
Nick Kostirya via freebsd-arm scripsit:
> Hello.
>
> Why sizeof(struct kevent) is 64 on ARM 32-bit?
> It is like as on amd64. But why?
> And struct timespec also is 16, but 8.
>
>
> i386 (FreeBSD 12.1):
> sizeof(struct kevent) = 56
> sizeof(struct timespec) = 8
> sizeof(intptr_t) = 4
>
> amd64:
> sizeof(struct kevent) = 64
> sizeof(struct timespec) = 16
> sizeof(intptr_t) = 8
>
> ARM 32-bit:
> sizeof(struct kevent) = 64
> sizeof(struct timespec) = 16
> sizeof(intptr_t) = 4
>
> Nick.
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>
Structure packing, most likely.
http://www.catb.org/esr/structure-packing/
Nik
--
Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
More information about the freebsd-arm
mailing list