Home
last modified time | relevance | path

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

12345678910>>...60

/linux/tools/testing/selftests/filesystems/epoll/
A Depoll_wakeup_test.c182 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 …]
/linux/tools/testing/selftests/bpf/prog_tests/
A Dsend_signal.c27 close(pipe_c2p[0]); in test_send_signal_common()
28 close(pipe_c2p[1]); in test_send_signal_common()
34 close(pipe_c2p[0]); in test_send_signal_common()
35 close(pipe_c2p[1]); in test_send_signal_common()
36 close(pipe_p2c[0]); in test_send_signal_common()
37 close(pipe_p2c[1]); in test_send_signal_common()
77 close(pipe_c2p[1]); in test_send_signal_common()
78 close(pipe_p2c[0]); in test_send_signal_common()
135 close(pmu_fd); in test_send_signal_common()
139 close(pipe_c2p[0]); in test_send_signal_common()
[all …]
A Dcgroup_v1v2.c39 close(fd); in run_test()
57 close(server_fd); in test_cgroup_v1v2()
60 close(client_fd); in test_cgroup_v1v2()
61 close(server_fd); in test_cgroup_v1v2()
69 close(cgroup_fd); in test_cgroup_v1v2()
77 close(server_fd); in test_cgroup_v1v2()
78 close(cgroup_fd); in test_cgroup_v1v2()
A Dflow_dissector_reattach.c140 close(link2); in test_link_create_link_create()
143 close(link1); in test_link_create_link_create()
165 close(link); in test_prog_attach_link_create()
193 close(link); in test_link_create_prog_attach()
216 close(link); in test_link_create_prog_detach()
253 close(link); in test_link_create_close_query()
279 close(link); in test_link_update_no_old_prog()
304 close(link); in test_link_update_replace_old_prog()
329 close(link); in test_link_update_same_prog()
389 close(link); in test_link_update_invalid_opts()
[all …]
A Dsk_assign.c78 close(fd); in start_server()
100 close(fd); in connect_to_server()
195 close(client); in run_test()
302 goto close; in test_sk_assign()
307 goto close; in test_sk_assign()
314 goto close; in test_sk_assign()
316 close(server); in test_sk_assign()
320 close: in test_sk_assign()
321 close(server); in test_sk_assign()
322 close(server_map); in test_sk_assign()
[all …]
A Dsk_lookup.c132 close(fd); in make_socket()
139 close(fd); in make_socket()
219 close(fd); in make_server()
240 close(fd); in make_client()
328 goto close; in tcp_recv_send()
335 goto close; in tcp_recv_send()
339 close: in tcp_recv_send()
340 close(fd); in tcp_recv_send()
433 close(fd); in udp_recv_send()
595 close: in query_lookup_prog()
[all …]
/linux/arch/um/drivers/
A Dharddog_user.c24 close(data->stdin_fd); in pre_exec()
25 close(data->stdout_fd); in pre_exec()
26 close(data->close_me[0]); in pre_exec()
69 close(out_fds[0]); in start_watchdog()
70 close(in_fds[1]); in start_watchdog()
97 close(in_fds[0]); in start_watchdog()
98 close(in_fds[1]); in start_watchdog()
100 close(out_fds[0]); in start_watchdog()
101 close(out_fds[1]); in start_watchdog()
108 close(in_fd); in stop_watchdog()
[all …]
A Dslip_user.c71 close(data->close_me); in slip_pre_exec()
106 close(fds[1]); in slip_tramp()
111 close(fds[0]); in slip_tramp()
117 close(fds[0]); in slip_tramp()
118 close(fds[1]); in slip_tramp()
184 close(sfd); in slip_open()
186 close(mfd); in slip_open()
208 close(fd); in slip_close()
209 close(pri->slave); in slip_close()
246 .close = slip_close,
/linux/tools/lib/subcmd/
A Drun-command.c18 close(fd[0]); in close_pair()
19 close(fd[1]); in close_pair()
26 close(fd); in dup_devnull()
44 close(cmd->out); in start_command()
58 close(cmd->in); in start_command()
70 close(cmd->in); in start_command()
90 close(cmd->in); in start_command()
138 close(cmd->in); in start_command()
151 close(fdin[0]); in start_command()
153 close(cmd->in); in start_command()
[all …]
/linux/tools/testing/selftests/core/
A Dclose_range_test.c88 close(57); in TEST()
89 close(78); in TEST()
90 close(81); in TEST()
91 close(82); in TEST()
92 close(84); in TEST()
93 close(90); in TEST()
156 close(57); in TEST()
157 close(78); in TEST()
158 close(81); in TEST()
159 close(82); in TEST()
[all …]
/linux/arch/um/os-Linux/drivers/
A Dethertap_user.c87 close(data->data_me); in etap_pre_exec()
88 close(data->control_me); in etap_pre_exec()
121 close(data_remote); in etap_tramp()
122 close(control_remote); in etap_tramp()
188 close(control_fds[0]); in etap_open()
189 close(control_fds[1]); in etap_open()
191 close(data_fds[0]); in etap_open()
192 close(data_fds[1]); in etap_open()
201 close(fd); in etap_close()
211 close(pri->data_fd); in etap_close()
[all …]
/linux/tools/testing/selftests/dmabuf-heaps/
A Ddmabuf-heap.c54 close(fd); in open_vgem()
212 close(importer_fd); in test_alloc_and_import()
214 close(dmabuf_fd); in test_alloc_and_import()
216 close(heap_fd); in test_alloc_and_import()
286 close(heap_fd); in test_alloc_zeroed()
295 close(heap_fd); in test_alloc_zeroed()
380 close(dmabuf_fd); in test_alloc_compat()
393 close(dmabuf_fd); in test_alloc_compat()
395 close(heap_fd); in test_alloc_compat()
436 close(dmabuf_fd); in test_alloc_errors()
[all …]
/linux/tools/testing/vsock/
A Dvsock_test.c57 close(fd); in test_stream_connection_reset()
99 close(fd); in test_stream_bind_only_client()
129 close(fd); in test_stream_bind_only_server()
143 close(fd); in test_stream_client_close_client()
164 close(fd); in test_stream_client_close_server()
185 close(fd); in test_stream_server_close_client()
199 close(fd); in test_stream_server_close_server()
266 close(fd); in test_stream_msg_peek_client()
281 close(fd); in test_stream_msg_peek_server()
301 close(fd); in test_seqpacket_msg_bounds_client()
[all …]
/linux/tools/testing/selftests/net/
A Dpsock_fanout.c101 if (close(fd)) { in sock_fanout_open()
183 if (close(pfd)) { in sock_fanout_set_ebpf()
296 if (close(fds[1]) || close(fds[0])) { in test_control_group()
346 if (close(fds[2]) || close(fds[1]) || close(fds[0])) { in test_control_group_max_num_members()
401 if (close(fds[0]) || close(fds[1]) || close(fds[2])) { in test_unique_fanout_group_ids()
451 if (close(fds_udp[1][1]) || close(fds_udp[1][0]) || in test_datapath()
452 close(fds_udp[0][1]) || close(fds_udp[0][0]) || in test_datapath()
453 close(fds[1]) || close(fds[0])) { in test_datapath()
A Dreuseport_dualstack.c99 close(fd); in send_from_v4()
117 close(fd); in receive_once()
156 close(epfd); in test()
168 close(rcv_fds[i]); in main()
175 close(rcv_fds[i]); in main()
185 close(rcv_fds[i]); in main()
192 close(rcv_fds[i]); in main()
199 close(rcv_fds[i]); in main()
206 close(rcv_fds[i]); in main()
/linux/tools/testing/selftests/landlock/
A Dbase_test.c126 ASSERT_EQ(0, close(ruleset_fd)); in TEST()
163 ASSERT_EQ(0, close(ruleset_fd)); in TEST()
208 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST()
220 ASSERT_EQ(0, close(socket_fds[0])); in TEST()
221 ASSERT_EQ(0, close(ruleset_fd_tx)); in TEST()
231 ASSERT_EQ(0, close(socket_fds[1])); in TEST()
239 ASSERT_EQ(0, close(ruleset_fd_rx)); in TEST()
246 ASSERT_EQ(0, close(dir_fd)); in TEST()
251 ASSERT_EQ(0, close(socket_fds[1])); in TEST()
256 ASSERT_EQ(0, close(dir_fd)); in TEST()
[all …]
A Dfs_test.c257 if (close(fd) != 0) in test_open_rel()
313 ASSERT_EQ(0, close(ruleset_fd)); in TEST_F_FORK()
612 ASSERT_EQ(0, close(reg_fd)); in TEST_F_FORK()
619 ASSERT_EQ(0, close(reg_fd)); in TEST_F_FORK()
1473 ASSERT_EQ(0, close(dirfd)); in test_relative_path()
1516 ASSERT_EQ(0, close(src_fd)); in copy_binary()
1517 ASSERT_EQ(0, close(dst_fd)); in copy_binary()
2005 ASSERT_EQ(0, close(proc_fd)); in TEST_F_FORK()
2014 ASSERT_EQ(0, close(reg_fd)); in TEST_F_FORK()
2057 ASSERT_EQ(0, close(proc_fd)); in TEST_F_FORK()
[all …]
/linux/tools/testing/selftests/memfd/
A Dmemfd_test.c81 close(r); in mfd_fail_new()
664 close(fd); in test_create()
675 close(fd); in test_create()
679 close(fd); in test_create()
683 close(fd); in test_create()
724 close(fd); in test_basic()
735 close(fd); in test_basic()
761 close(fd); in test_seal_write()
801 close(fd); in test_seal_future_write()
827 close(fd); in test_seal_shrink()
[all …]
/linux/tools/testing/selftests/wireguard/qemu/
A Dinit.c79 close(fd); in seed_rng()
117 close(fd); in enable_logging()
123 close(fd); in enable_logging()
129 close(fd); in enable_logging()
205 close(fd); in launch_tests()
232 close(fd); in ensure_console()
248 close(fd); in clear_leaks()
261 close(fd); in check_leaks()
268 close(fd); in check_leaks()
/linux/tools/testing/selftests/bpf/
A Dtest_bpftool_synctypes.py118 def close(self): member in FileExtractor
122 self.reader.close()
466 map_info.close()
471 man_map_info.close()
498 bpf_info.close()
512 prog_info.close()
517 man_prog_info.close()
534 common_info.close()
539 cgroup_info.close()
547 bashcomp_info.close()
[all …]
A Dtest_tcp_check_syncookie_user.c44 close(fd); in start_server()
75 close(fd); in connect_to_server()
115 close(prog_fd); in get_map_fd_by_prog_id()
197 close(client); in run_test()
198 close(srv_client); in run_test()
253 close(server); in main()
254 close(server_v6); in main()
255 close(results); in main()
/linux/tools/testing/selftests/powerpc/mm/
A Dstack_expansion_signal.c82 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()
/linux/tools/testing/selftests/pidfd/
A Dpidfd_setns_test.c98 close(fd); in switch_timens()
185 close(ipc_sockets[0]); in FIXTURE_SETUP()
193 close(ipc_sockets[1]); in FIXTURE_SETUP()
199 close(ipc_sockets[1]); in FIXTURE_SETUP()
201 close(ipc_sockets[0]); in FIXTURE_SETUP()
214 close(ipc_sockets[0]); in FIXTURE_SETUP()
228 close(ipc_sockets[1]); in FIXTURE_SETUP()
230 close(ipc_sockets[0]); in FIXTURE_SETUP()
272 close(proc_fd); in FIXTURE_SETUP()
329 close(ns_fd2); in in_same_namespace()
[all …]
/linux/Documentation/userspace-api/media/cec/
A Dcec-func-close.rst4 .. _cec-func-close:
7 cec close()
13 cec-close - Close a cec device
22 .. c:function:: int close( int fd )
39 :c:func:`close()` returns 0 on success. On error, -1 is returned, and
/linux/Documentation/userspace-api/media/mediactl/
A Dmedia-func-close.rst4 .. _media-func-close:
7 media close()
13 media-close - Close a media device
22 .. c:function:: int close( int fd )
39 :c:func:`close()` returns 0 on success. On error, -1 is returned, and

Completed in 38 milliseconds

12345678910>>...60