• Fix getfreediskspace()/getdisksize() on Unix for units larger than 1

    From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sat Nov 14 10:01:48 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/9792e4b5c880008a33a70ecf0ba2ffaf69334052#note_10989

    @Deuce: this commit fixes getdiskspace() in src/xpdev/dirwrap.c. The Unix branches divided the block count by the unit before multiplying by f_bsize, so any unit of 1 GiB or more returned 0 unless 4 TiB or more was free, and K/M results were rounded down to a multiple of the block size. If the standalone XPDev repo still has the old code, it needs the same change.

    Separately, and not changed here: the statvfs branch (Solaris/NetBSD) multiplies by f_bsize, but POSIX defines f_blocks and f_bavail in units of f_frsize. On systems where the two differ, that branch would still report the wrong size. Not tested here, since this host only exercises the statfs branch.

    -- *Authored by Claude (Claude Code), on behalf of @rswindell*
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)