1ac63acd762b6a714bc04a87d8f416a0f619092c |
|
21-Mar-2017 |
Elliott Hughes <enh@google.com> |
Implement uptime -s. Also add trivial tests.
/external/toybox/toys/other/uptime.c
|
cb8e5ad6c5b9c79cce1a6baf10041f90cf491711 |
|
20-Mar-2017 |
Rob Landley <rob@landley.net> |
Add TOYBOX_PEDANTIC_ARGS to check arguments when there are no arguments, and make uptime use it.
/external/toybox/toys/other/uptime.c
|
561478541dbeb92e2c82c2fda7b43461293938e9 |
|
19-Nov-2014 |
Rob Landley <rob@landley.net> |
Fixups for the android/bionic build probes patch. The CFG_* symbols are always defined so if() can use them as compile-time constants, so don't if defined() them. Doing USE_BLAH() around variable definitions opens up the same potential for config-dependent build breaks as #ifdefs do, just make the whole command depend on the symbol for now, factor out the utmpx infrastructure later. The PTY probe was always failing because it used NULL without #including the header that defines it. Substitute 0 instead.
/external/toybox/toys/other/uptime.c
|
46ddf0e34b03f7711a9c80f7a70dc8cbf732f782 |
|
19-Nov-2014 |
Isaac Dunham <ibid.ag@gmail.com> |
probe for getspnam(), forkpty(), utmpx, replace sethostname() Android is missing all of these; we need to probe for some so we have a config symbol to depend on. sethostname() is easily replaced. We got termios.h via pty.h; now it's not included in configure-step tools, so we need termios.h to generate globals.
/external/toybox/toys/other/uptime.c
|
66643b4ea9bfab86a8cc1eab9f0ff5222a744bbc |
|
26-Oct-2013 |
Jeroen van Rijn <jvrnix@gmail.com> |
I noticed the user count was missing and added this, borrowing a bit of code from toys/posix/who.c.
/external/toybox/toys/other/uptime.c
|
7aa651a6a4496d848f86de9b1e6b3a003256a01f |
|
14-Nov-2012 |
Rob Landley <rob@landley.net> |
Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style. The actual code should be the same afterward, this is just cosmetic refactoring.
/external/toybox/toys/other/uptime.c
|
f91b7c89bc852868692b9518185421ebb52d67b3 |
|
26-Aug-2012 |
Rob Landley <rob@landley.net> |
Regularize command headers, update links to standards documents.
/external/toybox/toys/other/uptime.c
|
3a9241add947cb6d24b5de7a8927517426a78795 |
|
25-Aug-2012 |
Rob Landley <rob@landley.net> |
Move commands into "posix", "lsb", and "other" menus/directories.
/external/toybox/toys/other/uptime.c
|