Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751596AbWEZVeB (ORCPT ); Fri, 26 May 2006 17:34:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751598AbWEZVeB (ORCPT ); Fri, 26 May 2006 17:34:01 -0400 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:47792 "EHLO ebiederm.dsl.xmission.com") by vger.kernel.org with ESMTP id S1751595AbWEZVeA (ORCPT ); Fri, 26 May 2006 17:34:00 -0400 To: Jan Engelhardt Cc: Ulrich Drepper , "linux-os (Dick Johnson)" , Jan-Benedict Glaw , "Randy.Dunlap" , lkml , akpm , serue@us.ibm.com, sam@vilain.net, clg@fr.ibm.com, dev@sw.ru Subject: Re: [PATCH] POSIX-hostname up to 255 characters References: <20060525204534.4068e730.rdunlap@xenotime.net> <20060526144216.GZ13513@lug-owl.de> <20060526180131.GA13513@lug-owl.de> <447748E4.4050908@redhat.com> <44774F0B.8010805@redhat.com> From: ebiederm@xmission.com (Eric W. Biederman) Date: Fri, 26 May 2006 15:31:25 -0600 In-Reply-To: (Jan Engelhardt's message of "Fri, 26 May 2006 21:12:42 +0200 (MEST)") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1149 Lines: 29 Jan Engelhardt writes: >>> It is written (on so-called compatible machines like my Sun) as: >>> >>> #define MAXHOSTNAMELEN _POSIX_HOST_NAME_MAX >>> >>> Then in limits.h, I see: >>> >>> #define _POSIX_HOST_NAME_MAX 64 >> >>That's wrong. The value must be 255, at least for the current spec. >>You really should verify your statements before making them public. The >>POSIX spec is available in HTML for for viewing for free from the >>OpenGroup. What a specific implementation does is not authoritative. >> > > Let's all be happy with it that some systens have the maximum hostname length > at 64 or 255... thay way, applications do not tend to depend on it. > (Cf. Linux and the 100->1000 Hz change which _did_ turn up something.) For all of the kibitzers please reread Rolands original post, where he included the urls of the appropriate pieces of the Posix spec. Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/