Skip to content
Snippets Groups Projects
  1. Oct 27, 2016
    • Jan Beich's avatar
      94d23b48
    • Jan Beich's avatar
      ddd8709e
    • Jan Beich's avatar
      common: some FreeBSD headers are incomplete to avoid namespace pollution · 3d801be9
      Jan Beich authored
      In file included from src/common/x64/cpu_detect.cpp:16:
      /usr/include/machine/cpufunc.h:66:17: error: unknown type name 'u_int'
      static __inline u_int
                      ^
      /usr/include/machine/cpufunc.h:67:6: error: unknown type name 'u_int'
      bsfl(u_int mask)
           ^
      /usr/include/machine/cpufunc.h:69:2: error: unknown type name 'u_int'
              u_int   result;
              ^
      /usr/include/machine/cpufunc.h:75:17: error: unknown type name 'u_long'; did you mean 'long'?
      static __inline u_long
                      ^
      /usr/include/machine/cpufunc.h:76:6: error: unknown type name 'u_long'; did you mean 'long'?
      bsfq(u_long mask)
           ^
      /usr/include/machine/cpufunc.h:78:2: error: use of undeclared identifier 'u_long'; did you mean
            'long'?
              u_long  result;
              ^
      [...]
      3d801be9
    • Anthony J. Bentley's avatar
      common: convert to standard stat()/fstat() interfaces · 26af2b64
      Anthony J. Bentley authored
      Most modern Unix environments use 64-bit off_t by default: OpenBSD,
      FreeBSD, OS X, and Linux libc implementations such as Musl.
      
      glibc is the lone exception; it can default to 32 bits but this is
      configurable by setting _FILE_OFFSET_BITS.
      
      Avoiding the stat64()/fstat64() interfaces is desirable because they
      are nonstandard and not implemented on many systems (including
      OpenBSD and FreeBSD), and using 64 bits for stat()/fstat() is either
      the default or trivial to set up.
      26af2b64
    • Jan Beich's avatar
      common: stat64 is non-standard, hide on a random Unix · 51f92f0e
      Jan Beich authored
      src/common/file_util.cpp:79:19: error: variable has incomplete type 'struct stat64'
          struct stat64 file_info;
                        ^
      src/common/file_util.cpp:79:12: note: forward declaration of 'stat64'
          struct stat64 file_info;
                 ^
      src/common/file_util.cpp:99:19: error: variable has incomplete type 'struct stat64'
          struct stat64 file_info;
                        ^
      src/common/file_util.cpp:99:12: note: forward declaration of 'stat64'
          struct stat64 file_info;
                 ^
      src/common/file_util.cpp:342:19: error: variable has incomplete type 'struct stat64'
          struct stat64 buf;
                        ^
      src/common/file_util.cpp:342:12: note: forward declaration of 'stat64'
          struct stat64 buf;
                 ^
      src/common/file_util.cpp:359:19: error: variable has incomplete type 'struct stat64'
          struct stat64 buf;
                        ^
      src/common/file_util.cpp:359:12: note: forward declaration of 'stat64'
          struct stat64 buf;
                 ^
      4 errors generated.
      51f92f0e
    • Jan Beich's avatar
      common: only FreeBSD has thread affinity compatible with Linux · 8ce1ec7f
      Jan Beich authored
      src/common/thread.cpp:90:5: error: unknown type name 'cpu_set_t'; did you mean 'cpuset_t'?
          cpu_set_t cpu_set;
          ^~~~~~~~~
          cpuset_t
      /usr/include/sys/_cpuset.h:48:24: note: 'cpuset_t' declared here
      typedef struct _cpuset cpuset_t;
                             ^
      1 error generated.
      8ce1ec7f
    • Jan Beich's avatar
      common: define routines to set thread name on more BSDs · 1410bd3b
      Jan Beich authored
      src/common/thread.cpp:123:5: error: use of undeclared identifier 'pthread_setname_np'
          pthread_setname_np(pthread_self(), szThreadName);
          ^
      1 error generated.
      1410bd3b
    • Jan Beich's avatar
      hooks: convert pre-commit to POSIX syntax · 3925f4ff
      Jan Beich authored
      3925f4ff
    • wwylele's avatar
      Travis: only upload for push (#2134) · 0dfad003
      wwylele authored
      0dfad003
  2. Oct 25, 2016
  3. Oct 21, 2016
  4. Oct 20, 2016
  5. Oct 08, 2016
  6. Oct 06, 2016
  7. Oct 05, 2016
  8. Oct 04, 2016
  9. Oct 02, 2016
  10. Sep 30, 2016
  11. Sep 29, 2016
  12. Sep 23, 2016
  13. Sep 22, 2016
  14. Sep 21, 2016
Loading