Commit Graph

6 Commits

Author SHA1 Message Date
sin
85a0e49c33 Use utmpx instead of utmp
If your utmp files are generated with programs linked against glibc
then musl-libc might not be able to parse the records correctly.  This is
because the fields `ut_session' and `ut_tv' must be the same size when
compiled in x86 and x86_64.  This is a requirement by glibc that musl does
not fulfil for good reasons.
2013-10-08 16:49:40 +01:00
s-p-k
e340e1373e exit with EXIT_SUCCESS/EXIT_FAILURE 2013-10-07 19:15:00 +01:00
sin
450f930c17 Use /var/run/utmp for now
Musl-libc seems to define that to /dev/null/utmp
2013-09-16 15:58:44 +01:00
sin
b66839681f Ignore `LOGIN' name when counting the number of users 2013-09-01 17:50:03 +01:00
sin
9e8a7ac616 Check return value of sysinfo() 2013-08-16 15:51:37 +01:00
sin
74146c54a7 Add uptime(1) 2013-08-16 11:55:55 +01:00