glibc/socket
Florian Weimer 8d7b6b4cb2 socket: Use may_alias on sockaddr structs (bug 19622)
This supports common coding patterns.  The GCC C front end before
version 7 rejects the may_alias attribute on a struct definition
if it was not present in a previous forward declaration, so this
attribute can only be conditionally applied.

This implements the spirit of the change in Austin Group issue 1641.

Suggested-by: Marek Polacek <polacek@redhat.com>
Suggested-by: Jakub Jelinek <jakub@redhat.com>
Reviewed-by: Sam James <sam@gentoo.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2024-05-18 09:33:19 +02:00
..
bits
sys socket: Use may_alias on sockaddr structs (bug 19622) 2024-05-18 09:33:19 +02:00
accept4.c
accept.c
bind.c
connect.c
getpeername.c
getsockname.c
getsockopt.c
isfdtype.c
listen.c
Makefile socket: Add new test for connect 2024-04-10 18:10:22 +02:00
opensock.c
recv.c
recvfrom.c
recvmmsg.c
recvmsg.c
sa_len.c
send.c
sendmmsg.c
sendmsg.c
sendto.c
setsockopt.c
shutdown.c
sockaddr_un_set.c
sockatmark.c
socket.c
socketpair.c
tst-accept4.c
tst-cmsg_cloexec.c
tst-cmsghdr-skeleton.c
tst-cmsghdr.c
tst-connect.c socket: Add new test for connect 2024-04-10 18:10:22 +02:00
tst-sockaddr_un_set.c
tst-sockopt-time64.c
tst-sockopt.c
Versions