libssh2_sftp_open_r(3)
π 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 π β¨π
π¦ where this page comes from
- alpine 3.22: libssh2-doc 1.11.1-r3 Β· BSD-3-Clause
- alpine 3.23: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- alpine 3.24: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- arch rolling: libssh2 1.11.1-7 Β· BSD-3-Clause
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u1 Β· BSD3
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u2 Β· BSD3
- epel 10: libssh2-docs 1.11.1-9.el10_3 Β· BSD-3-Clause
- epel 9: libssh2-docs 1.11.1-9.el9 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-4.fc43 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-9.fc43 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-5.fc44 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-9.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- ubuntu questing: libssh2-1-dev 1.11.1-1build1
- ubuntu questing: libssh2-1-dev 1.11.1-1ubuntu0.25.10.2
- ubuntu resolute: libssh2-1-dev 1.11.1-1build2 Β· BSD3
- ubuntu resolute: libssh2-1-dev 1.11.1-1ubuntu0.26.04.4 Β· BSD3
- ubuntu stonking: libssh2-1-dev 1.11.1-6 Β· BSD3
- π the page's license: BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms