Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Mar 2001 14:48:57 -0500 (EST)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/calendar io.c 
Message-ID:  <200103011948.OAA03017@khavrinen.lcs.mit.edu>
In-Reply-To: <200103011458.f21Ewrx02627@hak.lan.Awfulhak.org>
References:  <imp@FreeBSD.org> <200103010547.f215lUw98788@freefall.freebsd.org> <200103011458.f21Ewrx02627@hak.lan.Awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Thu, 01 Mar 2001 14:58:53 +0000, Brian Somers <brian@Awfulhak.org> said:

> Does anybody (Garrett, Bruce?) know definitively which of the various 
> *LEN variables include NUL ?

No.  That's why they should not be used.  Use the POSIX-standard *_MAX
variables instead.

> MAXHOSTNAMELEN:

Hopefully this one will be in the next POSIX.  The current draft
spells it `255'.  I have proposed {HOST_NAME_MAX} which would
definitively include the terminating '\0'.

> MAXNAMELEN:
>   intro(2) suggests that this doesn't include space for a NUL - seems 
>   right.

Use {NAME_MAX}.

> MAXPATHLEN
>   intro(2) suggests that this does include space for a NUL - seems right.

Use {PATH_MAX}.

-GAWollman


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103011948.OAA03017>