Searched refs:pidFd (Results 1 – 2 of 2) sorted by relevance
/system/netd/server/ |
D | Process.cpp | 95 Fd pidFd = open(pidFile.c_str(), PID_FILE_FLAGS, PID_FILE_MODE); in writePidFile() local 96 if (pidFd.get() == -1) { in writePidFile() 101 const UniqueFd autoClosePidFile(pidFd); in writePidFile() 105 if (fchmod(pidFd.get(), PID_FILE_MODE) == -1) { in writePidFile() 111 const auto rval = sys.write(pidFd, makeSlice(pid_buf)); in writePidFile()
|
/system/vold/ |
D | VolumeManager.cpp | 586 int pidFd; in scanProcProcesses() local 611 pidFd = -1; in scanProcProcesses() 614 pidFd = openat(dirfd(dir), de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in scanProcProcesses() 615 if (pidFd < 0) { in scanProcProcesses() 618 if (fstat(pidFd, &sb) != 0) { in scanProcProcesses() 630 if (!android::vold::Readlinkat(pidFd, "ns/mnt", &pidName)) { in scanProcProcesses() 649 if (!android::vold::Readlinkat(pidFd, "exe", &exeName)) { in scanProcProcesses() 659 nsFd = openat(pidFd, "ns/mnt", O_RDONLY); in scanProcProcesses() 672 close(pidFd); in scanProcProcesses()
|