1. 16 Jul, 2016 3 commits
    • Craig Small's avatar
      library: dont use vm_min_free on non-Linux systems · 2e4959ba
      Craig Small authored
      For a specific slice of kernel versions we can get a better
      estimate of the available memory before the "real" available
      figure appears around kernel 3.2
      However, that middle method requires a /proc/sys/vm directory.
      FreeBSD 9.x used to emulate a < 2.6.27 kernel procfs meaning
      it never tried the middle method. FreeBSD 10.x emulates something
      more modern, but without the available figure and without a
      /proc/sys/vm, so the library falls into a hole.
      Hurd may to one day have this bug so we'll exclude him as well
      as its triggered by whatever number appears in
       commit 3f3b1a59
    • jim warner's avatar
      top: make compilation possible under netbsd-curses too · 63f8c16f
      jim warner authored
      Whoa, I had never considered an alternative to ncurses
      until the issue referenced below was raised. Thus, I'm
      surprised to find that 'tparm' was the only impediment
      to ultimately utilizing this alternate curses library.
      And, while we could have substituted that non-standard
      'tiparm' with only 2 arguments, we'll utilize the full
      parms compliment in the spirit of that original patch.
      Frankly, the task of developing an alternative library
      to that ncurses implementation really boggles my mind.
      Congratulations to rofl0r, whoever that masked man is.
      . issue raised
      . netbsd-curses home
      https://github.com/sabotage-linux/netbsd-cursesSigned-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
    • Craig Small's avatar
      Updated Chinese po file · bf7e7280
      Craig Small authored
  2. 13 Jul, 2016 1 commit
  3. 10 Jul, 2016 2 commits
    • Craig Small's avatar
      misc: Remove strtod tests · 100afbc1
      Craig Small authored
      Due to the interesting properties of floating points, the strtod
      tests have been removed. One day I may bother enabling them again.
    • Craig Small's avatar
      watch: define HOST_NAME_MAX · e564ddcb
      Craig Small authored
      Those infernal arches of kfreebsd-i386 (not -amd64) don't define
      HOST_NAME_MAX. This patch is a work-around for those systems with
      lacking include files.
  4. 09 Jul, 2016 16 commits
  5. 06 Jul, 2016 5 commits
    • Craig Small's avatar
      library: rename clashing pwcache functions · 639c5831
      Craig Small authored
      On MacOS the system already has user_from_uid and group_from_gid.
      These are renamed pwcache_get_user and pwcache_get_group.
      For the old library, pwcache_get_user needs to be exported
      for skill.
       #34Signed-off-by: Craig Small's avatarCraig Small <csmall@enc.com.au>
    • jim warner's avatar
      misc: adapted others to that new proc_t 'cgname' field · eca91686
      jim warner authored
      This patch adapts the ps program to a newly add proc_t
      field and provides for new support in that top program
      along with his man document (ps was already ok there).
      Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
    • jim warner's avatar
      library: play catchup with a new proc_t 'cgname' field · 5d54dc0d
      jim warner authored
      Since we're about to break the ABI/API anyway, why not
      go ahead and add yet another field to our proc_t which
      the newlib branch has had for awhile. This then allows
      the top program to offer 'control group name' and will
      also permit a few reductions in that ps program logic.
      And let's also clean up some unrelated warnings below.
      Clang warnings:
      proc/readproc.c:1178:50: warning: address of array 'ent->d_name' will always evaluate to 'true' [-Wpointer-bool-conversion]
          if(unlikely(unlikely(!ent) || unlikely(!ent->d_name))) return 0;
      proc/readproc.c:1205:50: warning: address of array 'ent->d_name' will always evaluate to 'true' [-Wpointer-bool-conversion]
          if(unlikely(unlikely(!ent) || unlikely(!ent->d_name))) return 0;
      Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
    • jim warner's avatar
      top: eliminate 2 author sections from the man document · c15aea9d
      jim warner authored
      We'll follow Craig's lead and whack some author stuff.
      [ and we'll honor the SEE ALSO guideline for periods ]
      [ but essentially ignore all the other busybody crap ]
      [ which, to be honest, we pretty much follow already ]
      [ actually, if you're told to follow a certain style ]
      [ in program examples, you've gone way past busybody ]
      [ crap and have entered the realm of anal retentive! ]
      Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
    • jim warner's avatar
      top: improved that #define PRETENDNOCAP implementation · 5e33325f
      jim warner authored
      This development (only) define can be used to turn top
      into a simple text program, disabling termcap effects.
      But input (at screen bottom) suffers from a line wrap.
      So, this commit just makes the input prompt processing
      a little more effective by adding one leading newline.
      Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
  6. 03 Jul, 2016 4 commits
  7. 02 Jul, 2016 5 commits
  8. 30 Jun, 2016 1 commit
  9. 17 Jun, 2016 1 commit
    • Craig Small's avatar
      Merge branch 'master' into 'master' · ee1fd80f
      Craig Small authored
      - Fixing incorrect memory usage assessment due to skipping vmflags parsing
      - Sometimes occurs when calculating memory usage of program using virtual memory. Vmflags line not recognized and affects calculations, resulting in nonsense values. Raised in Red Hat Bugzilla #1262864, affecting upstream.
      See merge request !15
  10. 15 Jun, 2016 1 commit
  11. 07 Jun, 2016 1 commit