]> git.saurik.com Git - apple/libc.git/blame - gen/FreeBSD/gethostname.3.patch
Libc-763.11.tar.gz
[apple/libc.git] / gen / FreeBSD / gethostname.3.patch
CommitLineData
1f2f436a
A
1--- gethostname.3.orig 2010-04-28 23:38:49.000000000 -0700
2+++ gethostname.3 2010-04-28 23:47:57.000000000 -0700
3@@ -56,7 +56,7 @@ argument
224c7076
A
4 specifies the size of the
5 .Fa name
6 array.
7-The returned name is null-terminated unless insufficient space is provided.
8+The returned name is null-terminated, unless insufficient space is provided.
9 .Pp
10 The
11 .Fn sethostname
1f2f436a
A
12@@ -68,8 +68,8 @@ which has length
13 This call is restricted to the super-user and
14 is normally used only when the system is bootstrapped.
15 .Pp
16-Host names are limited to
17-.Brq Dv HOST_NAME_MAX
18+Host names are limited in length to
19+.Brq Dv sysconf(_SC_HOST_NAME_MAX)
20 characters, not including the trailing null, currently 255.
21 .Sh RETURN VALUES
22 .Rv -std
23@@ -101,7 +101,7 @@ The
24 function conforms to
25 .St -p1003.1-2001 .
26 Callers should be aware that
27-.Brq Dv HOST_NAME_MAX
28+.Brq Dv sysconf(_SC_HOST_NAME_MAX)
29 may be variable or infinite, but is guaranteed to be no less than
30 .Brq Dv _POSIX_HOST_NAME_MAX .
31 On older systems, this limit was defined in the non-standard header