Searched refs:utmp (Results 1 – 6 of 6) sorted by relevance
/bionic/libc/bionic/ |
D | pututline.c | 33 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/ |
D | utmp.c | 46 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/ |
D | utmp_test.cpp | 21 TEST(utmp, login_tty) { in TEST() argument 27 TEST(utmp, setutent_getutent_endutent) { in TEST() argument
|
/bionic/libc/include/ |
D | utmp.h | 74 struct utmp struct 101 struct utmp* getutent(void); argument
|
/bionic/libc/ |
D | Android.mk | 320 upstream-netbsd/lib/libc/gen/utmp.c \
|
D | Android.bp | 352 "upstream-netbsd/lib/libc/gen/utmp.c",
|