• src/xpdev/filewrap.c

    From rswindell@VERT to CVS commit on Wednesday, August 14, 2019 05:59:30
    src/xpdev filewrap.c 1.46 1.47
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/home/rswindell/sbbs/src/xpdev

    Modified Files:
    filewrap.c
    Log Message:
    Use "Open file description locks" when available (i.e. Linux 3.15 and later) This variation on fcntl() record-locks resolves multiple-thread / forking
    issue with region locks. No longer falls back to using flock() (whole-file locks), when OFD locks are available and used successfully. At the least,
    this should provide a performance boost for shared files using region
    locks (on Linux). No change for Windows (region locks already worked sanely among multiple threads) and other *nixes (that use POSIX fcntl() locks
    only).



    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, August 31, 2019 02:51:40
    src/xpdev filewrap.c 1.47 1.48
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv30044

    Modified Files:
    filewrap.c
    Log Message:
    Don't use Linux OFD locks in builds without Large File Support because: https://patchwork.kernel.org/patch/9289177/



    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, August 31, 2019 02:57:54
    src/xpdev filewrap.c 1.48 1.49
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv30882

    Modified Files:
    filewrap.c
    Log Message:
    If _FILE_OFFSET_BITS is not defined, that also means no LFS support



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