Home
last modified time | relevance | path

Searched refs:utmp (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/bionic/
Dpututline.c33 void pututline(struct utmp* utmp) in pututline() argument
36 struct utmp u; in pututline()
42 while (fread(&u, sizeof(struct utmp), 1, f) == 1) in pututline()
44 if (!strncmp(utmp->ut_line, u.ut_line, sizeof(u.ut_line) -1)) in pututline()
48 if (fseek(f, i - sizeof(struct utmp), SEEK_SET) < 0) in pututline()
50 fwrite(utmp, sizeof(struct utmp), 1, f); in pututline()
60 fwrite(utmp, sizeof(struct utmp), 1, f); in pututline()
/bionic/libc/upstream-netbsd/lib/libc/gen/
Dutmp.c46 static struct utmp utmp; variable
58 struct utmp *
71 numentries = st.st_size / sizeof(utmp); in getutent()
72 if ((off_t)(numentries * sizeof(utmp)) != st.st_size) in getutent()
75 if (fread(&utmp, sizeof(utmp), 1, ut) == 1) in getutent()
76 return &utmp; in getutent()
/bionic/libc/include/
Dutmp.h65 struct utmp struct
92 struct utmp* getutent(); argument
/bionic/tests/
Dutmp_test.cpp21 TEST(utmp, login_tty) { in TEST() argument
/bionic/libc/
DAndroid.mk293 upstream-netbsd/lib/libc/gen/utmp.c \