libssh2_sftp_open_r(3)

πŸ“¦
version 1.11.1 Β· 2 versions
  • 1.11.1 Β· alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.11.0 Β· ubuntu noble
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– libssh2_sftp_open_r β€” the shortcut bestie πŸ’–

okay so this is a page from the libssh2 manual, and the star of the show is libssh2_sftp_open_r β€” a little convenience macro that's basically the chill, low-effort way to call libssh2_sftp_open_ex_r(3). no cap, that's the whole vibe.


✨ NAME ✨

libssh2_sftp_open_r β€” a convenience macro for libssh2_sftp_open_ex_r(3) calls πŸŽ€


🌸 SYNOPSIS 🌸

#include <libssh2.h>
#include <libssh2_sftp.h>

LIBSSH2_SFTP_HANDLE *
libssh2_sftp_open_r(LIBSSH2_SFTP *sftp, const char *filename,
                    unsigned long flags,
                    long mode,
                    LIBSSH2_SFTP_ATTRIBUTES *attrs);

like… look at her. she's serving parameters. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay bestie, here's the tea: this one is a macro, and it lives right in a public libssh2 header file. it's not doing anything wild on its own β€” it's just wrapping around and using the underlying function libssh2_sftp_open_ex_r(3). so the real main character energy is over there, and this macro is the cute lil shortcut so you don't have to type the whole long thing. iykyk ✨


πŸ”₯ RETURN VALUE πŸ”₯

go peek at libssh2_sftp_open_ex_r(3), bestie β€” that's where the answer lives πŸ’œ


😭 ERRORS 😭

same deal fr fr: see libssh2_sftp_open_ex_r(3) πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘


not me giving you the shortest manpage ever and still making it iconic πŸ™ˆ but seriously β€” every road here leads back to libssh2_sftp_open_ex_r(3), so that's your next read. periodt. πŸ’–

and that's a wrap, gorgeous 🫢 this was libssh2 1.11.0, dated 10 Apr 2023 β€” thanks for reading my little page, ily, go open some sftp handles πŸ’…βœ¨πŸŒˆ