Commit Graph

11 Commits

Author SHA1 Message Date
parazyd 7ffe3cfacc uptime: Fix user/s printing (grammar error) when users == 0.
Signed-off-by: parazyd <parazyd@dyne.org>
2019-01-30 11:25:33 +00:00
Ypnose 52a0874624 uptime.c: Use the UTMP_PATH from config.def.h 2015-09-03 19:57:21 +01:00
sin 6f7f387352 Stop using EXIT_{SUCCESS,FAILURE} 2014-10-02 23:47:39 +01:00
sin 2832db2368 Set UTMP_PATH in config.def.h 2014-07-02 12:06:07 +01:00
sin 86060b535c Fix includes across all tools 2014-06-30 19:04:47 +01:00
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