Penguin
Blame: getdomainname(2)
EditPageHistoryDiffInfoLikePages
Annotated edit history of getdomainname(2) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 !!NAME
2 PerryLorier 2 getdomainname -- get domain name
1 perry 3 !!SYNOPSIS
4
2 PerryLorier 5 __#include <unistd.h>__
1 perry 6
2 PerryLorier 7 __int getdomainname(char *__''name''__, size_t__ ''len''__);__
1 perry 8 !!DESCRIPTION
2 PerryLorier 9 This function is used to access or to change the domain name of the current machine. If the NUL-terminated domain name requires more than ''len'' bytes, getdomainname(2) returns the first ''len'' bytes (glibc) or returns an error (libc).
1 perry 10
11 !!RETURN VALUE
2 PerryLorier 12 On success, zero is returned. On error, -1 is returned, and ''errno'' is set appropriately.
1 perry 13
14 !!ERRORS
2 PerryLorier 15 ;[EINVAL]: Under libc: ''name'' is __NULL__ or ''name'' is longer than ''len'' bytes.
1 perry 16
17 !!CONFORMING TO
2 PerryLorier 18 [POSIX.1] does not specify these calls. [POSIX.3] does. Who knows about [POSIX.2]
1 perry 19
20 !!SEE ALSO
2 PerryLorier 21 getdomainname(2), gethostname(2), sethostname(2), uname(2)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 5 times)