X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=original%2Fman2%2Fgetdomainname.2;h=4f949d1c982a6c5f4e91ef2d5e7cb0fbe34e2d7b;hb=361fd72f831aabd8a0aa6fe7bc4ef66ef4f89a1b;hp=0e24b188be52526cffe63525bfcc3042ec42b1f4;hpb=c03a7a882c608ebf399d1b044ce7a6daa922351a;p=linuxjm%2FLDP_man-pages.git diff --git a/original/man2/getdomainname.2 b/original/man2/getdomainname.2 index 0e24b188..4f949d1c 100644 --- 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) .\" +.\" %%%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. @@ -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. +.\" %%%LICENSE_END .\" -.\" Modified 1997-08-25 by Nicolás Lichtmaier +.\" Modified 1997-08-25 by Nicolás Lichtmaier .\" Modified 2004-06-17 by Michael Kerrisk .\" 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 .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,15 @@ 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.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/.