• src/sftp/sftp_client.c

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Tuesday, November 05, 2024 14:48:41
    https://gitlab.synchro.net/main/sbbs/-/commit/7dc93a672283caf22560886a
    Modified Files:
    src/sftp/sftp_client.c
    Log Message:
    Don't retypedef sftpc_state_t for ancient compilers

    (ie: gcc 4.4)
    --- SBBSecho 3.21-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Saturday, March 14, 2026 18:14:10
    https://gitlab.synchro.net/main/sbbs/-/commit/678a9471557ba4c43e11ab77
    Modified Files:
    src/sftp/sftp_client.c
    Log Message:
    Free error information in sctpc_end()
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Friday, April 24, 2026 23:01:06
    https://gitlab.synchro.net/main/sbbs/-/commit/2710c20e54f8a1affdcfb024
    Modified Files:
    src/sftp/sftp_client.c
    Log Message:
    sftp: drop pthread_key TLS for last-error, store on state struct

    pthread_key_create / pthread_setspecific / pthread_getspecific are not
    shimmed by xpdev/threadwrap.h (only pthread_mutex_* is), so sftp_client.c
    did not build on Win32 or any other non-pthreads target. Replace the TLS
    slot with a plain uint32_t last_error field on struct sftp_client_state; state->mtx already serializes every op, so no new lock is needed. Public
    API (sftpc_get_err and the bool returns from sftpc_open/read/write/etc.)
    is unchanged.

    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)