Home
last modified time | relevance | path

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

/external/chromium_org/sandbox/linux/services/
Dcredentials.cc178 int proc_self_fd = openat(proc_fd, "self/fd", O_DIRECTORY | O_RDONLY); in CountOpenFds() local
179 PCHECK(0 <= proc_self_fd); in CountOpenFds()
183 ScopedDIR dir(fdopendir(proc_self_fd)); in CountOpenFds()
196 if (fd_num == proc_fd || fd_num == proc_self_fd) { in CountOpenFds()
206 int proc_self_fd = -1; in HasOpenDirectory() local
208 proc_self_fd = openat(proc_fd, "self/fd", O_DIRECTORY | O_RDONLY); in HasOpenDirectory()
210 proc_self_fd = openat(AT_FDCWD, "/proc/self/fd", O_DIRECTORY | O_RDONLY); in HasOpenDirectory()
211 if (proc_self_fd < 0) { in HasOpenDirectory()
224 PCHECK(0 <= proc_self_fd); in HasOpenDirectory()
228 ScopedDIR dir(fdopendir(proc_self_fd)); in HasOpenDirectory()
[all …]