Imported tab->space correction by redhat
[infodrom/manpages-de] / man2 / getdomainname.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one
13 .\" 
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\" 
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" German translation by René Tschirley (gremlin@cs.tu-berlin.de)
26 .\" Modified Mon Jun 10 12:14:38 1996 by Martin Schulze (joey@linux.de)
27 .\"
28 .TH GETDOMAINNAME 2 "22. Juli 1993" "Linux 0.99.11" "Systemaufrufe"
29 .SH BEZEICHNUNG
30 getdomainname, setdomainname \- hole/setze Domainname
31 .SH ÜBERSICHT
32 .B #include <unistd.h>
33 .sp
34 .BI "int getdomainname(char *" name ", size_t " len );
35 .br
36 .BI "int setdomainname(const char *" name ", size_t " len );
37 .SH BESCHREIBUNG
38 Diese Funktionen werden dazu benutzt, den Domainnamen des Systems
39 abzufragen oder zu setzen.
40 .SH "RÜCKGABEWERT"
41 Bei Erfolg wird 0 geliefert, bei aufgetretenem Fehler -1 und 
42 .I errno
43 wird entsprechend gesetzt.
44 .SH FEHLER
45 .TP
46 .B EINVAL
47 Bei
48 .BR getdomainname 
49 zeigt
50 .I name
51 auf
52 .B NULL
53 oder
54 .I name
55 ist länger als
56 .IR len .
57 .TP
58 .B EPERM
59 Bei
60 .BR setdomainname 
61 war der Aufrufende nicht der Superuser.
62 .TP
63 .B EINVAL
64 Bei
65 .BR setdomainname 
66 war
67 .I len
68 zu lang.
69 .SH "KOMPATIBEL ZU"
70 Diese Funktionen sind nicht nach POSIX spezifiziert worden.
71 .SH BUGS
72 .B getdomainname
73 ist nicht analog zu anderen Implementationen, die stets 
74 .I len
75 Bytes liefern, auch wenn 
76 .I name
77 länger ist.  Linux liefert in solchen Fällen
78 .B EINVAL
79 (wie bei DLL 4.4.1 Libraries).
80 .SH ANMERKUNGEN
81 Unter Linux ist
82 .B getdomainname
83 auf Libraryebene durch einen Aufruf von
84 .BR uname (2)
85 realisiert.
86 .SH "SIEHE AUCH"
87 .BR gethostname (2),
88 .BR sethostname (2),
89 .BR uname (2).
90