This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] aarch64: Fix ipc_perm definition for ILP32


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]