Messages in this thread | | | Date | Fri, 26 May 2006 21:12:42 +0200 (MEST) | From | Jan Engelhardt <> | Subject | Re: [PATCH] POSIX-hostname up to 255 characters |
| |
>> 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.)
Jan Engelhardt -- - 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/
| |