From owner-freebsd-hackers Fri Mar 29 11:31:56 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from reiher.informatik.uni-wuerzburg.de (wi4d22.informatik.uni-wuerzburg.de [132.187.101.122]) by hub.freebsd.org (Postfix) with ESMTP id 3ECFF37B419 for ; Fri, 29 Mar 2002 11:31:48 -0800 (PST) Received: from reiher.informatik.uni-wuerzburg.de (localhost [127.0.0.1]) by reiher.informatik.uni-wuerzburg.de (Postfix) with ESMTP id C2690ACAB; Fri, 29 Mar 2002 20:31:46 +0100 (CET) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 From: Matthias Buelow To: Sansonetti Laurent Cc: freebsd-hackers@freebsd.org Subject: Re: SYS_NMLN strange value In-Reply-To: Your message of "29 Mar 2002 14:15:58 GMT." <1017411358.2969.20.camel@datafreebsd> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 29 Mar 2002 20:31:46 +0100 Message-Id: <20020329193146.C2690ACAB@reiher.informatik.uni-wuerzburg.de> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sansonetti Laurent 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