diff options
| author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2026-07-21 10:19:12 +0200 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2026-07-21 10:19:12 +0200 |
| commit | 3b9813625f6dbc3cfa83be63eb00da62d553330b (patch) | |
| tree | 10032ef40f24438290f13f1ca5dcc3ea62f71212 /hurd/porting | |
| parent | 7f5b3d90034c006bc5225838a3215a220eda2fb4 (diff) | |
put trivial examples for ARG_MAX/IOV_MAX
Diffstat (limited to 'hurd/porting')
| -rw-r--r-- | hurd/porting/guidelines.mdwn | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/hurd/porting/guidelines.mdwn b/hurd/porting/guidelines.mdwn index 2489d1d8..1c1c9fc4 100644 --- a/hurd/porting/guidelines.mdwn +++ b/hurd/porting/guidelines.mdwn @@ -157,14 +157,22 @@ 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. +no restriction issue here: + + #ifndef ARG_MAX + # define ARG_MAX 128 + #endif ## <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. +no restriction issue here: + + #ifndef IOV_MAX + # define IOV_MAX 1024 + #endif ## <a name="MAXHOSTNAMELEN_tt_"> `MAXHOSTNAMELEN`, `HOST_NAME_MAX` </a> |
