procps/proc
David Cantrell 3e7f78d296 Add -p|--pretty option to uptime(1) for pretty output.
This patch adds the -p option to the uptime(1) command, which changes
the uptime displayed from something like:

 10:35:52 up  2:33,  1 user,  load average: 1.69, 1.65, 1.63

to:

 up 2 hours, 33 minutes

I originally implemented this as the up(1) program about 14 years ago.
In 2008 or 2009, I created a patch for procps to add this functionality
to uptime and submitted it to the project.  Never heard from the
project and no new releases of procps had been made.  Then I found out
about this project and decided to port my patch to it.  So here it is.

This is really just for fun.  There is no real technical reason to
have this functionality.  But even now, 14 years later, I still get
emails asking where the source code for up is.  So I thought it would
be nice for the uptime command on Linux to sport the up functionality
by default.
2012-02-22 10:35:12 -05:00
..
alloc.c libproc-ng & ps: fix warning reported by smatch 2011-12-20 17:30:50 +01:00
alloc.h library: expanded/generalized memory allocation provisions 2011-12-11 22:26:49 +11:00
COPYING
devname.c libprocps: remove linux 2.7.0 check 2012-02-11 21:44:29 +01:00
devname.h Change restrict to __restrict in public includes 2012-01-09 21:44:51 +11:00
escape.c misc: compiler warning fixes 2011-12-20 17:30:50 +01:00
escape.h Change restrict to __restrict in public includes 2012-01-09 21:44:51 +11:00
ksym.c libproc-ng & ps: fix warning reported by smatch 2011-12-20 17:30:50 +01:00
libprocps.pc.in Renaming libprocfs to libprocps 2011-12-23 09:18:43 +11:00
libprocps.sym libprocps: hide private symbols 2012-01-24 21:54:01 +01:00
Makefile.am build-sys: correct all Makefile.am files for LOCALEDIR, etc 2012-01-04 08:58:54 +11:00
procps.h Change restrict to __restrict in public includes 2012-01-09 21:44:51 +11:00
pwcache.c library: exploit enhanced library memory allocation provisions 2011-12-11 22:26:55 +11:00
pwcache.h
readproc.c libprocps-ng: readproc.c: some type conversion help 2011-12-18 22:50:40 +11:00
readproc.h Change restrict to __restrict in public includes 2012-01-09 21:44:51 +11:00
sig.c proc: pull in ctype.h where needed 2012-01-24 08:55:05 +01:00
sig.h Change restrict to __restrict in public includes 2012-01-09 21:44:51 +11:00
slab.c libprocps: open file should be closed, not freed 2012-02-06 17:37:11 +01:00
slab.h fix overflow on huge NUMA boxes 2005-01-05 21:46:22 +00:00
sysinfo.c vmstat: do not scale si/so just like bi/bo 2011-12-18 22:54:20 +11:00
sysinfo.h Change restrict to __restrict in public includes 2012-01-09 21:44:51 +11:00
version.c Linux version for non-linux systems 2012-01-09 21:57:44 +11:00
version.h name change: procps -> procps-ng 2011-06-04 20:50:12 +02:00
wchan.h Change restrict to __restrict in public includes 2012-01-09 21:44:51 +11:00
whattime.c Add -p|--pretty option to uptime(1) for pretty output. 2012-02-22 10:35:12 -05:00
whattime.h Add -p|--pretty option to uptime(1) for pretty output. 2012-02-22 10:35:12 -05:00