Home
last modified time | relevance | path

Searched refs:ctl_fd (Results 1 – 2 of 2) 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/ltp/lib/
Dtst_device.c72 int ctl_fd, dev_fd, rc, i; in find_free_loopdev() local
76 ctl_fd = open(LOOP_CONTROL_FILE, O_RDWR); in find_free_loopdev()
78 if (ctl_fd > 0) { in find_free_loopdev()
79 rc = ioctl(ctl_fd, LOOP_CTL_GET_FREE); in find_free_loopdev()
80 close(ctl_fd); in find_free_loopdev()