[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Another package ported

On Sun, May 27, 2001 at 10:44:31PM -0400, Roland McGrath wrote:
> > Roland McGrath <roland@frob.com> 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

Sorry, it really is changing more than I expected.  I should wait for the
released standard before making suggestions like that.


`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org

Reply to: