Home
last modified time | relevance | path

Searched refs:SOCK_CLOEXEC (Results 1 – 25 of 25) sorted by relevance

/linux-6.15/tools/perf/trace/beauty/
H A Dsocket_type.c9 #ifndef SOCK_CLOEXEC
10 # define SOCK_CLOEXEC 02000000 macro
/linux-6.15/arch/mips/include/asm/
H A Dsocket.h45 #define SOCK_CLOEXEC O_CLOEXEC macro
/linux-6.15/samples/bpf/
H A Dsock_example.h18 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
/linux-6.15/tools/testing/selftests/pidfd/
H A Dpidfd_info_test.c47 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP()
72 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP()
248 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in TEST_F()
425 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in TEST_F()
574 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in TEST_F()
H A Dpidfd_file_handle_test.c50 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP()
72 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP()
94 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP()
H A Dpidfd_setns_test.c155 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP()
210 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in FIXTURE_SETUP()
/linux-6.15/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c390 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()
/linux-6.15/tools/testing/selftests/landlock/
H A Dnet_test.c108 ret = socket(srv->protocol.domain, srv->protocol.type | SOCK_CLOEXEC, in socket_variant()
1015 unix_stream_fd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F()
1018 unix_dgram_fd = socket(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, 0); in TEST_F()
1642 bind_fd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F()
1647 bind_fd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0); in TEST_F()
H A Dbase_test.c412 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, in TEST()
H A Dfs_test.c3998 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, in TEST_F_FORK()
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dxfrm_info.c233 sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE); in setup_xfrmi_external_dev()
/linux-6.15/tools/testing/selftests/uevent/
H A Duevent_filtering.c92 sk_fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, in uevent_listener()
/linux-6.15/include/linux/
H A Dnet.h80 #define SOCK_CLOEXEC O_CLOEXEC macro
/linux-6.15/tools/testing/selftests/bpf/
H A Dnetlink_helpers.c33 rth->fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, protocol); in rtnl_open_byproto()
H A Dxsk.c241 umem->fd = socket(AF_XDP, SOCK_RAW | SOCK_CLOEXEC, 0); in xsk_umem__create()
569 xsk->fd = socket(AF_XDP, SOCK_RAW | SOCK_CLOEXEC, 0); in xsk_socket__create_shared()
H A Dtest_progs.c2021 if (socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0, sv) < 0) { in main()
/linux-6.15/tools/testing/selftests/exec/
H A Dcheck-exec.c169 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, 0, in FIXTURE_SETUP()
/linux-6.15/tools/testing/selftests/filesystems/
H A Dutils.c389 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, fd_socket); in create_userns_hierarchy()
/linux-6.15/io_uring/
H A Dnet.c1585 if (accept->flags & SOCK_CLOEXEC) in io_accept_prep()
1591 if (accept->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in io_accept_prep()
1677 if (sock->file_slot && (sock->flags & SOCK_CLOEXEC)) in io_socket_prep()
1679 if (sock->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in io_socket_prep()
/linux-6.15/tools/testing/selftests/net/tcp_ao/lib/
H A Dnetlink.c23 *sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto); in netlink_sock()
/linux-6.15/net/
H A Dsocket.c1627 BUILD_BUG_ON(SOCK_CLOEXEC != O_CLOEXEC); in __sys_socket_create()
1629 BUILD_BUG_ON(SOCK_CLOEXEC & SOCK_TYPE_MASK); in __sys_socket_create()
1632 if ((type & ~SOCK_TYPE_MASK) & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in __sys_socket_create()
1712 if (flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in __sys_socketpair()
1954 if (flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in __sys_accept4_file()
/linux-6.15/tools/testing/selftests/filesystems/overlayfs/
H A Dset_layers_via_fds.c347 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, ipc_sockets); in TEST_F()
/linux-6.15/tools/lib/bpf/
H A Dnetlink.c62 sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto); in libbpf_netlink_open()
/linux-6.15/tools/testing/selftests/net/
H A Dipsec.c199 *sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto); in netlink_sock()
/linux-6.15/net/sctp/
H A Dsocket.c5691 retval = get_unused_fd_flags(flags & SOCK_CLOEXEC); in sctp_getsockopt_peeloff_common()