1. 11 Jul, 2015 1 commit
    • Tobias Stoeckmann's avatar
      Handle out of memory conditions. · 30986cb2
      Tobias Stoeckmann authored
      malloc and realloc could return NULL when no memory is available.
      The code doesn't handle errors, so use xmalloc/xrealloc instead.
      
      While at it, sync alloclen's type with len's type, so both are ssize_t.
      30986cb2
  2. 24 Jun, 2015 1 commit
    • Craig Small's avatar
      pwdx: Do not link to libprocps · 6a0850be
      Craig Small authored
      pwdx doesn't actually use any of the libprocps functions but
      it is linked because it is the default.  This specific LDADD
      removes that unrequired linking.
      6a0850be
  3. 05 Aug, 2013 1 commit
  4. 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
  5. 14 Jun, 2012 1 commit
    • Andrej's avatar
      Fix pwdx argument parsing · 138701c4
      Andrej authored
      On some architectures/gcc's, the pwdx tool doesn't compile right
      because of bad type of a variable. Afterwards pwdx can't be
      persuaded to work. Use int as the type, like the other tools
      (like pgrep) do.
      Signed-off-by: Craig Small's avatarCraig Small <csmall@enc.com.au>
      138701c4
  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. 03 Mar, 2012 2 commits
  8. 05 Feb, 2012 1 commit
  9. 24 Jan, 2012 1 commit
  10. 08 Jan, 2012 1 commit
  11. 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
  12. 20 Dec, 2011 5 commits
  13. 18 Dec, 2011 1 commit
  14. 15 Oct, 2011 1 commit
  15. 18 Jan, 2011 1 commit
  16. 17 Jun, 2006 1 commit
  17. 30 Oct, 2005 2 commits
  18. 16 Oct, 2004 1 commit