Lines Matching refs:error
306 /// is no error case that needs to be handled.
315 /// There is always a parent pid to return, so there is no error case that needs
319 Pid(unsafe { libc::getppid() }) // no error handling, according to man page: "These functions are always successful."
406 /// No error handling is required as a thread id should always exist for any
671 // and double the buffer size upon every error
678 let error = Errno::last();
680 if error != Errno::ERANGE {
681 return Err(error);
981 /// On some systems, the host name is limited to as few as 64 bytes. An error
1583 /// # use std::error::Error;
1639 /// error of `EINVAL` if the number of groups to be fetched exceeds the
1643 /// will only ever return the complete list or else an error.
1708 /// # use std::error::Error;
2011 /// Pathname components longer than {NAME_MAX} generate an error.
2058 /// - `Err(x)`: an error occurred
2095 /// - `Err(x)`: an error occurred
2724 /// - `Err(x)`: an error occurred
2786 /// * returns: Ok or libc error code.
2802 /// * returns: Ok or libc error code.
2852 /// - `Err(x)`: libc error code on failure.
2871 /// - `Err(x)`: libc error code on failure.
3127 let error = f(pwd.as_mut_ptr(), cbuf.as_mut_ptr(), cbuf.capacity(), &mut res);
3128 if error == 0 {
3251 let error = f(grp.as_mut_ptr(), cbuf.as_mut_ptr(), cbuf.capacity(), &mut res);
3252 if error == 0 {