Lines Matching refs:path
99 std::string path = getNamespacePath(name); in writeNamespacePid() local
100 if (path.empty()) { in writeNamespacePid()
103 path += ".pid"; in writeNamespacePid()
105 Fd fd(::open(path.c_str(), in writeNamespacePid()
109 ALOGE("Unable to create file '%s': %s", path.c_str(), strerror(errno)); in writeNamespacePid()
125 removeFile(path.c_str()); in writeNamespacePid()
138 path.c_str(), strerror(errno)); in writeNamespacePid()
139 removeFile(path.c_str()); in writeNamespacePid()
237 std::string path = getNamespacePath(argv[1]); in main() local
238 if (path.empty()) { in main()
243 Fd fd(::open(path.c_str(), O_CREAT | O_TRUNC | O_RDONLY | O_CLOEXEC, in main()
246 ALOGE("Failed to open file %s: %s", path.c_str(), strerror(errno)); in main()
250 if (::mount(kProcNsNet, path.c_str(), nullptr, MS_BIND, nullptr) != 0) { in main()
253 path.c_str(), in main()
256 removeFile(path.c_str()); in main()