Mercurial > hg > octave-lojdl > gnulib-hg
changeset 4734:e73a97963451
Fix comment.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 25 Sep 2003 11:01:25 +0000 |
parents | dbe204edd79d |
children | f92ded1bb871 |
files | lib/getdomainname.c lib/getdomainname.h lib/xgetdomainname.c lib/xgetdomainname.h |
diffstat | 4 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/getdomainname.c +++ b/lib/getdomainname.c @@ -30,7 +30,8 @@ /* Return the NIS domain name of the machine. WARNING! The NIS domain name is unrelated to the fully qualified host name of the machine. It is also unrelated to email addresses. - WARNING! The NIS domain name is usually the empty string when not using NIS. + WARNING! The NIS domain name is usually the empty string or "(none)" when + not using NIS. Put up to LEN bytes of the NIS domain name into NAME. Null terminate it if the name is shorter than LEN.
--- a/lib/getdomainname.h +++ b/lib/getdomainname.h @@ -30,7 +30,8 @@ /* Return the NIS domain name of the machine. WARNING! The NIS domain name is unrelated to the fully qualified host name of the machine. It is also unrelated to email addresses. - WARNING! The NIS domain name is usually the empty string when not using NIS. + WARNING! The NIS domain name is usually the empty string or "(none)" when + not using NIS. Put up to LEN bytes of the NIS domain name into NAME. Null terminate it if the name is shorter than LEN.
--- a/lib/xgetdomainname.c +++ b/lib/xgetdomainname.c @@ -39,7 +39,8 @@ /* Return the NIS domain name of the machine, in malloc'd storage. WARNING! The NIS domain name is unrelated to the fully qualified host name of the machine. It is also unrelated to email addresses. - WARNING! The NIS domain name is usually the empty string when not using NIS. + WARNING! The NIS domain name is usually the empty string or "(none)" when + not using NIS. If malloc fails, exit. Upon any other failure, set errno and return NULL. */ char *
--- a/lib/xgetdomainname.h +++ b/lib/xgetdomainname.h @@ -21,7 +21,8 @@ /* Return the NIS domain name of the machine, in malloc'd storage. WARNING! The NIS domain name is unrelated to the fully qualified host name of the machine. It is also unrelated to email addresses. - WARNING! The NIS domain name is usually the empty string when not using NIS. + WARNING! The NIS domain name is usually the empty string or "(none)" when + not using NIS. If malloc fails, exit. Upon any other failure, set errno and return NULL. */ extern char *xgetdomainname (void);