Subject: Re: Fun with structure alignment
To: Ben Harris <bjh21@netbsd.org>
From: Richard Earnshaw <rearnsha@buzzard.freeserve.co.uk>
List: port-arm32
Date: 02/13/2001 00:14:53
> Well, struct wscons_keymap looks like this:
> 
> typedef u_int16_t keysym_t;
> 
> struct wscons_keymap {
>         keysym_t command;
>         keysym_t group1[2];
>         keysym_t group2[2];
> };
> 
> An array of these gets passed across when wsconsctl gets or sets the
> keymap.  Are arrays affected?

Yes, arrays of non-word sized structs would be affected.