Copyright (C) 2000-2012 |
Manpages GETDOMAINNAMESection: Linux Programmer's Manual (2)Updated: 1997-08-25 Index Return to Main Contents NAMEgetdomainname, setdomainname - get/set domain nameSYNOPSIS#include <unistd.h>
int getdomainname(char *name, size_t len);
DESCRIPTIONThese 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 VALUEOn success, zero is returned. On error, -1 is returned, and errno is set appropriately.ERRORS
CONFORMING TOPOSIX does not specify these calls.SEE ALSOgethostname(2), sethostname(2), uname(2)
IndexThis document was created by man2html, using the manual pages. Time: 07:24:53 GMT, April 23, 2024 |