int
getdomainname(char *name, size_t namelen)
int
setdomainname(const char *name, size_t namelen)
)
returns the standard domain name for the current processor, as
previously set by
setdomainname().
The parameter
namelen
specifies the size of the
name
array.
The returned name is null-terminated unless insufficient
space is provided.
setdomainname()
sets the domain name of the host machine to be
name,
which has length
namelen.
This call is restricted to the super-user and
is normally used only when the system is bootstrapped.
EFAULT]name
or
namelen
parameter gave an
invalid address.
EPERM]MAXHOSTNAMELEN
(from
sys/param.h<.blm Pp) >
characters including null-termination, currently 256.