Home
last modified time | relevance | path

Searched refs:utmp (Results 1 – 6 of 6) 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/tests/
Dutmp_test.cpp21 TEST(utmp, login_tty) { in TEST() argument
27 TEST(utmp, setutent_getutent_endutent) { in TEST() argument
/bionic/libc/include/
Dutmp.h74 struct utmp struct
101 struct utmp* getutent(void); argument
/bionic/libc/
DAndroid.mk320 upstream-netbsd/lib/libc/gen/utmp.c \
DAndroid.bp352 "upstream-netbsd/lib/libc/gen/utmp.c",