1. 13 Jul, 2016 1 commit
  2. 16 Apr, 2016 1 commit
  3. 10 Mar, 2016 1 commit
    • Wayne Porter's avatar
      Added Cygwin build support · eea5e467
      Wayne Porter authored
      strverscmp is included to satisfy a dependency in Cygwin.
      Excluded utmp and prctl functions that are not supported currently.
  4. 03 Mar, 2016 1 commit
    • Craig Small's avatar
      A locale-independent strtod · 32e1b2e2
      Craig Small authored
      There is a need in some utilities to have a way of accepting both
      types of decimal points "." and ",". The only way seems to be to
      rebuild strtod().
      This new function will accept "123.456" and "123,456" as 123.456
      and considers them the same number. It means we lose thousands
      separator, but this is rarely used.
      test scripts are added to check the function returns the proper
      values. There was simpler predecessor that got stuck on negative
      0 or -0.123 which these tests flushed out.
  5. 13 Jun, 2015 1 commit
    • Craig Small's avatar
      Create test process · 420cd9c7
      Craig Small authored
      For the test suite, procps used to use sleep which would just
      create a process or two to test the tools against.  Some setups
      coreutils creates all programs including sleep into one blob which
      means a lot of the tests fail, see issue #2
      procps has its own sleep program now.
  6. 02 May, 2015 3 commits
  7. 26 Aug, 2014 2 commits
  8. 28 Jun, 2014 1 commit
    • Craig Small's avatar
      Manpage translations in Makefiles · 0f8f7603
      Craig Small authored
      The translated manpage generation has moved from scripts to
      Makefiles. This asists with conditional building as well, no
      need to regenerate the German pgrep man page if both
      the original pgrep.1 and man-po/de.po is not changed.
      My Makefile-fu fails me on producing a cross-product or double
      iteration for languages and man pages. Until that is solved
      each man page is explicitly built. No big deal but it doesn't
      look elegant in the Makefile. Languages will be picked
      up automatically if they are found in man-po, man-po/top or
      The README describes the three-step process for translating
      the files, incase I forget or someone else wants to update them.
  9. 26 Jun, 2013 1 commit
    • jim warner's avatar
      library: for atexit() support, fix fileutils for EPIPE · ce5e9959
      jim warner authored
      When fileutils with stream error checking was borrowed
      from GNU lib, an omission was also propagated where an
      errno of EPIPE wouldn't be preserved in close_stream()
      making a test for EPIPE in close_stdout() meaningless.
      This patch corrects such oversight so that an errno of
      EPIPE no longer produces 'write error' at program end.
      ( gnulib provides for optionally ignoring EPIPE, but )
      ( if a program chooses to ignore it, then their code )
      ( appears to suffer from this close_stream oversight )
      . original fileutilis addition
      commit c7cf98b0
      . bugzilla report
  10. 16 Apr, 2013 1 commit
    • Aristeu Rozanski's avatar
      pgrep: introduce support for namespaces · de7b3b92
      Aristeu Rozanski authored
      A PID should be specified with --ns:
      	$ pgrep --ns 12345
      which will only match the processes which belong to to the same 6
      namespaces. It is also possible to specify which namespaces to test:
      	$ pgrep --ns 12345 --nslist mnt,net,ipc
      which will match processes that belong to the same mount, network and
      IPC namespaces as PID 12345.
      Signed-off-by: default avatarAristeu Rozanski <arozansk@redhat.com>
  11. 20 Mar, 2013 2 commits
    • Rainer Müller's avatar
      configure: Check for error.h · 838e5d89
      Rainer Müller authored
      For portability, check for error.h during configure and define
      HAVE_ERROR_H accordingly.
      If this header is not available, emulate the functionality of error()
      from glibc with an inline wrapper in include/c.h.
    • Rainer Müller's avatar
      configure: Check for stdio_ext.h · 6df4fc40
      Rainer Müller authored
      For portability, check for stdio_ext.h during configure and define
      HAVE_STDIO_EXT_H accordingly.
      If the current system does not provide this header, use a fallback for
      __fpending(). This definition will not work on all systems as it relies
      on internal data structures of libc. A more portable solution should be
      preferred, for example by using gnulib.
  12. 14 Mar, 2013 1 commit
    • jim warner's avatar
      miscellaneous: clean up trailing whitespace throughout · fe75e26a
      jim warner authored
      The entire tree's polluted with inappropriate trailing
      whitespace. This commit rids our environment of all of
      those useless keystrokes. Unfortunately, it sure ain't
      a permanent solution and requires every contributor to
      instruct their editor(s) to prevent or eliminate them.
      Plus it's strongly recommended we all insert something
      like what's shown below to our '.gitconfig' file so as
      to provide at least some warnings when we try to apply
      any patches (git am) that do contain the #@!%& things!
      ~/.gitconfig excerpt ---------------------------------
        whitespace = trailing-space, space-before-tab, blank-at-eof
        whitespace = warn
      --------------------------------- ~/.gitconfig excerpt
      Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
  13. 06 Nov, 2012 1 commit
  14. 23 Mar, 2012 1 commit
  15. 03 Mar, 2012 2 commits
  16. 11 Feb, 2012 1 commit
  17. 08 Jan, 2012 1 commit
  18. 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.
  19. 20 Dec, 2011 3 commits