| /tools/power/acpi/tools/pfrut/ |
| A D | pfrut.c | 235 close(fd_update); in main() 245 close(fd_update); in main() 254 close(fd_update); in main() 306 close(fd_update); in main() 316 close(fd_update); in main() 329 close(fd_update); in main() 338 close(fd_update); in main() 349 close(fd_update); in main() 362 close(fd_update); in main() 369 close(fd_capsule); in main() [all …]
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | xdp_context_test_run.c | 150 close(sock); in send_test_packet() 192 goto close; in test_xdp_context_veth() 199 goto close; in test_xdp_context_veth() 205 goto close; in test_xdp_context_veth() 209 goto close; in test_xdp_context_veth() 214 goto close; in test_xdp_context_veth() 218 goto close; in test_xdp_context_veth() 223 goto close; in test_xdp_context_veth() 227 goto close; in test_xdp_context_veth() 253 close: in test_xdp_context_veth() [all …]
|
| A D | send_signal.c | 37 close(pipe_c2p[0]); in test_send_signal_common() 38 close(pipe_c2p[1]); in test_send_signal_common() 44 close(pipe_c2p[0]); in test_send_signal_common() 45 close(pipe_c2p[1]); in test_send_signal_common() 46 close(pipe_p2c[0]); in test_send_signal_common() 47 close(pipe_p2c[1]); in test_send_signal_common() 104 close(pipe_c2p[1]); in test_send_signal_common() 105 close(pipe_p2c[0]); in test_send_signal_common() 200 close(pmu_fd); in test_send_signal_common() 207 close(pipe_c2p[0]); in test_send_signal_common() [all …]
|
| A D | cgroup_v1v2.c | 43 close(fd); in run_test() 64 close(server_fd); in test_cgroup_v1v2() 67 close(client_fd); in test_cgroup_v1v2() 68 close(server_fd); in test_cgroup_v1v2() 76 close(cgroup_fd); in test_cgroup_v1v2() 84 close(server_fd); in test_cgroup_v1v2() 85 close(cgroup_fd); in test_cgroup_v1v2()
|
| A D | setget_sockopt.c | 56 close(sfd); in test_tcp() 59 close(sfd); in test_tcp() 60 close(cfd); in test_tcp() 81 close(sfd); in test_udp() 108 close(sfd); in test_ktls() 133 close(fd); in test_ktls() 140 close(cfd); in test_ktls() 152 close(fd); in test_ktls() 153 close(cfd); in test_ktls() 154 close(sfd); in test_ktls() [all …]
|
| A D | lwt_redirect.c | 105 close(s); in new_packet_sock() 117 close(s); in new_packet_sock() 128 close(s); in new_packet_sock() 134 close(s); in new_packet_sock() 190 close(psock); in send_and_capture_test_packets() 223 close(tap_fd); in setup_redirect_target() 238 close(tap_fd); in test_lwt_redirect_normal() 252 close(tap_fd); in test_lwt_redirect_normal_nomac() 272 close(tap_fd); in __test_lwt_redirect_dev_down() 305 close(tap_fd); in test_lwt_redirect_dev_carrier_down()
|
| A D | sock_destroy.c | 29 close(iter_fd); in start_iter_sockets() 65 close(clien); in test_tcp_client() 67 close(accept_serv); in test_tcp_client() 69 close(serv); in test_tcp_client() 106 close(clien); in test_tcp_server() 108 close(accept_serv); in test_tcp_server() 110 close(serv); in test_tcp_server() 141 close(clien); in test_udp_client() 143 close(serv); in test_udp_client() 219 close(cgroup_fd); in test_sock_destroy()
|
| A D | sockmap_basic.c | 56 close(s); in connected_socket_v4() 108 close(map); in test_sockmap_create_update_free() 109 close(s); in test_sockmap_create_update_free() 271 close(sk); in test_sockmap_update() 532 close(c1); in test_sockmap_skb_verdict_shutdown() 533 close(p1); in test_sockmap_skb_verdict_shutdown() 589 close(c0); in test_sockmap_skb_verdict_fionread() 590 close(p0); in test_sockmap_skb_verdict_fionread() 591 close(c1); in test_sockmap_skb_verdict_fionread() 592 close(p1); in test_sockmap_skb_verdict_fionread() [all …]
|
| /tools/testing/selftests/filesystems/epoll/ |
| A D | epoll_wakeup_test.c | 182 close(efd); in TEST() 183 close(sfd[0]); in TEST() 184 close(sfd[1]); in TEST() 213 close(efd); in TEST() 214 close(sfd[0]); in TEST() 249 close(efd); in TEST() 287 close(efd); in TEST() 328 close(efd); in TEST() 367 close(efd); in TEST() 412 close(efd); in TEST() [all …]
|
| /tools/testing/selftests/coredump/ |
| A D | stackdump_test.c | 73 close(fd_context); in create_detached_tmpfs() 238 close(fd); in create_and_listen_unix_socket() 252 close(fd); in set_core_pattern() 369 close(fd_server); in TEST_F() 456 close(fd_server); in TEST_F() 486 close(fd_socket); in TEST_F() 567 close(fd_server); in TEST_F() 820 close(fd_server); in TEST_F() 937 close(fd_server); in TEST_F() 1050 close(fd_server); in TEST_F() [all …]
|
| /tools/testing/selftests/landlock/ |
| A D | scoped_signal_test.c | 103 EXPECT_EQ(0, close(pipe_parent[1])); in TEST_F() 112 EXPECT_EQ(0, close(pipe_parent[0])); in TEST_F() 135 EXPECT_EQ(0, close(pipe_parent[0])); in TEST_F() 142 EXPECT_EQ(0, close(pipe_parent[1])); in TEST_F() 196 EXPECT_EQ(0, close(pipe_child[0])); in TEST_F() 203 EXPECT_EQ(0, close(pipe_child[1])); in TEST_F() 225 EXPECT_EQ(0, close(pipe_parent[0])); in TEST_F() 226 EXPECT_EQ(0, close(pipe_child[1])); in TEST_F() 232 EXPECT_EQ(0, close(pipe_child[0])); in TEST_F() 244 EXPECT_EQ(0, close(pipe_parent[1])); in TEST_F() [all …]
|
| A D | scoped_abstract_unix_test.c | 45 EXPECT_EQ(0, close(ruleset_fd)); in create_fs_domain() 103 EXPECT_EQ(0, close(pipe_parent[1])); in TEST_F() 124 EXPECT_EQ(0, close(stream_client)); in TEST_F() 134 EXPECT_EQ(0, close(dgram_client)); in TEST_F() 138 EXPECT_EQ(0, close(pipe_parent[0])); in TEST_F() 157 EXPECT_EQ(0, close(stream_server)); in TEST_F() 158 EXPECT_EQ(0, close(dgram_server)); in TEST_F() 225 EXPECT_EQ(0, close(dgram_server)); in TEST_F() 229 EXPECT_EQ(0, close(pipe_child[1])); in TEST_F() 263 EXPECT_EQ(0, close(dgram_client)); in TEST_F() [all …]
|
| /tools/testing/selftests/filesystems/overlayfs/ |
| A D | set_layers_via_fds.c | 36 EXPECT_EQ(close(self->pidfd), 0); in FIXTURE_TEARDOWN() 63 ASSERT_EQ(close(fd_context), 0); in TEST_F() 103 ASSERT_EQ(close(fd_tmpfs), 0); in TEST_F() 204 ASSERT_EQ(close(fd_tmpfs), 0); in TEST_F() 210 ASSERT_EQ(close(fd_work), 0); in TEST_F() 292 ASSERT_GE(close(pidfd), 0); in TEST_F() 305 ASSERT_GE(close(pidfd), 0); in TEST_F() 318 ASSERT_GE(close(pidfd), 0); in TEST_F() 353 if (close(ipc_sockets[0])) { in TEST_F() 368 if (close(ipc_sockets[1])) { in TEST_F() [all …]
|
| /tools/lib/subcmd/ |
| A D | run-command.c | 20 close(fd[0]); in close_pair() 21 close(fd[1]); in close_pair() 28 close(fd); in dup_devnull() 46 close(cmd->out); in start_command() 60 close(cmd->in); in start_command() 72 close(cmd->in); in start_command() 92 close(cmd->in); in start_command() 142 close(cmd->in); in start_command() 155 close(fdin[0]); in start_command() 157 close(cmd->in); in start_command() [all …]
|
| /tools/testing/selftests/pidfd/ |
| A D | pidfd_file_handle_test.c | 57 close(ipc_sockets[0]); in FIXTURE_SETUP() 62 close(ipc_sockets[1]); in FIXTURE_SETUP() 68 close(ipc_sockets[1]); in FIXTURE_SETUP() 70 close(ipc_sockets[0]); in FIXTURE_SETUP() 79 close(ipc_sockets[0]); in FIXTURE_SETUP() 84 close(ipc_sockets[1]); in FIXTURE_SETUP() 90 close(ipc_sockets[1]); in FIXTURE_SETUP() 92 close(ipc_sockets[0]); in FIXTURE_SETUP() 101 close(ipc_sockets[0]); in FIXTURE_SETUP() 112 close(ipc_sockets[1]); in FIXTURE_SETUP() [all …]
|
| /tools/testing/selftests/filesystems/ |
| A D | anon_inode_test.c | 22 EXPECT_EQ(close(fd_context), 0); in TEST() 35 EXPECT_EQ(close(fd_context), 0); in TEST() 48 EXPECT_EQ(close(fd_context), 0); in TEST() 59 ASSERT_EQ(close(fd_context), 0); in TEST() 65 EXPECT_EQ(close(fd_context), 0); in TEST()
|
| /tools/testing/selftests/powerpc/mm/ |
| A D | stack_expansion_signal.c | 82 close(read_pipe.read_fd); in test_one_size() 83 close(write_pipe.write_fd); in test_one_size() 87 close(read_pipe.write_fd); in test_one_size() 88 close(write_pipe.read_fd); in test_one_size() 95 close(read_pipe.read_fd); in test_one_size() 96 close(write_pipe.write_fd); in test_one_size()
|
| /tools/testing/selftests/net/packetdrill/ |
| A D | tcp_close_close-on-syn-sent.pkt | 2 // Test to make sure no RST is being sent when close() 13 // Application decideds to close the socket in SYN_SENT state 14 // Make sure no RST is sent after close(). 15 +0 close(3) = 0 18 // If a RESET were sent right after close(), it would have failed with
|
| /tools/testing/selftests/mm/ |
| A D | hugetlb-soft-offline.c | 142 goto close; in create_hugetlbfs_file() 146 goto close; in create_hugetlbfs_file() 150 close: in create_hugetlbfs_file() 151 close(fd); in create_hugetlbfs_file() 176 close(fd); in test_soft_offline_common() 181 close(fd); in test_soft_offline_common() 191 close(fd); in test_soft_offline_common() 199 close(fd); in test_soft_offline_common()
|
| A D | mrelease_test.c | 71 close(pipefd[0]); in child_main() 73 close(pipefd[1]); in child_main() 112 close(pipefd[0]); in main() 113 close(pipefd[1]); in main() 127 close(pipefd[1]); in main() 130 close(pipefd[0]); in main() 171 close(pidfd); in main()
|
| /tools/perf/tests/ |
| A D | event_groups.c | 74 close(fd); in setup_uncore_event() 93 close(group_fd); in run_test() 110 close(sibling_fd1); in run_test() 111 close(group_fd); in run_test() 115 close(sibling_fd2); in run_test() 116 close(sibling_fd1); in run_test() 117 close(group_fd); in run_test()
|
| /tools/testing/selftests/core/ |
| A D | close_range_test.c | 79 close(57); in TEST() 80 close(78); in TEST() 81 close(81); in TEST() 82 close(82); in TEST() 83 close(84); in TEST() 84 close(90); in TEST() 147 close(57); in TEST() 148 close(78); in TEST() 149 close(81); in TEST() 150 close(82); in TEST() [all …]
|
| /tools/testing/selftests/net/tcp_ao/lib/ |
| A D | kconfig.c | 36 close(orig_netns); in has_veth() 37 close(ns_a); in has_veth() 38 close(ns_b); in has_veth() 69 close(sk); in has_tcp_ao() 96 close(sk); in has_tcp_md5() 114 close(orig_netns); in has_vrfs() 115 close(ns_test); in has_vrfs()
|
| /tools/testing/selftests/net/ |
| A D | psock_fanout.c | 87 close(fd); in loopback_set_up_down() 130 if (close(fd)) { in sock_fanout_open() 212 if (close(pfd)) { in sock_fanout_set_ebpf() 313 close(fd0); in test_unbound_fanout() 314 close(fd1); in test_unbound_fanout() 367 if (close(fds[1]) || close(fds[0])) { in test_control_group() 417 if (close(fds[2]) || close(fds[1]) || close(fds[0])) { in test_control_group_max_num_members() 472 if (close(fds[0]) || close(fds[1]) || close(fds[2])) { in test_unique_fanout_group_ids() 522 if (close(fds_udp[1][1]) || close(fds_udp[1][0]) || in test_datapath() 523 close(fds_udp[0][1]) || close(fds_udp[0][0]) || in test_datapath() [all …]
|
| /tools/testing/selftests/powerpc/papr_vpd/ |
| A D | papr_vpd.c | 24 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_open_close() 46 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_get_handle_all() 59 FAIL_IF(close(fd)); in dev_papr_vpd_get_handle_all() 84 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_get_handle_byte_at_a_time() 103 FAIL_IF(close(fd)); in dev_papr_vpd_get_handle_byte_at_a_time() 131 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_unterm_loc_code() 150 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_null_handle() 171 FAIL_IF(close(fd) != 0); in papr_vpd_close_handle_without_reading() 173 FAIL_IF(close(devfd) != 0); in papr_vpd_close_handle_without_reading() 209 FAIL_IF(close(fd) != 0); in papr_vpd_reread() [all …]
|