Lines Matching defs:procfd
98 static int read_mounts(int procfd, struct mount **mp, size_t *countp) {
114 fd = openat(procfd, "self/mounts", O_RDONLY);
164 int i, procfd, ctmntfd;
192 procfd = open("/proc", O_RDONLY | O_DIRECTORY | O_PATH);
193 if (procfd < 0) {
203 close(procfd);
211 close(procfd);
216 /* Now read [[procfd]]/self/mounts */
217 if (!read_mounts(procfd, &mounts, &count)) {
220 close(procfd);
223 close(procfd);