Skip to content
Snippets Groups Projects
  1. Jan 14, 2013
    • Brad King's avatar
      Merge changes I76fe77a7,I0297d1cd,I06ac6ee8,I840f1a92 · 9f18e507
      Brad King authored
      * changes:
        SystemInformation: query memory size with sysconf() on Solaris
        SystemInformation: count processors with sysconf() on Solaris
        SystemInformation: factor out QueryProcessorBySysconf()
        SystemInformation: factor out QueryMemoryBySysconf()
      9f18e507
  2. Jan 11, 2013
    • Rolf Eike Beer's avatar
      SystemInformation: query memory size with sysconf() on Solaris · 342c0ad2
      Rolf Eike Beer authored
      The manpage suggests this is available since Solaris 2.3, which is from
      1993. No need to spawn a process then for this information. As an extra
      bonus we get information about the available physical memory for free,
      which was missing before. On 32 bit processes we will still fall back
      to the old method as the values returned by a 32 bit process on a 64
      bit host are limited to 4 GiB.
      
      Rename QuerySolarisInfo() to QuerySolarisProcessor() as that is now what
      this function is about.
      
      Change-Id: I76fe77a7d746d92d1752119f2c2703652c575339
      342c0ad2
  3. Jan 10, 2013
  4. Jan 09, 2013
  5. Jan 08, 2013
    • Rolf Eike Beer's avatar
      SystemInformation: speed up copying process data · f1068caf
      Rolf Eike Beer authored
      Append the whole process output in one go to our buffer instead of doing
      this byte by byte.
      
      Change-Id: I060aac43e59d514e999a9fca897ce5fd76fdddd6
      f1068caf
    • Rolf Eike Beer's avatar
      SystemInformation: fix calling kwsysProcess_WaitForData() · 79ef34ef
      Rolf Eike Beer authored
      kwsysProcess_WaitForData() may return kwsysProcess_Pipe_Timeout, which
      is 255. The current check would take that as sign of success and read
      invalid data or even crash.
      
      Change-Id: I148f5d435a088cb3814f513cce4f13e5358e5730
      79ef34ef
    • Rolf Eike Beer's avatar
      SystemInformation: fix conversion warning · 297758a5
      Rolf Eike Beer authored
      SystemInformation.cxx: In member function 'bool kwsys::SystemInformationImplementation::QueryProcessor()':
      SystemInformation.cxx:3029:31: warning: conversion to 'unsigned int' from 'long int' may alter its value [-Wconversion]
      
      Change-Id: I622072bf176d96814a8b17ce66b099cbd797913a
      297758a5
  6. Jan 07, 2013
  7. Jan 06, 2013
  8. Jan 05, 2013
  9. Jan 04, 2013
  10. Jan 03, 2013
  11. Jan 02, 2013
    • Brad King's avatar
      SystemTools: Fix MakeDirectory with colon in path · cb5f835f
      Brad King authored
      Remove logic that skips all slashes before the first ':'.  This does not
      even make sense for Windows drive letter handling.  While at it, remove
      no-op logic that appears to try to remove trailing slashes.
      
      Change-Id: Ib8ed75324ee0149c7899e52ec4a5bf2d0a19d17a
      cb5f835f
    • Rolf Eike Beer's avatar
      SystemInformation: use /proc/cpuinfo only when present · 640210e5
      Rolf Eike Beer authored
      Try to open /proc/cpuinfo only on platforms where it's presence is
      expected, namely Linux and Cygwin.
      
      Otherwise try sysconf(_SC_NPROCESSORS_ONLN) as last resort to count
      processors. Also account for the slightly different name on IRIX.
      
      Change-Id: I89eb5e198a6b3a33b581b70d2213096cbac8ca7c
      640210e5
Loading