You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Andrew Wilson <an...@tees.elsevier.co.uk> on 1995/09/12 12:42:26 UTC
MAXHOSTNAMELEN
Hullo,
I'm developing a minor fix based around the proper use of
MAXHOSTNAMELEN, which effects 2 lines in util.c.
MAXHOSTNAMELEN is defined (typically) in
/usr/include/sys/param.h
Please can users of different platforms out there do a quick:
grep MAXHOSTNAMELEN /usr/include/sys/*.h
or equivalent, and send me the results, along with the output from 'uname -a',
so I know what you're running.
So far I already know about
FreeBSD /usr/include/sys/param.h (255?, er Paul, I dun't
2.0.5 remember what we found, wanna check today)
SunOS 4.1.3 /usr/include/sys/param.h (64)
Solaris 2.4 /usr/include/netdb.h (256)
HPUX?
LINUX?
I checked Linux 1.2.8...
o sys.param.h contains the code:
#ifdef OLD_LINUX
#undef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 8 /* max length of hostname */
#endif
o asm/types.h sez:
#define MAXHOSTNAMELEN 64
o and rpc/types.h sez:
#define MAXHOSTNAMELEN 64
o Any Linux accolytes have a clue which of these is the real
thing?
OtherOS?
Cheers,
Ay.
Andrew Wilson URL: http://www.cm.cf.ac.uk/User/Andrew.Wilson/
Elsevier Science, Oxford Office: +44 01865 843155 Mobile: +44 0589 616144