1. 18 May, 2018 1 commit
  2. 20 Dec, 2017 2 commits
    • jim warner's avatar
      slabtop: let's stop always ignoring the last slab node · 1013f271
      jim warner authored
      This patch will fix a fencepost error that has existed
      since at least 2004, the result of which was to always
      completely ignore that last merged / sorted slab node.
      [ Of course, little harm was done since output would ]
      [ have been limited to a terminal's height. Thus, it ]
      [ would have required a huge display before noticed. ]
      [ But, now that the run once switch shows everything ]
      [ such an omission would become really unforgivable. ]
      Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
    • jim warner's avatar
      slabtop: for run_once switch (-o), output all slabinfo · 0ef497bb
      jim warner authored
      It doesn't make sense to restrict the number of output
      lines to the total of terminal rows when using the run
      once command line switch. And, in fact, that's how the
      newlib version of slabtop works. Everything is output.
      So, this commit places both versions on equal footing.
      [ it was even worse if the switch was used in a pipe ]
      [ since only 23 lines would have then been displayed ]
      Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
  3. 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>
  4. 03 Mar, 2014 1 commit
  5. 27 Dec, 2013 1 commit
  6. 07 Apr, 2013 1 commit
  7. 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
  8. 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: 's avatarSami Kerola <kerolasa@iki.fi>
  9. 16 Mar, 2012 1 commit
  10. 03 Mar, 2012 3 commits
  11. 06 Jan, 2012 1 commit
  12. 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.
  13. 02 Jan, 2012 1 commit
  14. 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.
  15. 20 Dec, 2011 5 commits
  16. 02 Dec, 2011 1 commit
  17. 05 Jan, 2005 2 commits
  18. 27 Mar, 2004 1 commit
  19. 24 Jan, 2004 1 commit