libssh2_sftp_readlink(3)
β¨ libssh2_sftp_readlink β bestie edition β¨
okay so this page is from the libssh2 manual, and it's literally about one tiny little macro that's out here doing the most for you π
πΈ NAME πΈ
libssh2_sftp_readlink β it's a convenience macro for libssh2_sftp_symlink_ex(3), no cap
π SYNOPSIS π
#include <libssh2.h>
#include <libssh2_sftp.h>
#define libssh2_sftp_readlink(sftp, path, target, maxlen) \
libssh2_sftp_symlink_ex((sftp), (path), strlen(path), \
(target), (maxlen), \
LIBSSH2_SFTP_READLINK)
likeβ¦ look at her. she's a macro. she's gorgeous. she does exactly one thing and she does it well π«Ά
π¦ DESCRIPTION π¦
so here's the tea β β this is a macro, right, and she lives in a public libssh2 header file, out there in the open for everyone to see π
and underneath all that? she's just using the underlying function libssh2_sftp_symlink_ex(3). that's it. that's the whole vibe. she's a lil wrapper, a lil shortcut, the bestie who hands you the thing you actually needed so you don't have to type the long version yourself π
π RETURN VALUE π
go look at libssh2_sftp_symlink_ex(3), bestie β she's got the answers, fr fr
π ERRORS π
same deal, same energy: see libssh2_sftp_symlink_ex(3) for all the error deets β¨
π SEE ALSO π
libssh2_sftp_symlink_ex(3)β the main character this whole page is about, iykyk π
β οΈ real talk for one sec: this page tells you nothing on its own about what gets returned or what can go wrong β every single one of those answers is in libssh2_sftp_symlink_ex(3). so go read that one too, okay? it's not optional, it's required reading π
and that's the whole page!! π this lil guy came from libssh2 1.2.4, dated 20 Feb 2010 (yes she's vintage, she's an icon, she's timeless π), and her manual page name is libssh2_sftp_readlink(3). slay, bye πβ¨π¦
π¦ 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