• src/smblib/smbdefs.h smblib.c smblib.h

    From rswindell@VERT to CVS commit on Thu Nov 26 10:08:55 2015
    src/smblib smbdefs.h 1.83 1.84 smblib.c 1.150 1.151 smblib.h 1.71 1.72
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv28472

    Modified Files:
    smbdefs.h smblib.c smblib.h
    Log Message:
    Created smb_getmsgidx_by_time(), derived from sbbs_t::getmsgnum().


    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Mon Dec 5 09:01:21 2016
    src/smblib smbdefs.h 1.95 1.96 smblib.c 1.166 1.167 smblib.h 1.80 1.81
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv11344

    Modified Files:
    smbdefs.h smblib.c smblib.h
    Log Message:
    Created new function: smb_first_in_thread() which returns the number of the oldest *existing* message in the thread referenced by the specified msg.


    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Fri Nov 24 22:24:24 2017
    src/smblib smbdefs.h 1.99 1.100 smblib.c 1.171 1.172 smblib.h 1.82 1.83
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/home/rswindell/sbbs/src/smblib

    Modified Files:
    smbdefs.h smblib.c smblib.h
    Log Message:
    Created smb_initsmbhdr() which performs a subset of what smb_create() does,
    it justs initializes/re-initializes the SMB header and status header
    records.
    Created smb_t.continue_on_error which (currently) allows an smb_open() to continue event though some (normally fatal) errors have been detected
    (e.g. corrupted SMB header).
    This is all in the name of being able to recover message bases after more
    forms of corruption.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Sat Sep 26 17:38:58 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/a3e430e09c2f2ba36464173c
    Modified Files:
    src/smblib/smbdefs.h smblib.c smblib.h
    Log Message:
    Add smb_msg_type() and smb_msg_count() for index-based msg counting.

    In support of message bases with vote-messages and poll-closures:

    smb_msg_type() returns an enum smb_msg_type inferred from the combination
    of attribute flags specified (should match msghdr_t.type).

    smb_msg_count() calculates the number of message index records of the
    specified type(s) (a bit-field) by reading the message base index file. This value should only used for info/display purposes, so no locking is performed
    to return the result as fast as possible.

    This allows an accurate number of "posts" (posted *messages*) to be queried
    and displayed to a user when appropriate (e.g. instead of
    smb.status.total_msgs or just the size of the index file divided by the size
    of an index record). In that case, since vote messages and poll closures
    aren't displayed as messages to users, exclude those from the count to reduce confusion. For message bases that don't support voting, this scheme is not necessary.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net