Set the domain name of the current host
#include <unistd.h> int setdomainname( const char * name, size_t namelen );
libsocket
Use the -l socket option to qcc to link against this library.
The setdomainname() function sets the domain name of the host machine. Only the superuser (root) can use this function and even then, the function is normally used only when bootstrapping a system.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |