/openbmc/linux/tools/perf/trace/beauty/ |
H A D | socket_type.c | 9 #ifndef SOCK_CLOEXEC 10 # define SOCK_CLOEXEC 02000000 macro
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | socket.h | 45 #define SOCK_CLOEXEC O_CLOEXEC macro
|
/openbmc/linux/samples/bpf/ |
H A D | sock_example.h | 18 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
|
/openbmc/qemu/util/ |
H A D | osdep.c | 461 #ifdef SOCK_CLOEXEC in qemu_socket() 462 ret = socket(domain, type | SOCK_CLOEXEC, protocol); in qemu_socket() 483 ret = accept4(s, addr, addrlen, SOCK_CLOEXEC); in qemu_accept()
|
H A D | oslib-posix.c | 260 #ifdef SOCK_CLOEXEC in qemu_socketpair() 261 ret = socketpair(domain, type | SOCK_CLOEXEC, protocol, sv); in qemu_socketpair()
|
/openbmc/slpd-lite/ |
H A D | slp_server.cpp | 70 fd = socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0); in run()
|
/openbmc/linux/tools/testing/selftests/filesystems/binderfs/ |
H A D | binderfs_test.c | 390 ret = socketpair(PF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, syncfds); in TEST() 509 ret = socketpair(PF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, syncfds); in TEST()
|
/openbmc/linux/tools/testing/selftests/pidfd/ |
H A D | pidfd_setns_test.c | 173 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP() 203 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | xfrm_info.c | 233 sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE); in setup_xfrmi_external_dev()
|
/openbmc/linux/tools/testing/selftests/uevent/ |
H A D | uevent_filtering.c | 92 sk_fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, in uevent_listener()
|
/openbmc/linux/io_uring/ |
H A D | net.c | 1370 if (accept->flags & SOCK_CLOEXEC) in io_accept_prep() 1376 if (accept->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in io_accept_prep() 1458 if (sock->file_slot && (sock->flags & SOCK_CLOEXEC)) in io_socket_prep() 1460 if (sock->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in io_socket_prep()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | xsk.c | 239 umem->fd = socket(AF_XDP, SOCK_RAW | SOCK_CLOEXEC, 0); in xsk_umem__create() 567 xsk->fd = socket(AF_XDP, SOCK_RAW | SOCK_CLOEXEC, 0); in xsk_socket__create_shared()
|
H A D | netlink_helpers.c | 33 rth->fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, protocol); in rtnl_open_byproto()
|
H A D | test_progs.c | 1715 if (socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0, sv) < 0) { in main()
|
/openbmc/linux/include/linux/ |
H A D | net.h | 80 #define SOCK_CLOEXEC O_CLOEXEC macro
|
/openbmc/linux/tools/testing/selftests/landlock/ |
H A D | base_test.c | 286 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, in TEST()
|
H A D | fs_test.c | 3664 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, in TEST_F_FORK()
|
/openbmc/linux/net/ |
H A D | socket.c | 1655 BUILD_BUG_ON(SOCK_CLOEXEC != O_CLOEXEC); in __sys_socket_create() 1657 BUILD_BUG_ON(SOCK_CLOEXEC & SOCK_TYPE_MASK); in __sys_socket_create() 1660 if ((type & ~SOCK_TYPE_MASK) & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in __sys_socket_create() 1744 if (flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in __sys_socketpair() 1968 if (flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in __sys_accept4_file()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | netlink.c | 62 sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto); in libbpf_netlink_open()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | ipsec.c | 199 *sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto); in netlink_sock()
|
/openbmc/qemu/linux-user/ |
H A D | syscall.c | 819 #if defined(SOCK_CLOEXEC) in safe_syscall3() 820 if (host_type & SOCK_CLOEXEC) { in safe_syscall3() 3119 #if defined(SOCK_CLOEXEC) in target_to_host_sock_type() 3120 host_type |= SOCK_CLOEXEC; in target_to_host_sock_type() 3440 host_flags |= SOCK_CLOEXEC; in do_accept4()
|
/openbmc/linux/net/sctp/ |
H A D | socket.c | 5684 retval = get_unused_fd_flags(flags & SOCK_CLOEXEC); in sctp_getsockopt_peeloff_common()
|