lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 29 Dec 2009 14:19:30 -0500 (EST)
From:	"Robert P. J. Day" <rpjday@...shcourse.ca>
To:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: what's the purpose of MAXHOSTNAMELEN?


  in prepping for coalescing a lot of param.h files, i'm curious about
the purpose of this macro:

$ grep -rw MAXHOSTNAMELEN *
arch/s390/include/asm/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
arch/sparc/include/asm/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
arch/alpha/include/asm/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
arch/mn10300/include/asm/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
arch/arm/include/asm/param.h:#define MAXHOSTNAMELEN  64
arch/m32r/include/asm/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
arch/mips/include/asm/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
arch/m68k/include/asm/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
arch/xtensa/include/asm/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
arch/ia64/include/asm/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
arch/h8300/include/asm/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
arch/avr32/include/asm/param.h:#define MAXHOSTNAMELEN	64
arch/cris/include/asm/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
arch/um/include/asm/param.h:#define MAXHOSTNAMELEN  64      /* max length of hostname */
arch/powerpc/include/asm/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
arch/parisc/include/asm/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
arch/frv/include/asm/param.h:#define MAXHOSTNAMELEN		64	/* max length of hostname */
include/asm-generic/param.h:#define MAXHOSTNAMELEN	64	/* max length of hostname */
include/net/sctp/structs.h:#include <asm/param.h>		/* We get MAXHOSTNAMELEN.     */
$

  so lots of people define it but no one uses it.  it *is* exported to
user space in /usr/include/asm/param.h, but i still have no idea what
it's for in user space.  obsolete?

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ