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 | 463 int pidFd; in remountUid() local 488 pidFd = -1; in remountUid() 491 pidFd = openat(dirfd(dir), de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in remountUid() 492 if (pidFd < 0) { in remountUid() 495 if (fstat(pidFd, &sb) != 0) { in remountUid() 505 if (!android::vold::Readlinkat(pidFd, "ns/mnt", &pidName)) { in remountUid() 524 if (!android::vold::Readlinkat(pidFd, "exe", &exeName)) { in remountUid() 536 nsFd = openat(pidFd, "ns/mnt", O_RDONLY); in remountUid() 594 close(pidFd); in remountUid()
|