From 3b9813625f6dbc3cfa83be63eb00da62d553330b Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 21 Jul 2026 10:19:12 +0200 Subject: put trivial examples for ARG_MAX/IOV_MAX --- hurd/porting/guidelines.mdwn | 12 ++++++++++-- 1 file 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 ## `IOV_MAX` 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 ## `MAXHOSTNAMELEN`, `HOST_NAME_MAX` -- cgit v1.3.1