Home
last modified time | relevance | path

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

/external/valgrind/coregrind/
Dvgdb-invoker-solaris.c83 static int ctl_fd = -1; variable
135 ctl_fd = open(procname, O_WRONLY, 0); in attach()
136 if (ctl_fd < 0) { in attach()
148 ssize_t written = write(ctl_fd, (void *) &ctl, bytes); in attach()
159 written = write(ctl_fd, (void *) &ctl, bytes); in attach()
205 if (ctl_fd != -1) { in detach()
206 close(ctl_fd); in detach()
207 ctl_fd = -1; in detach()
373 assert(ctl_fd != -1); in invoke_agent()
382 ssize_t written = write(ctl_fd, (void *) &ctl, bytes); in invoke_agent()
/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.c71 int ctl_fd, dev_fd, rc, i; in find_free_loopdev() local
75 ctl_fd = open(LOOP_CONTROL_FILE, O_RDWR); in find_free_loopdev()
77 if (ctl_fd > 0) { in find_free_loopdev()
78 rc = ioctl(ctl_fd, LOOP_CTL_GET_FREE); in find_free_loopdev()
79 close(ctl_fd); in find_free_loopdev()