On Sun, May 27, 2001 at 10:44:31PM -0400, Roland McGrath wrote: > > Roland McGrath <[EMAIL PROTECTED]> writes: > > > > > Yes, <sys/param.h> has always been the place to find MAXHOSTNAMELEN. > > > If Thomas doesn't object, I will put it into libc. > > > > Argh. I don't want there to be a max. Blech blech blech blech. > > Have you followed the discussion here where someone said there is a > standard now constraining the maximum anyone can expect to use? > Maybe someone can post the specific citation for whatever that was?
Nevermind, the standard is a moving target. Sorry. What I quoted was from draft 5, and I now checked draft 6, and it does not refer to a single constant "255" anymore. Instead, it refers to HOST_NAME_MAX, which has the minimum acceptable value 255, but may be unspecified. So, the situation will be just as with PATH_MAX, you can even get the value with sysconf and _SC_HOST_NAME_MAX. Sorry, it really is changing more than I expected. I should wait for the released standard before making suggestions like that. Thanks, Marcus -- `Rhubarb is no Egyptian god.' Debian http://www.debian.org [EMAIL PROTECTED] Marcus Brinkmann GNU http://www.gnu.org [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.marcus-brinkmann.de

