Home
last modified time | relevance | path

Searched refs:as_c_str (Results 1 - 6 of 6) sorted by relevance

/third_party/rust/crates/rustix/src/path/
H A Ddec_int.rs46 // `u64`, and we add one for a NUL terminator for `as_c_str`.
80 pub fn as_c_str(&self) -> &CStr { in as_c_str() functions
H A Darg.rs913 Ok(Cow::Borrowed(self.as_c_str())) in to_string_lossy()
921 Ok(Cow::Owned(self.as_c_str().to_owned())) in to_string_lossy()
930 f(self.as_c_str()) in into_with_c_str()
/third_party/rust/crates/rustix/benches/
H A Dmod.rs63 std::ffi::CString::new("/").unwrap().as_c_str().as_ptr() as _,
/third_party/rust/crates/rustix/tests/path/
H A Darg.rs138 assert_eq!(cstr!("43110"), t.as_c_str()); in test_arg()
/third_party/rust/crates/nix/test/
H A Dtest_unistd.rs320 $(CString::new($pathname).unwrap().as_c_str(), )* in syscall_cstr_ref()
332 $(CString::new($pathname).unwrap().as_c_str(), )* in syscall_cstring()
405 execve_test_factory!(test_execve, execve, CString::new("/system/bin/sh").unwrap().as_c_str());
412 execve_test_factory!(test_execve, execve, CString::new("/bin/sh").unwrap().as_c_str());
420 execve_test_factory!(test_execve, execve, CString::new("/bin/sh").unwrap().as_c_str());
/third_party/rust/crates/serde/test_suite/tests/
H A Dtest_ser.rs587 assert_ser_tokens(cstring.as_c_str(), &[Token::Bytes(b"abc")]); in test_cstr()

Completed in 5 milliseconds