OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man2 / getdomainname.2
index 0e24b18..c05e84f 100644 (file)
@@ -1,7 +1,6 @@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" 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.
 .\"
 .\" 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
 .\"
-.TH GETDOMAINNAME 2 2009-09-27 "Linux" "Linux Programmer's Manual"
+.TH GETDOMAINNAME 2 2012-10-25 "Linux" "Linux Programmer's Manual"
 .SH NAME
-getdomainname, setdomainname \- get/set domain name
+getdomainname, setdomainname \- get/set NIS domain name
 .SH SYNOPSIS
 .B #include <unistd.h>
 .sp
@@ -49,7 +49,7 @@ _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
 .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 ()
@@ -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).
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 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.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
 POSIX does not specify these calls.
 .\" But they appear on most systems...
 .SH NOTES
@@ -124,7 +124,16 @@ as a library function that returns a copy of the
 .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)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.