utmp
undo_t utmp; \
utmp = x, x = y, y = utmp; \
const struct utmp *ut;
struct utmp;
void login(const struct utmp *) __RENAME(__login50);
struct utmp *getutent(void) __RENAME(__getutent50);
struct utmp;
void getutmp(const struct utmpx *, struct utmp *) __RENAME(__getutmp50);
void getutmpx(const struct utmp *, struct utmpx *) __RENAME(__getutmpx50);
cvt(struct utmp *ut)
getutmp(const struct utmpx50 *utx50, struct utmp *ut)
getutmpx(const struct utmp *ut, struct utmpx50 *utx50)
utmp_to_utmp50(const struct utmp *ut, struct utmp50 *ut50)
utmp50_to_utmp(const struct utmp50 *ut50, struct utmp *ut)
struct utmp *__getutent50(void);
struct utmp;
void getutmp(const struct utmpx50 *, struct utmp *);
void __getutmp50(const struct utmpx *, struct utmp *);
void getutmpx(const struct utmp *, struct utmpx50 *);
void __getutmpx50(const struct utmp *, struct utmpx *);
static struct utmp utmp;
struct utmp *
numentries = st.st_size / sizeof(utmp);
if ((off_t)(numentries * sizeof(utmp)) != st.st_size)
if (fread(&utmp, sizeof(utmp), 1, ut) == 1)
return &utmp;
getutmp(const struct utmpx *ux, struct utmp *u)
getutmpx(const struct utmp *u, struct utmpx *ux)
struct utmp utmp;
(void)memset((void *)&utmp, 0, sizeof(utmp));
utmp.ut_time = now->tv_sec;
(void)strncpy(utmp.ut_name, username, sizeof(utmp.ut_name));
(void)strncpy(utmp.ut_host, hostname, sizeof(utmp.ut_host));
(void)strncpy(utmp.ut_line, tty, sizeof(utmp.ut_line));
login(&utmp);
struct utmp ut;
(void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
struct utmp;
void __login50(const struct utmp *);
login(const struct utmp *ut)
(void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
(void)write(fd, ut, sizeof(struct utmp));
(void)write(fd, ut, sizeof(struct utmp));
struct utmp ut;
struct utmp ut;
if (write(fd, &ut, sizeof(struct utmp)) != sizeof(struct utmp))
nutmp = getutentries(NULL, &utmp);
for (ep = utmp; ep != NULL; ep = ep->next)
static struct utmpentry *utmp = NULL;
struct utmp;
void ftpd_login(const struct utmp *);
(void)memset(&utmp, 0, sizeof(utmp));
(void)time(&utmp.ut_time);
(void)strncpy(utmp.ut_name, name, sizeof(utmp.ut_name));
(void)strncpy(utmp.ut_line, line, sizeof(utmp.ut_line));
(void)strncpy(utmp.ut_host, host, sizeof(utmp.ut_host));
ftpd_login(&utmp);
static struct utmp utmp; /* for utmp */
typedef struct utmp UTMP;
ftpd_login(const struct utmp *ut)
sizeof(struct utmp))
struct utmp ut;
if (write(fd, (char *)&ut, sizeof(struct utmp)) !=
want(struct utmp *bp, int check)
static struct utmp *buf;
static int want(struct utmp *, int);
static const char *gethost(struct utmp *, const char *, int);
gethost(struct utmp *ut, const char *host, int numeric)
struct utmp *bp; /* current structure */
struct utmp utmp;
(void)memset((void *)&utmp, 0, sizeof(utmp));
utmp.ut_time = now.tv_sec;
(void)strncpy(utmp.ut_name, username, sizeof(utmp.ut_name));
(void)strncpy(utmp.ut_host, hostname, sizeof(utmp.ut_host));
(void)strncpy(utmp.ut_line, tty, sizeof(utmp.ut_line));
login(&utmp);
struct utmp *ut;
struct utmp *ut;
getentry(struct utmpentry *e, struct utmp *up)
static void getentry(struct utmpentry *, struct utmp *);
static struct utmp_list *log_in(struct utmp_list *, struct utmp *);
static struct utmp_list *log_out(struct utmp_list *, struct utmp *);
log_out(struct utmp_list *head, struct utmp *up)
log_in(struct utmp_list *head, struct utmp *up)
memmove((char *)&lp->usr, (char *)up, sizeof (struct utmp));
struct utmp usr;
struct utmp usr;