Searched refs:new_fd (Results 1 – 2 of 2) sorted by relevance
/tools/testing/selftests/bpf/ |
D | test_select_reuseport.c | 400 int new_fd = accept(srv_fd, NULL, 0); in do_test() local 402 CHECK(new_fd == -1, "accept(srv_fd)", in do_test() 404 ev.data.u32, new_fd, errno); in do_test() 406 nread = recv(new_fd, &rcv_cmd, sizeof(rcv_cmd), MSG_DONTWAIT); in do_test() 412 close(new_fd); in do_test()
|
/tools/lib/bpf/ |
D | libbpf.c | 1888 int new_fd, err; in bpf_map__reuse_fd() local 1899 new_fd = open("/", O_RDONLY | O_CLOEXEC); in bpf_map__reuse_fd() 1900 if (new_fd < 0) { in bpf_map__reuse_fd() 1905 new_fd = dup3(fd, new_fd, O_CLOEXEC); in bpf_map__reuse_fd() 1906 if (new_fd < 0) { in bpf_map__reuse_fd() 1918 map->fd = new_fd; in bpf_map__reuse_fd() 1931 close(new_fd); in bpf_map__reuse_fd()
|