Penguin
Blame: setdomainname(2)
EditPageHistoryDiffInfoLikePages
Annotated edit history of setdomainname(2) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 GETDOMAINNAME
2 !!!GETDOMAINNAME
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 ERRORS
8 CONFORMING TO
9 SEE ALSO
10 ----
11 !!NAME
12
13
14 getdomainname, setdomainname - get/set domain name
15 !!SYNOPSIS
16
17
18 __#include __
19
20
21 __int getdomainname(char *__''name''__, size_t__
22 ''len''__);
23 int setdomainname(const char *__''name''__, size_t__
24 ''len''__);__
25 !!DESCRIPTION
26
27
28 These functions are used to access or to change the domain
29 name of the current processor. If the NUL-terminated domain
30 name requires more than ''len'' bytes,
31 __getdomainname__ returns the first ''len'' bytes
32 (glibc) or returns an error (libc).
33 !!RETURN VALUE
34
35
36 On success, zero is returned. On error, -1 is returned, and
37 ''errno'' is set appropriately.
38 !!ERRORS
39
40
41 __EINVAL__
42
43
44 For __getdomainname__ under libc: ''name'' is
45 __NULL__ or ''name'' is longer than ''len''
46 bytes.
47
48
49 __EINVAL__
50
51
52 For __setdomainname__: ''len'' was negative or too
53 large.
54
55
56 __EPERM__
57
58
59 For __setdomainname__: the caller was not the
60 superuser.
61
62
63 __EFAULT__
64
65
66 For __setdomainname__: ''name'' pointed outside of
67 user address space.
68 !!CONFORMING TO
69
70
71 POSIX does not specify these calls.
72 !!SEE ALSO
73
74
75 gethostname(2), sethostname(2),
76 uname(2)
77 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.