Home
last modified time | relevance | path

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

/external/swiftshader/src/Vulkan/Debug/
DFile.cpp125 auto pathstr = path; in createPhysical() local
126 auto pos = pathstr.rfind("/"); in createPhysical()
129 auto dir = pathstr.substr(0, pos); in createPhysical()
130 auto name = pathstr.substr(pos + 1); in createPhysical()
/external/libpcap/
Dpcap-linux.c432 char *pathstr; in get_mac80211_phydev() local
438 if (asprintf(&pathstr, "/sys/class/net/%s/phy80211", device) == -1) { in get_mac80211_phydev()
444 bytes_read = readlink(pathstr, phydev_path, phydev_max_pathlen); in get_mac80211_phydev()
451 free(pathstr); in get_mac80211_phydev()
455 errno, "%s: Can't readlink %s", device, pathstr); in get_mac80211_phydev()
456 free(pathstr); in get_mac80211_phydev()
459 free(pathstr); in get_mac80211_phydev()
1550 char *pathstr; in get_if_flags() local
1552 if (asprintf(&pathstr, "/sys/class/net/%s/type", name) == -1) { in get_if_flags()
1559 fh = fopen(pathstr, "r"); in get_if_flags()
[all …]
/external/python/cpython3/Lib/
Dmailcap.py49 pathstr = os.environ['MAILCAPS']
50 mailcaps = pathstr.split(os.pathsep)
/external/python/cpython2/Python/
Dimport.c2359 static PyObject *pathstr = NULL; in get_parent() local
2372 if (pathstr == NULL) { in get_parent()
2373 pathstr = PyString_InternFromString("__path__"); in get_parent()
2374 if (pathstr == NULL) in get_parent()
2416 modpath = PyDict_GetItem(globals, pathstr); in get_parent()
/external/python/cpython3/Lib/test/
Dtest_pathlib.py261 for pathstr in ('a', 'a/b', 'a/b/c', '/', '/a/b', '/a/b/c'):
262 self._check_str(pathstr, (pathstr,))
269 for pathstr in ('a', 'a/b', 'a/b/c', '/', '/a/b', '/a/b/c'):
270 self.assertEqual(P(pathstr).as_posix(), pathstr)
286 for pathstr in ('a', 'a/b', 'a/b/c', '/', '/a/b', '/a/b/c'):
287 p = self.cls(pathstr)