Home
last modified time | relevance | path

Searched refs:ctl_fd (Results 1 – 3 of 3) sorted by relevance

/external/openssh/openbsd-compat/
Dport-solaris.c144 int r, ctl_fd = -1, stat_fd = -1; in solaris_contract_post_fork_parent() local
174 if ((ctl_fd = open64(ctl_path, O_WRONLY)) < 0) { in solaris_contract_post_fork_parent()
179 if (ct_ctl_abandon(ctl_fd) < 0) { in solaris_contract_post_fork_parent()
184 close(ctl_fd); in solaris_contract_post_fork_parent()
194 if (ctl_fd != -1) in solaris_contract_post_fork_parent()
195 close(ctl_fd); in solaris_contract_post_fork_parent()
/external/ltp/lib/
Dtst_device.c73 int ctl_fd, dev_fd, rc, i; in find_free_loopdev() local
77 ctl_fd = open(LOOP_CONTROL_FILE, O_RDWR); in find_free_loopdev()
79 if (ctl_fd > 0) { in find_free_loopdev()
80 rc = ioctl(ctl_fd, LOOP_CTL_GET_FREE); in find_free_loopdev()
81 close(ctl_fd); in find_free_loopdev()
/external/linux-kselftest/tools/testing/selftests/cgroup/
Dtest_memcontrol.c822 int sk, client_sk, ctl_fd, yes = 1, ret = -1; in tcp_server() local
825 ctl_fd = srv_args->ctl[1]; in tcp_server()
839 write(ctl_fd, &errno, sizeof(errno)); in tcp_server()
847 if (write(ctl_fd, &ret, sizeof(ret)) != sizeof(ret)) { in tcp_server()