#ifndef _UTMPX_H_
#define _UTMPX_H_
#include <sys/time.h>
#include <sys/types.h>
struct utmpx {
short ut_type;
struct timeval ut_tv;
char ut_id[8];
pid_t ut_pid;
char ut_user[32];
char ut_line[16];
char ut_host[128];
char __ut_reserved[64];
};
#define EMPTY 0
#define BOOT_TIME 1
#define OLD_TIME 2
#define NEW_TIME 3
#define USER_PROCESS 4
#define INIT_PROCESS 5
#define LOGIN_PROCESS 6
#define DEAD_PROCESS 7
#ifdef __cplusplus
extern "C" {
#endif
void endutxent(void);
struct utmpx* getutxent(void);
struct utmpx* getutxid(const struct utmpx *);
struct utmpx* getutxline(const struct utmpx *);
struct utmpx* pututxline(const struct utmpx *);
void setutxent(void);
#ifdef __cplusplus
}
#endif
#endif