futmpx
static struct futmpx Ut, Ut2;
static int winp(FILE *, struct futmpx *);
static void setdtab(off_t, struct futmpx *, struct futmpx *);
static void adjust(off_t, struct futmpx *);
winp(FILE *f, struct futmpx *w)
setdtab(off_t p, struct futmpx *w1, struct futmpx *w2)
adjust(off_t p, struct futmpx *w)
#define UTRSZ (sizeof (struct futmpx)) /* file record size */
entries = stb.st_size / sizeof (struct futmpx);
entries = sbuf.st_size / sizeof (struct futmpx);
entries = sbuf.st_size / sizeof (struct futmpx);
struct futmpx ubuf;
static struct futmpx *getoneutx(off_t *);
struct futmpx *ut; /* "current" utmpx being examined */
static struct futmpx *utmpbuf = NULL;
static struct futmpx *
ssize_t nbytes, bufsz = sizeof (struct futmpx) * UTMPNBUF;
nidx = nbytes / sizeof (struct futmpx);
static struct futmpx fubuf; /* Copy of last entry read in. */
*off = (((nbuf - 1) * UTMPNBUF) + idx) * sizeof (struct futmpx);
struct futmpx futx;
utmpx_frec2api(const struct futmpx *src, struct utmpx *dst)
utmpx_api2frec(const struct utmpx *src, struct futmpx *dst)
static struct futmpx *
struct futmpx *futxp;
struct futmpx ftmpxbuf;
(void) fseek(fp, -(long)sizeof (struct futmpx),
(void) fseek(fp, -(long)sizeof (struct futmpx), SEEK_CUR);
struct futmpx futx;
struct futmpx *fup; /* being examined */
static void utmpx_frec2api(const struct futmpx *, struct utmpx *);
static void utmpx_api2frec(const struct utmpx *, struct futmpx *);
struct futmpx ubuf;