Searched refs:nsPath (Results 1 – 2 of 2) sorted by relevance
/device/generic/goldfish/wifi/execns/ |
D | execns.cpp | 93 char nsPath[PATH_MAX]; in readNamespacePid() local 94 snprintf(nsPath, sizeof(nsPath), "%s/%s.pid", kNetNsDir, ns); in readNamespacePid() 96 File file(::fopen(nsPath, "r")); in readNamespacePid() 99 nsPath, ns, strerror(errno)); in readNamespacePid() 112 LOGE("File %s does not contain a valid pid '%s'", nsPath, buffer); in readNamespacePid() 114 LOGE("Error reading from file %s: %s", nsPath, strerror(errno)); in readNamespacePid() 116 LOGE("Invalid contents of pid file %s", nsPath); in readNamespacePid() 134 char nsPath[PATH_MAX]; in setNetworkNamespace() local 135 snprintf(nsPath, sizeof(nsPath), "/proc/%s/ns/net", pid.c_str()); in setNetworkNamespace() 137 FileDescriptor nsFd(open(nsPath, O_RDONLY | O_CLOEXEC)); in setNetworkNamespace() [all …]
|
/device/generic/goldfish/wifi/createns/ |
D | createns.cpp | 80 std::vector<char> nsPath(sizeof(kNamespacePath) + len); in getNamespacePath() local 81 size_t totalSize = strlcpy(nsPath.data(), kNamespacePath, nsPath.size()); in getNamespacePath() 82 if (totalSize >= nsPath.size()) { in getNamespacePath() 88 totalSize = strlcat(nsPath.data(), name, nsPath.size()); in getNamespacePath() 89 if (totalSize >= nsPath.size()) { in getNamespacePath() 95 return nsPath.data(); in getNamespacePath()
|