Re: [PATCH] POSIX-hostname up to 255 characters

From: Jan-Benedict Glaw
Date: Fri May 26 2006 - 10:41:33 EST


On Fri, 2006-05-26 03:14:06 -0600, Eric W. Biederman <ebiederm@xxxxxxxxxxxx> wrote:
> "Randy.Dunlap" <rdunlap@xxxxxxxxxxxx> 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@xxxxxxxxxxxx>
> >
> > 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@xxxxxxxxxx . +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));

Attachment: signature.asc
Description: Digital signature