… | … | ||
---|---|---|---|
40 | #include "ptytty.h" | 40 | #include "ptytty.h" |
41 | 41 | ||
42 | #if UTMP_SUPPORT | 42 | #if UTMP_SUPPORT |
43 | 43 | ||
44 | #include <cstdio> | 44 | #include <cstdio> |
45 | #include <cstring> | ||
45 | 46 | ||
46 | #include <sys/types.h> | 47 | #include <sys/types.h> |
47 | #include <sys/stat.h> | 48 | #include <sys/stat.h> |
48 | #include <fcntl.h> | 49 | #include <fcntl.h> |
49 | #include <unistd.h> | 50 | #include <unistd.h> |
50 | #include <time.h> | 51 | #include <time.h> |
52 | #include <errno.h> | ||
51 | 53 | ||
52 | /* | 54 | /* |
53 | * BSD style utmp entry | 55 | * BSD style utmp entry |
54 | * ut_line, ut_name, ut_host, ut_time | 56 | * ut_line, ut_name, ut_host, ut_time |
55 | * SYSV style utmp (and utmpx) entry | 57 | * SYSV style utmp (and utmpx) entry |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |