Searched refs:SOCK_CLOEXEC (Results 1 – 17 of 17) sorted by relevance
/linux-6.3-rc2/tools/perf/trace/beauty/ |
A D | socket_type.c | 9 #ifndef SOCK_CLOEXEC 10 # define SOCK_CLOEXEC 02000000 macro
|
/linux-6.3-rc2/arch/mips/include/asm/ |
A D | socket.h | 45 #define SOCK_CLOEXEC O_CLOEXEC macro
|
/linux-6.3-rc2/samples/bpf/ |
A D | sock_example.h | 18 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
|
/linux-6.3-rc2/tools/testing/selftests/filesystems/binderfs/ |
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()
|
/linux-6.3-rc2/tools/testing/selftests/pidfd/ |
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()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | xfrm_info.c | 248 sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE); in setup_xfrmi_external_dev()
|
/linux-6.3-rc2/tools/testing/selftests/uevent/ |
A D | uevent_filtering.c | 92 sk_fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, in uevent_listener()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | xsk.c | 231 umem->fd = socket(AF_XDP, SOCK_RAW | SOCK_CLOEXEC, 0); in xsk_umem__create() 433 xsk->fd = socket(AF_XDP, SOCK_RAW | SOCK_CLOEXEC, 0); in xsk_socket__create_shared()
|
A D | test_progs.c | 1694 if (socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0, sv) < 0) { in main()
|
/linux-6.3-rc2/tools/testing/selftests/landlock/ |
A D | base_test.c | 285 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, in TEST()
|
A D | fs_test.c | 3584 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, in TEST_F_FORK()
|
/linux-6.3-rc2/include/linux/ |
A D | net.h | 79 #define SOCK_CLOEXEC O_CLOEXEC macro
|
/linux-6.3-rc2/io_uring/ |
A D | net.c | 1282 if (accept->flags & SOCK_CLOEXEC) in io_accept_prep() 1288 if (accept->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in io_accept_prep() 1370 if (sock->file_slot && (sock->flags & SOCK_CLOEXEC)) in io_socket_prep() 1372 if (sock->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in io_socket_prep()
|
/linux-6.3-rc2/net/ |
A D | socket.c | 1624 BUILD_BUG_ON(SOCK_CLOEXEC != O_CLOEXEC); in __sys_socket_create() 1626 BUILD_BUG_ON(SOCK_CLOEXEC & SOCK_TYPE_MASK); in __sys_socket_create() 1629 if ((type & ~SOCK_TYPE_MASK) & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in __sys_socket_create() 1689 if (flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in __sys_socketpair() 1912 if (flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in __sys_accept4_file()
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | netlink.c | 61 sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto); in libbpf_netlink_open()
|
/linux-6.3-rc2/tools/testing/selftests/net/ |
A D | ipsec.c | 199 *sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto); in netlink_sock()
|
/linux-6.3-rc2/net/sctp/ |
A D | socket.c | 5671 retval = get_unused_fd_flags(flags & SOCK_CLOEXEC); in sctp_getsockopt_peeloff_common()
|
Completed in 53 milliseconds