Searched refs:utmp (Results 1 - 6 of 6) sorted by relevance
/bionic/libc/bionic/ |
H A D | pututline.c | 30 #include <utmp.h> 33 void pututline(struct utmp* utmp) argument 36 struct utmp u; 42 while (fread(&u, sizeof(struct utmp), 1, f) == 1) 44 if (!strncmp(utmp->ut_line, u.ut_line, sizeof(u.ut_line) -1)) 48 if (fseek(f, i - sizeof(struct utmp), SEEK_SET) < 0) 50 fwrite(utmp, sizeof(struct utmp), 1, f); 60 fwrite(utmp, sizeo [all...] |
H A D | pty.cpp | 37 #include <utmp.h>
|
/bionic/tests/ |
H A D | utmp_test.cpp | 19 #include <utmp.h> 21 TEST(utmp, login_tty) { 27 TEST(utmp, setutent_getutent_endutent) {
|
/bionic/libc/upstream-netbsd/lib/libc/gen/ |
H A D | utmp.c | 1 /* $NetBSD: utmp.c,v 1.10 2011/10/15 23:00:02 christos Exp $ */ 34 __RCSID("$NetBSD: utmp.c,v 1.10 2011/10/15 23:00:02 christos Exp $"); 43 #include <utmp.h> 46 static struct utmp utmp; variable in typeref:struct:utmp 58 struct utmp * 69 * If we have a an old version utmp file bail. 71 numentries = st.st_size / sizeof(utmp); 72 if ((off_t)(numentries * sizeof(utmp)) != st.st_size) 75 if (fread(&utmp, sizeo [all...] |
/bionic/libc/include/ |
H A D | utmp.h | 35 #define _PATH_UTMP "/var/run/utmp" 74 struct utmp struct 101 struct utmp* getutent(void);
|
/bionic/libc/ |
H A D | Android.mk | 320 upstream-netbsd/lib/libc/gen/utmp.c \
|
Completed in 553 milliseconds