[PATCH] aarch64: Fix ipc_perm definition for ILP32

Szabolcs Nagy szabolcs.nagy@arm.com
Wed Aug 23 11:02:00 GMT 2017


On 23/08/17 11:37, Szabolcs Nagy wrote:
> we have to decide if mode_t is unsigned int or short on ilp32,
> changing just the ipc_perm struct in libc is nonconforming:
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_ipc.h.html
> 
> (there are some existing conformance issues like that in
> glibc/linux but we should try to avoid introducing new ones)
> 
> i think the ilp32 linux uapi should typedef __kernel_mode_t
> to unsigned short, but i don't know the effect of that on
> the kernel, so please discuss this with the kernel folks.
> 

hm it seems to me that a mode_t change would be
very intrusive..

can we keep the ipc_perm mode field unsigned int
and do endian fixup/zero pad in the syscall interface?



More information about the Libc-alpha mailing list