1. 24 Jan, 2015 1 commit
    • Derek Fawcus's avatar
      'slabtop -o' with stdin not a tty would complain · 96c52499
      Derek Fawcus authored
      When the command is executed in one shot mode (-o) with stdin
      being something other than a terminal,  the tcgetattr() call
      would fail,  and generate an error message. e.g.:
      
      slabtop: terminal setting retrieval: Inappropriate ioctl for device
       Active / Total Objects (% used)    : 905319 / 915886 (98.8%)
      Signed-off-by: Craig Small's avatarCraig Small <csmall@enc.com.au>
      96c52499
  2. 03 Mar, 2014 1 commit
  3. 27 Dec, 2013 1 commit
  4. 07 Apr, 2013 1 commit
  5. 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
      available.
      042776e0
  6. 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
      1
      $ uptime >/dev/full ; echo $?
      uptime: write error: No space left on device
      1
      Signed-off-by: default avatarSami Kerola <kerolasa@iki.fi>
      52269d22
  7. 16 Mar, 2012 1 commit
  8. 03 Mar, 2012 3 commits
  9. 06 Jan, 2012 1 commit
  10. 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.
      fb11e1fe
  11. 02 Jan, 2012 1 commit
  12. 22 Dec, 2011 1 commit
    • Craig Small's avatar
      Fixed slabtop -o crash · 46e51c92
      Craig Small authored
      printw should only be used for ncurses enabled screens, slabtop -o needs
      to use the standard printf function, as before.
      46e51c92
  13. 20 Dec, 2011 5 commits
  14. 02 Dec, 2011 1 commit
  15. 05 Jan, 2005 2 commits
  16. 27 Mar, 2004 1 commit
  17. 24 Jan, 2004 1 commit