Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: next release



"Zefram" wrote:
> Those people that have been having problems with ut_xtime on HP-UX:
> I've added a new autoconf test that should detect whether the ut_xtime
> member is actually available.  A couple of people have posted indicating
> that the actual struct member to use is ut_tv.tv_sec.  Can someone tell
> me whether this is the *only* name for the correct member, or is there
> a definition for ut_time in the system header?

Here's the definition of struct utmpx from utmpx.h on a HP-UX B.10.20
machine (dunno if the B. is important).  There's a lot of conditional
compilation but there's no sign of ut_time, only ut_tv; same elsewhere
in utmpx.h. ut_time is present in struct utmp defined in utmp.h,
however.


struct utmpx
  {
        char ut_user[24] ;              /* User login name */
        char ut_id[4] ;                 /* /etc/lines id(usually line #) */
        char ut_line[12] ;              /* device name (console, lnxx) */
        pid_t ut_pid ;                  /* process id */
        short ut_type ;                 /* type of entry */

        struct __exit_status
#ifndef _STRUCT___EXIT_STATUS
#  define _STRUCT___EXIT_STATUS
          {
            short __e_termination ;
            short __e_exit ;
          }
#endif /* _STRUCT___EXIT_STATUS */
        ut_exit;

        unsigned short ut_reserved1 ;   /* Reserved for future use */
        struct timeval
#ifndef _STRUCT_TIMEVAL
#  define _STRUCT_TIMEVAL
        {
          time_t                         tv_sec;                /* seconds */
          long          tv_usec;        /* and microseconds */
        }
#endif /* _STRUCT_TIMEVAL */
        ut_tv;                  /* time entry was made */

        char ut_host[64] ;              /* host name, if remote; 
                                           NOT SUPPORTED */
        unsigned long ut_addr ;         /* Internet addr of host, if remote */
        char ut_reserved2[12] ; /* Reserved for future use */
  } ;

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarotti 2, 56100 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author