utmpx
struct utmpx utx;
struct utmpx utx;
memset(&utx, 0, sizeof(struct utmpx));
write(fdx, &utx, sizeof(struct utmpx));
utmpx_update(struct utmpx *ut, char *line, const char *user, const char *host)
struct utmpx *ut, save_ut;
struct utmpx newut;
struct utmpx utmpx;
memset(&utmpx, 0, sizeof(utmpx));
strncpy(utmpx.ut_user, ".telnet", sizeof(utmpx.ut_user));
strncpy(utmpx.ut_line, clean_tty, sizeof(utmpx.ut_line));
strncpy(utmpx.ut_id, make_id(clean_tty), sizeof(utmpx.ut_id));
utmpx.ut_pid = pid;
utmpx.ut_type = LOGIN_PROCESS;
utmpx.ut_tv.tv_sec = tv.tv_sec;
utmpx.ut_tv.tv_usec = tv.tv_usec;
if (pututxline(&utmpx) == NULL)
struct utmpx utmpx, *non_save_utxp;
memset(&utmpx, 0, sizeof(utmpx));
strncpy(utmpx.ut_line, clean_tty, sizeof(utmpx.ut_line));
utmpx.ut_type = LOGIN_PROCESS;
non_save_utxp = getutxline(&utmpx);
struct utmpx *utxp;
utxp = malloc(sizeof(struct utmpx));
struct utmpx wtmp;
utmpx_write_direct(struct logininfo *li, struct utmpx *utx)
struct utmpx utx;
struct utmpx utx;
wtmpx_write(struct logininfo *li, struct utmpx *utx)
struct utmpx utx;
struct utmpx utx;
wtmpx_islogin(struct logininfo *li, struct utmpx *utx)
struct utmpx utx;
if (lseek(fd, -(off_t)sizeof(struct utmpx), SEEK_END) == -1 ) {
if (lseek(fd, -(off_t)(2 * sizeof(struct utmpx)), SEEK_CUR) == -1) {
struct utmpx *utx;
void set_utmpx_time(struct logininfo *li, struct utmpx *ut);
void construct_utmpx(struct logininfo *li, struct utmpx *ut);
set_utmpx_time(struct logininfo *li, struct utmpx *utx)
construct_utmpx(struct logininfo *li, struct utmpx *utx)
utmpx_write_library(struct logininfo *li, struct utmpx *utx)
struct utmpx *getutxent(void);
struct utmpx *getutxid(const struct utmpx *);
struct utmpx *getutxline(const struct utmpx *);
struct utmpx *pututxline(const struct utmpx *);
struct utmpx *getutxuser(const char *);
struct utmpx *
struct utmpx *
getutxid(const struct utmpx *id)
struct utmpx *
getutxline(const struct utmpx *line)
struct utmpx *
struct utmpx *
pututxline(const struct utmpx *utmpx)
utx_to_futx(utmpx, &fu);
struct utmpx *
static _Thread_local struct utmpx *ut;
utx_to_futx(const struct utmpx *ut, struct futx *fu)
struct utmpx;
void utx_to_futx(const struct utmpx *, struct futx *);
struct utmpx *futx_to_utx(const struct futx *);
struct utmpx utl;
struct utmpx *utx, utl;
ulog_fill(struct utmpx *utx, const char *line)
struct utmpx utx;
struct utmpx utx;
struct utmpx *utp;
notify(struct utmpx *utp, char file[], off_t offset, int folder)
static void notify(struct utmpx *, char[], off_t, int);
struct utmpx *usr;
struct utmpx *usr;
static struct utmpx utmp_list[MAXUSERS];
struct utmpx *ut;
struct utmpx utx;
void enter_where(struct utmpx *, PERSON *);
struct utmpx *user;
struct utmpx *user;
char tty[sizeof ((struct utmpx *)0)->ut_line]; /* tty line */
char host[sizeof ((struct utmpx *)0)->ut_host]; /* host name */
struct utmpx *ut = NULL;
enter_where(struct utmpx *ut, PERSON *pn)
utmpxprint(const struct utmpx *ut)
const struct utmpx *ut;
static int utmpx(int, char *[]);
{ "utmpx", utmpx, },
struct utmpx *buf = NULL;
struct utmpx *ut;
doentry(struct utmpx *bp)
printentry(struct utmpx *bp, struct idtab *tt)
want(struct utmpx *bp)
char id[sizeof ((struct utmpx *)0)->ut_id]; /* identifier */
static void doentry(struct utmpx *);
static void printentry(struct utmpx *, struct idtab *);
static int want(struct utmpx *);
struct utmpx *ut;
struct utmpx *ut;
static struct utmpx *utmp;
struct utmpx utmp;
struct utmpx *utmp;
row(const struct utmpx *ut)
struct utmpx *utx;
struct utmpx *utx;
struct utmpx ut, *utx;
static void row(const struct utmpx *);
struct utmpx lu, *u;
struct utmpx *u;
log_out(const struct utmpx *up)
log_in(struct utmpx *up)
struct utmpx *usr, usht;
char user[sizeof(((struct utmpx *)0)->ut_user)];
char id[sizeof(((struct utmpx *)0)->ut_id)];
char line[sizeof(((struct utmpx *)0)->ut_line)];
char user[sizeof(((struct utmpx *)0)->ut_user)];
char line[sizeof(((struct utmpx *)0)->ut_line) + 2];
struct utmpx *utmp;
(ulistsize + 16) * sizeof(struct utmpx));
qsort(ulist, ulistsize, sizeof(struct utmpx), utcmp);
output(struct utmpx *u)
static void output(struct utmpx *);
return (order * strcmp(((const struct utmpx *)u1)->ut_user,
((const struct utmpx *)u2)->ut_user));
t1 = ((const struct utmpx *)u1)->ut_tv.tv_sec;
t2 = ((const struct utmpx *)u2)->ut_tv.tv_sec;
struct utmpx *u, *ulist;
ID0login(const struct utmpx *ut)
ID0logout(const struct utmpx *ut)
struct utmpx;
extern void ID0login(const struct utmpx *);
extern void ID0logout(const struct utmpx *);
struct utmpx ut;
struct utmpx ut;
struct utmpx *ut;
struct utmpx *ut;
struct utmpx utx = { .ut_type = DEAD_PROCESS };
struct utmpx utx = { .ut_type = type };