Lines Matching refs:CString
24 use std::ffi::CString;
288 let user = CString::new("root").unwrap(); in test_initgroups()
320 $(CString::new($pathname).unwrap().as_c_str(), )*
332 $(CString::new($pathname).unwrap().as_c_str(), )*
333 &[CString::from(CStr::from_bytes_with_nul(EMPTY).unwrap()),
334 CString::from(CStr::from_bytes_with_nul(DASH_C).unwrap()),
335 CString::from(CStr::from_bytes_with_nul(BIGARG).unwrap())],
336 &[CString::from(CStr::from_bytes_with_nul(FOO).unwrap()),
337 CString::from(CStr::from_bytes_with_nul(BAZ).unwrap())]
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());
426 execve_test_factory!(test_execvpe, execvpe, &CString::new("sh").unwrap());