Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
setdomainname(2)
Edit
PageHistory
Diff
Info
LikePages
GETDOMAINNAME !!!GETDOMAINNAME NAME SYNOPSIS DESCRIPTION RETURN VALUE ERRORS CONFORMING TO SEE ALSO ---- !!NAME getdomainname, setdomainname - get/set domain name !!SYNOPSIS __#include __ __int getdomainname(char *__''name''__, size_t__ ''len''__); int setdomainname(const char *__''name''__, size_t__ ''len''__);__ !!DESCRIPTION These functions are used to access or to change the domain name of the current processor. If the NUL-terminated domain name requires more than ''len'' bytes, __getdomainname__ returns the first ''len'' bytes (glibc) or returns an error (libc). !!RETURN VALUE On success, zero is returned. On error, -1 is returned, and ''errno'' is set appropriately. !!ERRORS __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. !!CONFORMING TO POSIX does not specify these calls. !!SEE ALSO gethostname(2), sethostname(2), uname(2) ----
5 pages link to
setdomainname(2)
:
uname(2)
Man2s
gethostname(2)
sethostname(2)
syscalls(2)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.