Home
last modified time | relevance | path

Searched refs:path_bytes (Results 1 – 4 of 4) sorted by relevance

/third_party/rust/crates/rustix/src/backend/libc/net/
Dread_sockaddr.rs146 let path_bytes = if cfg!(target_os = "freebsd") { in read_sockaddr() localVariable
165 SocketAddrUnix::new(path_bytes.iter().map(|c| *c as u8).collect::<Vec<u8>>()) in read_sockaddr()
239 let path_bytes = &decode.sun_path[..len - 1 - offsetof_sun_path]; in inner_read_sockaddr_os() localVariable
245 let path_bytes = &path_bytes[..path_bytes.iter().position(|b| *b == 0).unwrap()]; in inner_read_sockaddr_os() localVariable
248 SocketAddrUnix::new(path_bytes.iter().map(|c| *c as u8).collect::<Vec<u8>>()) in inner_read_sockaddr_os()
/third_party/python/Python/
Dfileutils.c1671 const char *path_bytes; in _Py_fopen_obj() local
1677 path_bytes = PyBytes_AS_STRING(bytes); in _Py_fopen_obj()
1686 f = fopen(path_bytes, mode); in _Py_fopen_obj()
/third_party/python/Lib/test/
Dtest_os.py4307 path_bytes = os.fsencode(self.path)
4308 entries = list(os.scandir(path_bytes))
4320 path_bytes = cls(os.fsencode(self.path))
4322 entries = list(os.scandir(path_bytes))
/third_party/python/Objects/
Dunicodeobject.c4196 PyObject *path_bytes = NULL; in PyUnicode_FSDecoder() local
4205 path_bytes = PyBytes_FromObject(path); in PyUnicode_FSDecoder()
4207 if (!path_bytes) { in PyUnicode_FSDecoder()
4210 output = PyUnicode_DecodeFSDefaultAndSize(PyBytes_AS_STRING(path_bytes), in PyUnicode_FSDecoder()
4211 PyBytes_GET_SIZE(path_bytes)); in PyUnicode_FSDecoder()
4212 Py_DECREF(path_bytes); in PyUnicode_FSDecoder()