move msghdr and cmsghdr out of bits/socket.h
these structures can now be defined generically in terms of endianness and long size. previously, the 32-bit archs all shared a common definition from the generic bits header, and each 64-bit arch had to repeat the 64-bit version, with endian conditionals if the arch had variants of each endianness. I would prefer getting rid of the preprocessor conditionals for padding and instead using unnamed bitfield members, like commit 9b2921be did for struct timespec. however, at present sendmsg, recvmsg, and recvmmsg need access to the padding members by name to zero them. this could perhaps be cleaned up in the future.
Showing
arch/aarch64/bits/socket.h
已删除
100644 → 0
arch/riscv64/bits/socket.h
已删除
100644 → 0
arch/s390x/bits/socket.h
已删除
100644 → 0
arch/x86_64/bits/socket.h
已删除
100644 → 0
想要评论请 注册 或 登录