EINVAL | For getdomainname under libc: name is NULL or name is longer than len bytes. |
EINVAL | For setdomainname: len was negative or too large. |
EPERM | For setdomainname: the caller was not the superuser. |
EFAULT | For setdomainname: name pointed outside of user address space. |
|