> 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? > What value are you going to put in? Someone posted that some recent POSIX standard gave a limit of 255. I was going to use that. 1024 is fine too.