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