summaryrefslogtreecommitdiff
path: root/hurd/porting
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-07-05 13:53:47 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-07-05 13:53:47 +0200
commit3f63355a8964df6c9c8cbc9e8ee0bfe551a593c3 (patch)
treec2fef12827efaef688fb5e5442b17ab4e36c0a7a /hurd/porting
parentcd90b3f98d538331834fbf398ec52ba7c771a17c (diff)
Also mention HOST_NAME_MAX
Diffstat (limited to 'hurd/porting')
-rw-r--r--hurd/porting/guidelines.mdwn2
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/porting/guidelines.mdwn b/hurd/porting/guidelines.mdwn
index fd533fd7..5986269e 100644
--- a/hurd/porting/guidelines.mdwn
+++ b/hurd/porting/guidelines.mdwn
@@ -158,7 +158,7 @@ Same rationale as `PATH_MAX`. There is no limit on the number of arguments.
Same rationale as `PATH_MAX`. There is no limit on the number of iovec items.
-## <a name="MAXHOSTNAMELEN_tt_"> `MAXHOSTNAMELEN` </a>
+## <a name="MAXHOSTNAMELEN_tt_"> `MAXHOSTNAMELEN`, `HOST_NAME_MAX` </a>
Same as `PATH_MAX`. When you find a `gethostname()` function, which acts on a static buffer, you can replace it with Neal's [xgethostname function](http://walfield.org/pub/people/neal/xgethostname/) which returns the hostname as a dynamic buffer. For example: