Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2002 20:31:46 +0100
From:      Matthias Buelow <mkb@informatik.uni-wuerzburg.de>
To:        Sansonetti Laurent <laurent@datarescue.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: SYS_NMLN strange value 
Message-ID:  <20020329193146.C2690ACAB@reiher.informatik.uni-wuerzburg.de>
In-Reply-To: Your message of "29 Mar 2002 14:15:58 GMT." <1017411358.2969.20.camel@datafreebsd> 

next in thread | previous in thread | raw e-mail | index | archive | help
Sansonetti Laurent <laurent@datarescue.com> writes:

>Hi hackers,
>
>Just a little question about utsname.h (on a 4.4-release), is it normal
>to see a value of 32 for SYS_NMLN instead of 256 (like other
>implementations such as OpenBSD 3.0) ?

I've just sent in a PR regarding this;  Solaris 8 has it at 257,
NetBSD (and as you say, OpenBSD) at 256.  However, some systems
are even more pathetic than FreeBSD regarding this, HP-UX 10 for
example has it a 9 only.  Generally, software shouldn't assume
that it could get anything reasonable from the nodename field
of the struct (like an untruncated hostname), some software still
uses it (such as nmh) but it would still be nice if it returned
something reasonable on FreeBSD; no need to leave it broken just
because it's also broken on some other systems.

--mkb



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020329193146.C2690ACAB>