| /linux/tools/testing/selftests/namespaces/ |
| H A D | file_handle_test.c | 47 SKIP(free(handle); close(ns_fd); in TEST() 56 SKIP(free(handle); close(ns_fd); in TEST() 61 SKIP(free(handle); close(ns_fd); in TEST() 73 close(fd); in TEST() 74 close(ns_fd); in TEST() 102 SKIP(free(handle); close(ns_fd); in TEST() 111 SKIP(free(handle); close(ns_fd); in TEST() 123 close(fd); in TEST() 124 close(ns_fd); in TEST() 152 SKIP(free(handle); close(ns_fd); in TEST() [all …]
|
| H A D | nsid_test.c | 44 close(fd_mntns); in TEST() 71 close(pipefd[0]); in TEST() 86 close(pipefd[1]); in TEST() 94 close(pipefd[1]); in TEST() 98 close(pipefd[0]); in TEST() 104 close(fd_parent_mntns); in TEST() 124 close(fd_parent_mntns); in TEST() 125 close(fd_child_mntns); in TEST() 153 close(fd_cgroupns); in TEST() 180 close(pipefd[0]); in TEST() [all …]
|
| /linux/tools/power/acpi/tools/pfrut/ |
| H A D | pfrut.c | 235 close(fd_update); in main() 236 close(fd_update_log); in main() 245 close(fd_update); in main() 246 close(fd_update_log); in main() 254 close(fd_update); in main() 255 close(fd_update_log); in main() 306 close(fd_update); in main() 307 close(fd_update_log); in main() 316 close(fd_update); in main() 317 close(fd_update_log); in main() [all …]
|
| /linux/tools/testing/selftests/filesystems/epoll/ |
| H 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() 215 close(sfd[1]); in TEST() 249 close(efd); in TEST() 250 close(sfd[0]); in TEST() 251 close(sfd[1]); in TEST() 252 close(sfd[2]); in TEST() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | xdp_context_test_run.c | 149 close(sock); in send_test_packet() 154 close(sock); in send_test_packet() 218 goto close; in test_xdp_context_veth() 220 SYS(close, "ip link add " RX_NAME " netns " RX_NETNS in test_xdp_context_veth() 225 goto close; in test_xdp_context_veth() 227 SYS(close, "ip link set dev " RX_NAME " up"); in test_xdp_context_veth() 231 goto close; in test_xdp_context_veth() 235 goto close; in test_xdp_context_veth() 240 goto close; in test_xdp_context_veth() 244 goto close; in test_xdp_context_veth() [all …]
|
| H 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() 61 close(pipe_c2p[0]); /* close read */ in test_send_signal_common() 62 close(pipe_p2c[1]); /* close write */ 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() [all …]
|
| H 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 …]
|
| H 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() 355 close(iter_fd); in test_sockmap_copy() 361 close(sock_fd[i]); in test_sockmap_copy() 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() [all …]
|
| H 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()
|
| H A D | test_task_work.c | 71 close(pipefd[1]); in task_work_run() 73 close(pipefd[0]); in task_work_run() 81 close(pipefd[0]); in task_work_run() 82 close(pipefd[1]); in task_work_run() 121 close(pipefd[0]); in task_work_run() 123 close(pipefd[1]); in task_work_run() 134 close(pe_fd); in task_work_run() 138 close(pipefd[0]); in task_work_run() 140 close(pipefd[1]); in task_work_run()
|
| H 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()
|
| H 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()
|
| /linux/tools/testing/selftests/coredump/ |
| H A D | stackdump_test.c | 73 close(fd_context); in create_detached_tmpfs() 133 ret = close(self->fd_tmpfs_detached); in FIXTURE_TEARDOWN() 238 close(fd); in create_and_listen_unix_socket() 252 close(fd); in set_core_pattern() 312 close(ipc_sockets[0]); in TEST_F() 321 close(ipc_sockets[1]); in TEST_F() 363 close(fd_core_file); in TEST_F() 365 close(fd_peer_pidfd); in TEST_F() 367 close(fd_coredump); in TEST_F() 369 close(fd_server); in TEST_F() [all …]
|
| /linux/tools/testing/selftests/landlock/ |
| H 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() 199 EXPECT_EQ(0, close(pipe_parent[1])); in TEST_F() 200 EXPECT_EQ(0, close(pipe_child[0])); in TEST_F() 224 EXPECT_EQ(0, close(stream_server)); in TEST_F() [all …]
|
| H 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() 197 EXPECT_EQ(0, close(pipe_parent[1])); in TEST_F() 203 EXPECT_EQ(0, close(pipe_child[1])); in TEST_F() 207 EXPECT_EQ(0, close(pipe_parent[0])); 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() [all …]
|
| /linux/arch/um/drivers/ |
| H A D | harddog_user.c | 25 close(data->stdin_fd); in pre_exec() 26 close(data->stdout_fd); in pre_exec() 27 close(data->close_me[0]); in pre_exec() 28 close(data->close_me[1]); in pre_exec() 70 close(out_fds[0]); in start_watchdog() 71 close(in_fds[1]); in start_watchdog() 98 close(in_fds[0]); in start_watchdog() 99 close(in_fds[1]); in start_watchdog() 101 close(out_fds[0]); in start_watchdog() 102 close(out_fds[1]); in start_watchdog() [all …]
|
| /linux/tools/testing/selftests/filesystems/overlayfs/ |
| H 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() 158 ASSERT_EQ(close(layer_fds[i]), 0); in TEST_F() 161 ASSERT_EQ(close(fd_context), 0); in TEST_F() 162 ASSERT_EQ(close(fd_overlay), 0); in TEST_F() 180 ASSERT_EQ(close(fd_context), 0); in TEST_F() 204 ASSERT_EQ(close(fd_tmpfs), 0); in TEST_F() 210 ASSERT_EQ(close(fd_work), 0); in TEST_F() 213 ASSERT_EQ(close(fd_upper), 0); in TEST_F() [all …]
|
| /linux/tools/testing/selftests/pidfd/ |
| H 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() 106 close(ipc_sockets[1]); in FIXTURE_SETUP() [all …]
|
| H A D | pidfd_info_test.c | 54 close(ipc_sockets[0]); in FIXTURE_SETUP() 59 close(ipc_sockets[1]); in FIXTURE_SETUP() 65 EXPECT_EQ(close(ipc_sockets[1]), 0); in FIXTURE_SETUP() 67 EXPECT_EQ(close(ipc_sockets[0]), 0); in FIXTURE_SETUP() 79 close(ipc_sockets[0]); in FIXTURE_SETUP() 84 close(ipc_sockets[1]); in FIXTURE_SETUP() 90 EXPECT_EQ(close(ipc_sockets[1]), 0); in FIXTURE_SETUP() 92 EXPECT_EQ(close(ipc_sockets[0]), 0); in FIXTURE_SETUP() 117 EXPECT_EQ(0, close(self->child_pidfd1)); in FIXTURE_TEARDOWN() 123 EXPECT_EQ(0, close(self->child_pidfd2)); in FIXTURE_TEARDOWN() [all …]
|
| /linux/tools/lib/subcmd/ |
| H 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() 76 close(cmd->out); in start_command() 92 close(cmd->in); in start_command() 111 close(cmd->out); in start_command() 142 close(cmd->in); in start_command() [all …]
|
| /linux/tools/testing/selftests/core/ |
| H 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 …]
|
| /linux/tools/testing/selftests/net/ |
| H 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 …]
|
| /linux/tools/testing/selftests/proc/ |
| H A D | proc-pidns.c | 37 return close(fd); in touch() 97 ASSERT_SUCCESS(close(self->host_mntns)); in FIXTURE_TEARDOWN() 99 ASSERT_SUCCESS(close(self->host_pidns)); in FIXTURE_TEARDOWN() 100 ASSERT_SUCCESS(close(self->dummy_pidns)); in FIXTURE_TEARDOWN() 129 ASSERT_SUCCESS(close(fsfd)); in TEST_F() 130 ASSERT_SUCCESS(close(mountfd)); in TEST_F() 147 ASSERT_SUCCESS(close(fsfd)); in TEST_F() 148 ASSERT_SUCCESS(close(mountfd)); in TEST_F() 184 ASSERT_SUCCESS(close(fsfd)); in TEST_F() 185 ASSERT_SUCCESS(close(mountfd)); in TEST_F() [all …]
|
| /linux/tools/testing/vsock/ |
| H A D | vsock_test.c | 71 close(fd); in test_stream_connection_reset() 113 close(fd); in test_stream_bind_only_client() 128 close(fd); in test_stream_bind_only_server() 142 close(fd); in test_stream_client_close_client() 163 close(fd); in test_stream_client_close_server() 184 close(fd); in test_stream_server_close_client() 198 close(fd); in test_stream_server_close_server() 227 close(fds[i]); in test_stream_multiconn_client() 251 close(fds[i]); in test_stream_multiconn_server() 280 close(fd); in test_msg_peek_client() [all …]
|
| /linux/tools/testing/selftests/powerpc/papr_vpd/ |
| H 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() 193 FAIL_IF(close(devfd) != 0); in papr_vpd_reread() [all …]
|