1. 14 Aug, 2013 1 commit
    • Rolf Eike Beer's avatar
      SystemInformation: fix truncation warnings · dbc8fa1b
      Rolf Eike Beer authored
      Fixes the following truncation warnings from g++ 4.8:
      
      kwsys/SystemInformation.cxx: In member function 'int cmsys::SystemInformationImplementation::GetFullyQualifiedDomainName(std::string&)':
      kwsys/SystemInformation.cxx:1738:31: warning: conversion to 'socklen_t {aka unsigned int}' from 'long unsigned int' may alter its value [-Wconversion]
               = (fam==AF_INET?sizeof(struct sockaddr_in):sizeof(struct sockaddr_in6));
                                     ^
      kwsys/SystemInformation.cxx:1738:58: warning: conversion to 'socklen_t {aka unsigned int}' from 'long unsigned int' may alter its value [-Wconversion]
               = (fam==AF_INET?sizeof(struct sockaddr_in):sizeof(struct sockaddr_in6));
                                                                ^
      kwsys/SystemInformation.cxx: In member function 'bool cmsys::SystemInformationImplementation::QueryLinuxMemory()':
      kwsys/SystemInformation.cxx:3839:33: warning: conversion to 'int' from 'long unsigned int' may alter its value [-Wconversion]
           char *r=fgets(buffer, sizeof(buffer), fd); // Skip "total: used:..."
                                       ^
      
      Change-Id: I1016a7e31325ee550322dde7a21ffc92d6ca49dc
      dbc8fa1b
  2. 02 Aug, 2013 1 commit
    • Burlen Loring's avatar
      SystemInformation : Better stack trace · 1d882d4c
      Burlen Loring authored
      Add supprt for C++ name demangling during call stack
      introspection. This will be enabled at compile time
      if the required system libraries,header files, and
      compiler features are detected. Add a method so that
      the stack trace may be obtained on demand not just
      from within the stack trace signal handler.
      
      Change-Id: Ie829f4b24ab331e39b97f54e63564df70f129b7e
      1d882d4c
  3. 21 May, 2013 2 commits
    • Rolf Eike Beer's avatar
      fix warnings about sizeof() return value truncation · 039d9598
      Rolf Eike Beer authored
      Change-Id: Ib8b8b5d406e5123ac9c280bb5d2948916f5a997b
      039d9598
    • Rolf Eike Beer's avatar
      SystemInformation: fix truncation warnings · 87abd647
      Rolf Eike Beer authored
      .../kwsys/SystemInformation.cxx: In member function ‘int cmsys::SystemInformationImplementation::GetFullyQualifiedDomainName(std::string&)’:
      .../kwsys/SystemInformation.cxx:1475:31: warning: conversion to ‘int’ from ‘long unsigned int’ may alter its value [-Wconversion]
               = (fam==AF_INET?sizeof(struct sockaddr_in):sizeof(struct sockaddr_in6));
                                     ^
      .../kwsys/SystemInformation.cxx:1475:58: warning: conversion to ‘int’ from ‘long unsigned int’ may alter its value [-Wconversion]
               = (fam==AF_INET?sizeof(struct sockaddr_in):sizeof(struct sockaddr_in6));
      
      POSIX says the type of the second argument to getnameinfo() should be
      socklen_t so use that as the variable type here. Chances are high that this
      has the same size as size_t so the warning would go away.
      
      Change-Id: Ie2816b401a8fe7d615fa17a58b611e2cad14e4ea
      87abd647
  4. 15 Mar, 2013 1 commit
    • Sean McBride's avatar
      SystemInformation: Replace __GNUG__ with __GNUC__ · 13f5badd
      Sean McBride authored
      Commit 857bda17 (SystemInformation: Report more information, 2012-05-29)
      added use of __GNUG__ which is equivalent to __GNUC__ && __cplusplus.
      Since this is a C++ source file and we use __GNUC__ elsewhere it is more
      consistent and less redundant to use the latter.
      
      Change-Id: I6428e2601310dd35c14ac643dcec199b01977842
      13f5badd
  5. 31 Jan, 2013 1 commit
  6. 12 Jan, 2013 2 commits
  7. 11 Jan, 2013 3 commits
    • 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
    • Rolf Eike Beer's avatar
      SystemInformation: make IsHyperThreadingSupported() return bool · 5a27bd4f
      Rolf Eike Beer authored
      Change-Id: Ic964ad79ab256e0ce693764065e92528a255fddc
      5a27bd4f
    • Rolf Eike Beer's avatar
      SystemInformation: fix "Multi-character character constant" · c6057a06
      Rolf Eike Beer authored
      Borland compiler correctly complains about this:
      
      Warning W8098 SystemInformation.cxx 3773:
         Multi-character character constant in function
         SystemInformationImplementation::IsHyperThreadingSupported()
      Warning W8098 SystemInformation.cxx 3775:
         Multi-character character constant in function
         SystemInformationImplementation::IsHyperThreadingSupported()
      Warning W8098 SystemInformation.cxx 3777:
         Multi-character character constant in function
         SystemInformationImplementation::IsHyperThreadingSupported()
      
      Change-Id: Id5b5411ed0d04d985dfc8235a6c8c817a4e12ccf
      c6057a06
  8. 10 Jan, 2013 2 commits
  9. 09 Jan, 2013 4 commits
  10. 08 Jan, 2013 3 commits
    • 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
  11. 05 Jan, 2013 8 commits
  12. 03 Jan, 2013 4 commits
  13. 02 Jan, 2013 8 commits