FreeBSD Bugzilla – Attachment 103535 Details for
Bug 143472
gethostname(3) references undefined value: HOST_NAME_MAX
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
gethostname.diff
gethostname.diff (text/plain), 799 bytes, created by
Rebecca Cran
on 2011-02-12 21:34:14 UTC
(
hide
)
Description:
gethostname.diff
Filename:
MIME Type:
Creator:
Rebecca Cran
Created:
2011-02-12 21:34:14 UTC
Size:
799 bytes
patch
obsolete
>Index: gen/gethostname.3 >=================================================================== >--- gen/gethostname.3 (revision 218613) >+++ gen/gethostname.3 (working copy) >@@ -47,7 +47,7 @@ > The > .Fn gethostname > function >-returns the standard host name for the current processor, as >+returns the standard host name for the current machine, as > previously set by > .Fn sethostname . > The >@@ -68,9 +68,9 @@ > This call is restricted to the super-user and > is normally used only when the system is bootstrapped. > .Pp >-Host names are limited to >-.Brq Dv HOST_NAME_MAX >-characters, not including the trailing null, currently 255. >+Applications should use >+.Fn sysconf _SC_HOST_NAME_MAX >+to find the maximum length of a host name (not including the terminating null). > .Sh RETURN VALUES > .Rv -std > .Sh ERRORS
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 143472
: 103535