diff options
| -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> |
