diff options
| author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2026-04-09 01:03:31 +0200 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2026-04-09 01:03:31 +0200 |
| commit | 34b23f257b2364801e7c152b977ff045f4396344 (patch) | |
| tree | 556c5eccd468eaed61ca07a44882c7c53557196c | |
| parent | 0712b92732d482292f6fb3b3299e155b4460a741 (diff) | |
Advise on replacing ARG_MAX and IOV_MAX
| -rw-r--r-- | hurd/porting/guidelines.mdwn | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hurd/porting/guidelines.mdwn b/hurd/porting/guidelines.mdwn index 624f7fd5..2489d1d8 100644 --- a/hurd/porting/guidelines.mdwn +++ b/hurd/porting/guidelines.mdwn @@ -156,10 +156,16 @@ allocated buffer. One can thus use: Same rationale as `PATH_MAX`. There is no limit on the number of arguments. +This limit can be simply ignored, or replaced by an arbitrary constant, there is +no restriction issue here. + ## <a name="IOV_MAX"> `IOV_MAX` </a> Same rationale as `PATH_MAX`. There is no limit on the number of iovec items. +This limit can be simply ignored, or replaced by an arbitrary constant, there is +no restriction issue here. + ## <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: |
