• src/xpdev/filewrap.h

    From deuce@VERT to CVS commit on Monday, October 28, 2013 19:03:53
    src/xpdev filewrap.h 1.34 1.35
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv24933

    Modified Files:
    filewrap.h
    Log Message:
    Missing ;


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Saturday, August 31, 2019 15:16:21
    src/xpdev filewrap.h 1.38 1.39
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv27652

    Modified Files:
    filewrap.h
    Log Message:
    New useful function-like macro: CLOSE_OPEN_FILE(fd), conditionally closes
    the file and sets the descriptor to -1 (if not already < 0).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Thursday, May 20, 2021 03:02:41
    https://gitlab.synchro.net/main/sbbs/-/commit/27c79cad3318dff6889f8318
    Modified Files:
    src/xpdev/filewrap.h
    Log Message:
    Create a Win32 wrapper for mkstemp() as MSVC doesn't have it

    SBBSecho uses mkstemp() now (instead of tempnam()) - so we need this POSIX function wrapper for Windows builds to succeed.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Saturday, February 19, 2022 23:38:06
    https://gitlab.synchro.net/main/sbbs/-/commit/cb76b1463cfec65f1dc90e6f
    Modified Files:
    src/xpdev/filewrap.h
    Log Message:
    Add DISABLE_MKSTEMP_DEFINE support

    This macro as written won't compile on mingw32 due to the attributes
    on _mktemp(). This could be worked around, but it's easier to just
    disable it since I don't need it, and nobody else is building with
    mingw32.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Friday, February 25, 2022 13:05:26
    https://gitlab.synchro.net/main/sbbs/-/commit/e4adeee8dff35620f95fe55e
    Modified Files:
    src/xpdev/filewrap.h
    Log Message:
    Add a mingw32 compatible mode_t

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Friday, February 25, 2022 14:30:46
    https://gitlab.synchro.net/main/sbbs/-/commit/cff6d9918688352e8d41b19b
    Modified Files:
    src/xpdev/filewrap.h
    Log Message:
    Fix sbbs-windows build

    BCC error filewrap.h 77: Multiple declaration for 'mode_t'

    Introduced in commit e4adeee8

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Thursday, March 10, 2022 00:15:59
    https://gitlab.synchro.net/main/sbbs/-/commit/2465ac46256220aefa49cc95
    Modified Files:
    src/xpdev/filewrap.h
    Log Message:
    Fix FreeBSD/Clang C++ error

    /usr/include/c++/v1/iterator:1168:87: error: expected unqualified-id
    ...&& traits_type::eq_int_type(__sbuf_->sputc(__c), traits_type::eof()))
    ^ /src/sbbs3/../xpdev/filewrap.h:124:21: note:

    expanded from macro 'eof'
    #define eof(fd) (tell(fd)==filelength(fd))

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (in GitKraken)@VERT to Git commit to main/sbbs/master on Sunday, February 19, 2023 13:42:55
    https://gitlab.synchro.net/main/sbbs/-/commit/edf9bc341b88832d376973d7
    Modified Files:
    src/xpdev/filewrap.h
    Log Message:
    _chsize_s() is only available in MSVC, apparently

    Fixes Borland and mingw-GCC builds.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on ChromeOS)@VERT to Git commit to main/sbbs/master on Sunday, June 11, 2023 14:33:40
    https://gitlab.synchro.net/main/sbbs/-/commit/c2291604b9b9a678e79167a4
    Modified Files:
    src/xpdev/filewrap.h
    Log Message:
    Fix runtime errors when built with UBSan

    nopen.c:37:15: runtime error: left shift of 1 by 31 places cannot be
    represented in type 'int'
    nopen.c:39:18: runtime error: left shift of 1 by 31 places cannot be
    represented in type 'int'
    userdat.c:251:111: runtime error: left shift of 1 by 31 places cannot be
    represented in type 'int'

    There are lot of 1<<31 macro definitions in this repo, so I'm expecting a
    lot more of this type of fix to be required to make UBSan happy.

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