glibc/socket
Sergey Bugaev 904b94c07a socket: Add a test for MSG_CMSG_CLOEXEC
This checks that:
* We can send and receive fds over Unix domain sockets using SCM_RIGHTS;
* msg_controllen, cmsg_level, cmsg_type, cmsg_len are all filled in
  correctly on receive;
* Most importantly, the received fd has or has not the close-on-exec
  flag set depending on whether we pass MSG_CMSG_CLOEXEC to recvmsg ().

Checked on i686-gnu and x86_64-linux-gnu.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230423160548.126576-4-bugaevc@gmail.com>
2023-04-25 00:21:00 +02:00
..
bits Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sys Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
accept4.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
accept.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
bind.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
connect.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getpeername.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getsockname.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getsockopt.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
isfdtype.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
listen.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Makefile socket: Add a test for MSG_CMSG_CLOEXEC 2023-04-25 00:21:00 +02:00
opensock.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
recv.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
recvfrom.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
recvmmsg.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
recvmsg.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sa_len.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
send.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sendmmsg.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sendmsg.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sendto.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setsockopt.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
shutdown.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sockaddr_un_set.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sockatmark.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
socket.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
socketpair.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-accept4.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cmsg_cloexec.c socket: Add a test for MSG_CMSG_CLOEXEC 2023-04-25 00:21:00 +02:00
tst-cmsghdr-skeleton.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cmsghdr.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-sockaddr_un_set.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-sockopt-time64.c socket: Add time64 alias for getsockopt 2021-07-22 19:16:25 +02:00
tst-sockopt.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Versions