Date: Fri, 28 Feb 2020 14:39:35 +0100 From: Michal Meloun <meloun.michal@gmail.com> To: Nick Kostirya <nikolay.kostirya@i11.co>, freebsd-arm@freebsd.org Subject: Re: sizeof(struct kevent) on ARM 32-bit Message-ID: <ed3e079c-b96b-ac53-e5c7-64a554bc5745@freebsd.org> In-Reply-To: <20200228114800.60a39b65@i11.co> References: <20200228114800.60a39b65@i11.co>
next in thread | previous in thread | raw e-mail | index | archive | help
On 28.02.2020 10:48, Nick Kostirya via freebsd-arm wrote: > 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 time_t is 8 bytes on arm32 but 4 bytes on i386. Michal
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ed3e079c-b96b-ac53-e5c7-64a554bc5745>