• src/sbbs3/userdat.c userdat.h

    From Rob Swindell (in GitKraken)@1:103/705 to Git commit to main/sbbs/master on Sun Feb 19 15:26:00 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/dd38606e246a2a4e2179d407
    Modified Files:
    src/sbbs3/userdat.c userdat.h
    Log Message:
    find_login_id() will now return 0 if login ID is an invalid user numberIf login by number is supported and a client attempts login with an invalid usernumber, don't log an error, e.g.mail 3264 SMTPS [46.148.x.x] !ERROR -2 getting data on user (6123)But rather treat it as an invalid login attempt.Also change lastuser() and total_users() to return int instead of uint. 2 billion users should be plenty.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows)@1:103/705 to Git commit to main/sbbs/master on Wed Aug 9 18:28:43 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/efdbc232d655709c4b3551dc
    Modified Files:
    src/sbbs3/userdat.c userdat.h
    Log Message:
    Add some helper functions for modifying node records in node.dab, atomicallyThese should probably be moved (along with other node functions in this file)to nodedat.* some day.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Sun Dec 1 15:58:21 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/44710259f11cc8837d1735f5
    Modified Files:
    src/sbbs3/userdat.c userdat.h
    Log Message:
    Unify the int return values of userdat.c functions

    These functions now return a common set of non-zero error values (where appropriate), defined in userdat.h

    Don't return errno.
    --- SBBSecho 3.23-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 Nov 3 20:19:41 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/cffd380eed5827ccf109521d
    Modified Files:
    src/sbbs3/userdat.c userdat.h
    Log Message:
    Add xtrn_is_running() function

    Helpful for easy determination if the specified external program is running (for a node) or not.
    --- SBBSecho 3.31-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Wed Dec 17 21:37:22 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/48922a15c6cb43b450835340
    Modified Files:
    src/sbbs3/userdat.c userdat.h
    Log Message:
    logoutuserdat() uses new function fputuserdat() to reduce open/lock/r/w ops

    Reduces from 4 to 1 the open/lock/read/write/close operatons of the userbase (user.tab) file upon user log-off.

    There's more places in sbbs where we do a lot of putuser* calls that could be (now) optimized in a similar fashion, but logoutuserdat() is called often (especially by the web, ftp, mail and services servers), so this one was obvious place to reduce contention on the userbase file.
    --- SBBSecho 3.33-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)