1. 15 Apr, 2022 1 commit
  2. 14 Apr, 2022 1 commit
    • Rob Swindell's avatar
      Add configurable log size limit and retention count · 238b0b7c
      Rob Swindell authored
      For the following log files:
        hungup.log
        error.log
        crash.log
        hack.log
        spam.log
        guru.log
      
      ... they can be limited in size, in bytes, by the sysop, along with a maximum retention limit (number of *.#.log files). Configured in SCFG->System->Advanced.
      
      By default, the limit and keep numbers are 0, so "unlimited" (same behavior as before). Once sufficiently tested, I'll change the default in a stock main.cnf file to use a sensible limit (e.g. 10 log files of 10MB each, something like that).
      238b0b7c
  3. 23 Nov, 2020 1 commit
    • Rob Swindell's avatar
      The great C function dependency refactor of 2020 · c6808b3f
      Rob Swindell authored
      The goal of this commit is that: only modules that either are part-of sbbs.dll/libsbbs.so or need to link with/use that library, will #include "sbbs.h" and thus be dependent on its subsequent includes (e.g. cryptlib.h, jsapi.h). This should mean extdeps.mk can be trimmed way down.
      
      I also removed CVS keyword/comments and trimmed up the boilerplate copyright notice in modified and added source/header files in this commit.
      
      There is no functional change in behavior in this comment.
      c6808b3f
  4. 09 Sep, 2020 2 commits
    • Rob Swindell's avatar
      Replace fcopy with CopyFile (Win32 API function) on Windows. · 047ca2f8
      Rob Swindell authored
      Thanks to Wilfred van Velzen (2:280/464) for the tip. CopyFile() reduced
      the 1GB file copy test (from and to CIFS/SMB) duration from 37 seconds
      to 5 seconds with very low CPU utilization!
      Created a wrapper for non-Windows OSes in xpdev/dirwrap. This is where
      non-Windows-OS-specific optimized versions may appear in the future,
      but for now it's just the previous fcopy() implementation (using a 256KB
      stack buffer). sbbs doesn't actually copy files very often, so this
      isn't as big of a deal as one might assume. The JavaScript global
      method: file_copy() also benefits from these improvements, so any
      scripts that use it (e.g. tickit.js) will also benefit. binkit.js has
      its own file-copy logic (using a 2MB buffer), so no change there.
      047ca2f8
    • Rob Swindell's avatar
      Improve file copy (fcopy()) performance by more than an order of magnitude. · 914790f5
      Rob Swindell authored
      Using a 256KB read buffer for copying files (rather than one byte at a time).
      Apparently calling fread() is not the same as a bunch of calls to fgetc()
      after all. Or maybe it was the many calls to fputc() being replaced with
      fwrite(). Or maybe it was both. Anyway, decreased the time to copy a 1GB
      file from and to a Samba share over a Gb Ethernet network from 13 minutes
      to less than a minute. This matters when sbbs is backing up your data/mail
      base and the files are big. The mail base is locked while being backed up
      and the longer it takes to back up, the longer the mail base is locked and
      no mail can be received, read or sent during that time.
      914790f5
  5. 16 Aug, 2020 1 commit
  6. 23 Nov, 2018 1 commit
  7. 06 Nov, 2017 1 commit
  8. 16 Oct, 2011 1 commit
  9. 15 Jun, 2010 1 commit
  10. 12 Jan, 2009 2 commits
  11. 25 Aug, 2007 1 commit
  12. 11 Jul, 2007 1 commit
  13. 11 May, 2007 1 commit
  14. 10 May, 2007 2 commits
  15. 13 Jan, 2006 1 commit
  16. 25 Sep, 2005 1 commit
  17. 04 May, 2005 1 commit
  18. 02 Jan, 2005 1 commit
  19. 24 Dec, 2004 1 commit
  20. 19 Oct, 2004 1 commit
  21. 17 Oct, 2004 1 commit
  22. 04 Aug, 2004 1 commit
  23. 06 Jun, 2003 1 commit
  24. 01 May, 2003 1 commit
  25. 30 Apr, 2003 1 commit
  26. 29 Apr, 2003 1 commit
    • deuce's avatar
      · ef1d601f
      deuce authored
      Get rid of startup.h kludge but makeing YIELD() an empty macro in nopen and
      getuserdat
      ef1d601f
  27. 17 Feb, 2003 2 commits
  28. 26 Apr, 2002 5 commits
  29. 27 Dec, 2001 1 commit
  30. 08 Nov, 2000 1 commit
  31. 10 Oct, 2000 1 commit