hurd 64bit: Fix ipc_perm fields types
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 1 May 2023 12:40:12 +0000 (14:40 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 1 May 2023 13:05:09 +0000 (15:05 +0200)
commite3a3616dbf620fa9f260a4c1a779efbb15b4a506
treec9c1ac3316eedbf765df9414b4e1398f3fbe600c
parentd5e2f9eaf7384ebf8f09831eb9fa15dad2ecf2c3
hurd 64bit: Fix ipc_perm fields types

The standards want uid/cuid to be uid_t, gid/cgid to be gid_t and mode to be
mode_t, see BZ 23082.

We can leave them short ints on i386 for ABI compatibility, but avoid
hitting the issue on 64bit.

bits/ipc.h ends up being exactly the same in sysdeps/gnu/ and
sysdeps/unix/sysv/linux/, so remove the latter.
sysdeps/gnu/Makefile
sysdeps/gnu/bits/ipc-perm.h [new file with mode: 0644]
sysdeps/gnu/bits/ipc.h
sysdeps/mach/hurd/i386/bits/ipc-perm.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/bits/ipc.h [deleted file]