OSDN Git Service
(root)
/
linuxjm
/
LDP_man-pages.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git]
/
original
/
man2
/
getdomainname.2
diff --git
a/original/man2/getdomainname.2
b/original/man2/getdomainname.2
index
0e24b18
..
4f949d1
100644
(file)
--- a/
original/man2/getdomainname.2
+++ b/
original/man2/getdomainname.2
@@
-1,7
+1,6
@@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
.\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
.\"
.\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
@@
-21,14
+20,15
@@
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
.\"
-.\" Modified 1997-08-25 by Nicol
á
s Lichtmaier <nick@debian.org>
+.\" Modified 1997-08-25 by Nicol
á
s Lichtmaier <nick@debian.org>
.\" Modified 2004-06-17 by Michael Kerrisk <mtk.manpages@gmail.com>
.\" Modified 2008-11-27 by mtk
.\"
.\" Modified 2004-06-17 by Michael Kerrisk <mtk.manpages@gmail.com>
.\" Modified 2008-11-27 by mtk
.\"
-.TH GETDOMAINNAME 2 20
09-09-27
"Linux" "Linux Programmer's Manual"
+.TH GETDOMAINNAME 2 20
12-10-25
"Linux" "Linux Programmer's Manual"
.SH NAME
.SH NAME
-getdomainname, setdomainname \- get/set domain name
+getdomainname, setdomainname \- get/set
NIS
domain name
.SH SYNOPSIS
.B #include <unistd.h>
.sp
.SH SYNOPSIS
.B #include <unistd.h>
.sp
@@
-49,7
+49,7
@@
_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
.RE
.ad
.SH DESCRIPTION
.RE
.ad
.SH DESCRIPTION
-These functions are used to access or to change the domain name of the
+These functions are used to access or to change the
NIS
domain name of the
host system.
.BR setdomainname ()
host system.
.BR setdomainname ()
@@
-72,7
+72,7
@@
bytes.
If the null-terminated domain name requires more than \fIlen\fP bytes,
.BR getdomainname ()
returns the first \fIlen\fP bytes (glibc) or gives an error (libc).
If the null-terminated domain name requires more than \fIlen\fP bytes,
.BR getdomainname ()
returns the first \fIlen\fP bytes (glibc) or gives an error (libc).
-.SH
"RETURN VALUE"
+.SH
RETURN VALUE
On success, zero is returned.
On error, \-1 is returned, and
.I errno
On success, zero is returned.
On error, \-1 is returned, and
.I errno
@@
-107,7
+107,7
@@
is NULL or
is longer than
.I len
bytes.
is longer than
.I len
bytes.
-.SH
"CONFORMING TO"
+.SH
CONFORMING TO
POSIX does not specify these calls.
.\" But they appear on most systems...
.SH NOTES
POSIX does not specify these calls.
.\" But they appear on most systems...
.SH NOTES
@@
-124,7
+124,15
@@
as a library function that returns a copy of the
.I domainname
field returned from a call to
.BR uname (2).
.I domainname
field returned from a call to
.BR uname (2).
-.SH
"SEE ALSO"
+.SH
SEE ALSO
.BR gethostname (2),
.BR sethostname (2),
.BR uname (2)
.BR gethostname (2),
.BR sethostname (2),
.BR uname (2)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.