libssh2_sftp_setstat(3)

πŸ“¦
version 1.11.1 Β· 3 versions
, 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_setstat β€” the manual page, bestie edition πŸ’–

okay so this is the page for libssh2_sftp_setstat(3) from the libssh2 manual, and yes it's a whole vibe. it's short, it's sweet, and it's literally a convenience macro. slay.


✨ NAME ✨

libssh2_sftp_setstat β€” convenience macro for libssh2_sftp_stat_ex(3) calls

no cap, that's the whole name section. it's giving "I'm a wrapper and I know it" πŸ’…


🌸 SYNOPSIS 🌸

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

int
libssh2_sftp_setstat(LIBSSH2_SFTP *sftp, const char *path,
                     LIBSSH2_SFTP_ATTRIBUTES *attr);

look at that function signature. so clean. so iconic. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so bestie, here's the tea: libssh2_sftp_setstat is a macro defined in a public libssh2 header file. it's not out here doing brand new work β€” it's using the underlying function libssh2_sftp_stat_ex(3) to do the actual heavy lifting. main character energy by proxy, fr fr. πŸ‘‘


πŸŽ€ RETURN VALUE πŸŽ€

see libssh2_sftp_stat_ex(3). that's it. that's the section. go look over there, bestie 🫢


🌈 ERRORS 🌈

see libssh2_sftp_stat_ex(3). same deal. all the error lore lives in that other page πŸ’œ


⭐ SEE ALSO ⭐


and that's the whole page!! mwah πŸ’‹ this manual page came from libssh2 version 1.2.4, dated 20 Feb 2010, so it's a lil vintage but still absolutely iconic. periodt. πŸŽ€βœ¨