• src/sbbs3/getstats.c

    From Rob Swindell@1:103/705 to Git commit to sbbs/master on Sat Sep 26 13:38:58 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/39a77d9acafccfee0dd178ae
    Modified Files:
    src/sbbs3/getstats.c
    Log Message:
    For subs that allow voting, getposts() will exclude vote messages from total.Vote messages and poll closures are not displayed to users as messages, soexclude them from the total "posts" returned from getposts(). This usesthe new smb_msg_count() function which is slower than simply checking thesize of the index file (*.sid) and dividing by the index record size. Sofor sub-boards that don't support voting, use the old/faster scheme.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to Main/master on Mon Nov 23 14:03:07 2020
    https://gitlab.synchro.net/main/sbbs/-/commit/1d8e2cc427c4da99e44fd861
    Modified Files:
    src/sbbs3/getstats.c
    Log Message:
    Fix the sbbs.h dependency unintentionally left after c_dep_refactor
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Aug 17 02:13:46 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/52d64f2934d867dc7d66f198
    Modified Files:
    src/sbbs3/getstats.c
    Log Message:
    getstats.c: don't require the thread wrappers to count the bases

    getstats.c is linked into the stand-alone utilities as well as into the
    BBS, and those utilities import only xpdev.props, not xpdev_mt.props. The message/file total cache added in a464bc3efd (finite-27-know, 2026-08-17) called pthread_once() and pthread_mutex_*() unconditionally, so dupefind, makeuser, sbbsecho, upgrade_to_v319 and upgrade_to_v320 all failed to
    link with LNK2019 on those four symbols. GCC did not catch it: on Linux
    pthread is available to every link set, so the dependency was invisible
    there.

    Serialize only where XPDEV_THREAD_SAFE says the wrappers are linked. The utilities are single-threaded, so there is nothing to serialize against
    and the cache logic is unchanged for them.

    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)