Lines Matching defs:new
81 /// Directories with the SUID bit set chown new files to their own
129 fn new(error: Error, errmsg: Option<&CStr>) -> Self {
175 /// # let ctl = ::sysctl::Ctl::new("vfs.usermount").unwrap();
186 /// let fstype = CString::new("fstype").unwrap();
187 /// let nullfs = CString::new("nullfs").unwrap();
188 /// Nmount::new()
270 /// let name = CString::new("flags").unwrap();
273 /// let mut nmount = Nmount::new();
294 /// let read_only = CString::new("ro").unwrap();
295 /// Nmount::new()
317 /// let mut nmount: Nmount<'static> = Nmount::new();
336 /// let fstype = CString::new("fstype").unwrap();
337 /// let nullfs = CString::new("nullfs").unwrap();
338 /// Nmount::new()
358 /// let mountpoint = Path::new("/mnt");
359 /// Nmount::new()
372 /// Create a new `Nmount` struct with no options
373 pub fn new() -> Self {
407 Err(NmountError::new(error, errmsg))