zones-discuss@opensolaris.org
[Top] [All Lists]

Re: [zones-discuss] ps -Z is broken

Subject: Re: [zones-discuss] ps -Z is broken
From: Nicolas Williams
Date: Sat, 29 Sep 2007 13:44:12 -0500
On Sat, Sep 29, 2007 at 12:42:38PM +0200, Joerg Schilling wrote:
> Nicolas Williams <Nicolas.Williams@xxxxxxx> wrote:
> > The 8 character limit is all about column formatting in tools like ps(1)
> > and ls(1).  The 32 byte limit is from utmpx.
> 
> utmpx has no specific user name limit in POSIX.

Maybe so, but:

struct utmpx {
        char    ut_user[32];            /* user login name */
        ...

That's what's in Solaris.  And the layout (and probably size) of struct
utmpx is part of the ABI.

> Before POSIX.1-2001, there indeed was a hard limit but this limit was from 
> TAR!
> 
> With the new extended tar headers from POSIX.1-2001, user names could be 
> _really_ llong.

Fine, but then we have to extend utmpx.
_______________________________________________
zones-discuss mailing list
zones-discuss@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>