Subject: Re: CVS commit: pkgsrc/x11/rxvt
To: Martin Husemann <martin@netbsd.org>
From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
List: pkgsrc-changes
Date: 09/30/2002 14:37:45
On Mon, Sep 30, 2002 at 03:29:13PM +0300, Martin Husemann wrote:
> Modified Files:
> 	pkgsrc/x11/rxvt: distinfo
> Added Files:
> 	pkgsrc/x11/rxvt/patches: patch-af
> 
> Log Message:
> Brute-force SYSV style utmpx handling off if compiling for NetBSD.
> Our utmpx (at least in current) is good enough to be recognized, but
> the configure script/ifdef logic assumes we are SysV then, unless
> overriden as Solaris (RXVT_UTMP_AS_UTMPX). But we are BSD style utmpx,
> so no ut_id, ut_pid, ut_type and friends.

I'm confused:
struct utmpx {
        char ut_name[_UTX_USERSIZE];    /* login name */
        char ut_id[_UTX_IDSIZE];        /* inittab id */
        char ut_line[_UTX_LINESIZE];    /* tty name */
        char ut_host[_UTX_HOSTSIZE];    /* host name */
        uint16_t ut_session;            /* session id used for
	windowing */
        uint16_t ut_type;               /* type of this entry */
        pid_t ut_pid;                   /* process id creating the
	entry */
        struct {
                uint16_t e_termination; /* process termination signal
		*/
                uint16_t e_exit;        /* process exit status */
        } ut_exit;
        struct sockaddr_storage ut_ss;  /* address where entry was
	made from */
        struct timeval ut_tv;           /* time entry was created */
        uint32_t ut_pad[10];            /* reserved for future use */
};

All three of the mentioned ones are there.

 Thomas

-- 
Thomas Klausner - wiz@danbala.ifoer.tuwien.ac.at
Main Rule of Usenet:  Never argue with idiots.  They drag you down to
their level, then beat you with experience.