Messages in this thread | | | Date | Fri, 26 May 2006 16:42:16 +0200 | From | Jan-Benedict Glaw <> | Subject | Re: [PATCH] POSIX-hostname up to 255 characters |
| |
On Fri, 2006-05-26 03:14:06 -0600, Eric W. Biederman <ebiederm@xmission.com> wrote: > "Randy.Dunlap" <rdunlap@xenotime.net> writes: > > This patch is against 2.6.17-rc5, for review/comments, please. > > It won't apply to -mm since Andrew has merged the uts-namespace patches. > > I'll see about merging it with those patches next. > > --- > > > > From: Randy Dunlap <rdunlap@xenotime.net> > > > > Implement POSIX-defined length for 'hostname' so that hostnames > > can be longer than 64 characters (max. 255 characters plus > > terminating NULL character). > > > > Adds sys_gethostname_long() and sys_sethostname_long(). > > Tested on i386 and x86_64. > > Is there any particular reason for this? > The existing sys_gethostname and sys_sethostname interfaces > should work for any string length. > > Although I do agree that we need at least one new syscall > for the architectures that don't currently use get_hostname.
...and this should have gone to linux-arch, too...
MfG, JBG
-- Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA)); [unhandled content-type:application/pgp-signature] | |