Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

  1. 03 Dec, 2021 1 commit
  2. 06 Apr, 2021 1 commit
    • Deucе's avatar
      Fix msclock() and xp_timer() to be monotonic on *nix · 7710c344
      Deucе authored
      Previously, these both used gettimeofday() which is both expensive
      to call, and not monotonic.
      
      This fixes system.clock_ticks in JS and various internal bits. for
      when the UTC wall clock jumps.
      
      While we're here, fix the documention of system.clock_ticks
      7710c344
  3. 04 Apr, 2021 1 commit
  4. 10 Nov, 2020 1 commit
  5. 06 Nov, 2020 1 commit
    • Rob Swindell's avatar
      Replace ctype.h function calls with new MSVC-safe XPDEV macros · 8a7b7308
      Rob Swindell authored
      I'm fed-up with MSVC assertions in ctype functions (e.g. isdigit, isprint, isspace, etc.) when called with out-of-range (e.g. negative) values.
      
      This problem only affects MSVC debug builds, but if you run them (like I do), these things are like little time bombs that can drive you crazy (knocking your board out of service).
      
      The new macros names are bit more descriptive as well.
      8a7b7308
  6. 16 Aug, 2020 2 commits
  7. 10 Aug, 2020 1 commit
  8. 09 Aug, 2020 1 commit
  9. 08 Aug, 2020 2 commits
  10. 14 Apr, 2020 1 commit
  11. 10 Sep, 2019 1 commit
  12. 24 Jul, 2019 1 commit
  13. 16 Jul, 2019 1 commit
  14. 06 May, 2019 1 commit
    • rswindell's avatar
      The Win32 implementation of strcasestr() defined here is currently very · a0067415
      rswindell authored
      heavy-handed (performs strdup/malloc's and modifications of the strings),
      so a temporary hack is to perform a case-sensitive search (using the standard
      strstr() function) first. The results won't exactly match the traditional
      strstr() and the performance improvement is only for positive matches
      (where the correct case was guessed in the passed 'needle' string arg).
      TODO: re-write or copy a good/fast strcasestr() implementation for Win32 builds.
      a0067415
  15. 23 Jul, 2018 1 commit
  16. 20 Jul, 2018 1 commit
    • rswindell's avatar
      Fixed strcasestr() for Windows - oops. · 491b9fa1
      rswindell authored
      Created byte_estimate_to_str(), much like byte_count_to_str(), except the
      byte count is rounded to the nearest tera/giga/mega/kilo-byte
      (technically tebi/gibi/mebi/kibi-byte, but ugh, I'm old-sk00l!).
      491b9fa1
  17. 19 Jul, 2018 1 commit
  18. 03 Feb, 2018 2 commits
    • deuce's avatar
      Switch to using safe_snprintf() where the return value is used. · 254e7234
      deuce authored
      With the supported compilers, we can't rely on the return value of snprintf()
      and historically have replaced it with safe_snprintf().  For macOS however,
      snprintf() is apparently a macro, not a function, so gendefs.h throws and
      error due to redefinition.
      
      Rather than hack around on that, just ensure that we never use the return
      value of snprintf() and use safe_snprintf() to ensure we know what the
      return value will be.
      254e7234
    • deuce's avatar
      Make safe_snprintf() safer. · 732221fd
      deuce authored
      732221fd
  19. 06 Nov, 2017 1 commit
  20. 05 Nov, 2017 1 commit
    • rswindell's avatar
      Created duration_to_vstr() - like duration_to_str(), but it appends a space · 5d2f6c7c
      rswindell authored
      then a clarifying or modifying word (year[s], month[s], day[s], etc.).
      parse_byte_count() and parse_duration() now support a space between the
      numeric value (decimal digits) and the modifier. Hopefully this doesn't break
      anything, but it makes parse_duration() compatible with the strings generated
      with duration_to_vstr(). We might want a verbose version of byte_count_to_str()
      in the future, so I figured it made sense to go ahead and add the white-space
      skipping/parsing to prase_byte_count() now.
      5d2f6c7c
  21. 26 Aug, 2017 2 commits
  22. 13 Jul, 2016 1 commit
  23. 26 May, 2016 1 commit
  24. 18 Jan, 2016 1 commit
  25. 28 Sep, 2015 1 commit
  26. 28 Apr, 2014 1 commit
  27. 24 Apr, 2014 2 commits
  28. 23 Apr, 2014 1 commit
  29. 12 Mar, 2014 1 commit
  30. 05 Feb, 2014 1 commit
  31. 30 Apr, 2012 1 commit
  32. 27 Apr, 2012 2 commits
  33. 04 Nov, 2011 1 commit
  34. 24 Oct, 2011 1 commit