Lines Matching refs:cstr
179 let res = path.with_nix_path(|cstr| unsafe {
180 libc::mknod(cstr.as_ptr(), kind.bits | perm.bits() as mode_t, dev)
201 let res = path.with_nix_path(|cstr| unsafe {
204 cstr.as_ptr(),
241 let res = path.with_nix_path(|cstr| unsafe {
242 libc::stat(cstr.as_ptr(), dst.as_mut_ptr())
252 let res = path.with_nix_path(|cstr| unsafe {
253 libc::lstat(cstr.as_ptr(), dst.as_mut_ptr())
278 let res = pathname.with_nix_path(|cstr| unsafe {
281 cstr.as_ptr(),
338 let res = path.with_nix_path(|cstr| unsafe {
341 cstr.as_ptr(),
366 let res = path.with_nix_path(|cstr| unsafe {
367 libc::utimes(cstr.as_ptr(), ×[0])
398 let res = path.with_nix_path(|cstr| unsafe {
399 libc::lutimes(cstr.as_ptr(), ×[0])
456 let res = path.with_nix_path(|cstr| unsafe {
459 cstr.as_ptr(),
475 let res = path.with_nix_path(|cstr| unsafe {
476 libc::mkdirat(fd, cstr.as_ptr(), mode.bits() as mode_t)