Example: Portable OpenSSH cvs-20051008


loginrec.h
68| struct logininfo {
69|          char       progname[LINFO_PROGSIZE];     /* name of program (for PAM) */
70|          int        progname_null;
71|          short int  type;                         /* type of login (LTYPE_*) */
72|          int        pid;                          /* PID of login process */
73|          int        uid;                          /* UID of this user */
74|          char       line[LINFO_LINESIZE];         /* tty/pty name */
75|          char       username[LINFO_NAMESIZE];     /* login username */
76|          char       hostname[LINFO_HOSTSIZE];     /* remote hostname */
77|          /* 'exit_status' structure components */
78|          int        exit;                        /* process exit status */
79|          int        termination;                 /* process termination status */
80|          /* struct timeval (sys/time.h) isn't always available, if it isn't we'll
81|           * use time_t's value as tv_sec and set tv_usec to 0
82|           */
83|          unsigned int tv_sec;
84|          unsigned int tv_usec;
85|          union login_netinfo hostaddr;       /* caller's host address(es) */
86|  }; /* struct logininfo */
