1. 20 Mar, 2013 1 commit
    • Rainer Müller's avatar
      configure: check for program_invocation_name · 042776e0
      Rainer Müller authored
      For portabiliy, check for program_invocation_name during configure and
      define HAVE_PROGRAM_INVOCATION_NAME accordingly. Use of this symbol is
      now enclosed with the appropriate #ifdef block.
      The symbol program_invocation_name is only used for error message
      handling using error(), so it's safe to omit this if it is not
  2. 26 Dec, 2012 1 commit
  3. 23 Mar, 2012 1 commit
    • Sami Kerola's avatar
      all: check stdout and stderr status at exit · 52269d22
      Sami Kerola authored
      If stream status is not checked at the end of execution below problem
      would not report error, or non-zero exit code.  The uptime is just an
      example same was true with all commands of the project.
      $ uptime >&- ; echo $?
      uptime: write error: Bad file descriptor
      $ uptime >/dev/full ; echo $?
      uptime: write error: No space left on device
      Signed-off-by: default avatarSami Kerola <kerolasa@iki.fi>
  4. 03 Mar, 2012 1 commit
  5. 22 Feb, 2012 1 commit
    • David Cantrell's avatar
      Add -p|--pretty option to uptime(1) for pretty output. · 3e7f78d2
      David Cantrell authored
      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
       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.
  6. 03 Jan, 2012 1 commit
    • Craig Small's avatar
      Changed the err and warns to macros · fb11e1fe
      Craig Small authored
      err and warn are BSD format but they are not recommended by library
      developers.  However their consiseness is useful!
      The solution is to use some macros that create xerr etc which then
      just map to the error() function.  The next problem is error() uses
      program_invocation_name so we set this to program_invovation_short_name
      This is a global set but seems to be the convention (or at least errors
      are on the short name only) used everywhere else.
  7. 20 Dec, 2011 3 commits
  8. 08 Oct, 2002 1 commit
  9. 01 Feb, 2002 2 commits