devela::_dep::nc

Function setdomainname

pub unsafe fn setdomainname<P>(name: P) -> Result<(), i32> 
where P: AsRef<Path>,
Available on crate feature dep_nc only.
Expand description

Set NIS domain name.

§Examples

let name = "local-rust-domain";
let ret = unsafe { nc::setdomainname(name) };
assert!(ret.is_err());
assert_eq!(ret, Err(nc::EPERM));