libssh2\_sftp\_open\_r(3) libssh2 libssh2\_sftp\_open\_r(3)

# [NAME](#NAME)

libssh2\_sftp\_open\_r - convenience macro for [*libssh2\_sftp\_open\_ex\_r(3)*](/man/os/libssh2/libssh2_sftp_open_ex_r.3) calls

# [SYNOPSIS](#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);
```

# [DESCRIPTION](#DESCRIPTION)

This is a macro defined in a public libssh2 header file that is using the underlying function [*libssh2\_sftp\_open\_ex\_r(3)*](/man/os/libssh2/libssh2_sftp_open_ex_r.3).

# [RETURN VALUE](#RETURN_VALUE)

See [*libssh2\_sftp\_open\_ex\_r(3)*](/man/os/libssh2/libssh2_sftp_open_ex_r.3)

# [ERRORS](#ERRORS)

See [*libssh2\_sftp\_open\_ex\_r(3)*](/man/os/libssh2/libssh2_sftp_open_ex_r.3)

# [SEE ALSO](#SEE_ALSO)

[**libssh2\_sftp\_open\_ex\_r(3)**](/man/os/libssh2/libssh2_sftp_open_ex_r.3)

10 Apr 2023 libssh2 1.11.0

---

Document: libssh2_sftp_open_r(3) from libssh2 1.11.1-r11 (Chainguard OS)
Source: https://github.com/libssh2/libssh2.git
