1libssh2_sftp_fstat_ex(3) libssh2 manual libssh2_sftp_fstat_ex(3)
2
3
4
6 libssh2_sftp_fstat_ex - get or set attributes on a file handle
7
9 #include <libssh2.h> #include <libssh2_sftp.h>
10
11 int libssh2_sftp_fstat_ex(LIBSSH2_SFTP_HANDLE *handle, LIB‐
12 SSH2_SFTP_ATTRIBUTES *attrs, int setstat)
13
14 int libssh2_sftp_fstat(LIBSSH2_SFTP_HANDLE *handle, LIB‐
15 SSH2_SFTP_ATTRIBUTES *attrs)
16
17 int libssh2_sftp_fsetstat(LIBSSH2_SFTP_HANDLE *handle, LIB‐
18 SSH2_SFTP_ATTRIBUTES *attrs)
19
20
22 handle - SFTP File Handle as returned by libssh2_sftp_open_ex(3)
23
24 attrs - Pointer to attribute structure to set file metadata from or
25 into depending on the value of setstat.
26
27 setstat - When non-zero, the file's metadata will be updated with the
28 data found in attrs according to the values of attrs->flags and other
29 relevant member attributes.
30
31 Get or Set statbuf type data for a given LIBSSH2_SFTP_HANDLE instance.
32
34 Return 0 on success or negative on failure. It returns LIB‐
35 SSH2_ERROR_EAGAIN when it would otherwise block. While LIB‐
36 SSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per
37 se.
38
40 LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
41
42 LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
43
44 LIBSSH2_ERROR_SOCKET_TIMEOUT -
45
46 LIBSSH2_ERROR_SFTP_PROTOCOL - An invalid SFTP protocol response was
47 received on the socket, or an SFTP operation caused an errorcode to be
48 returned by the server.
49
51 libssh2_sftp_open_ex(3)
52
53
54
55libssh2 0.15 1 Jun 2007 libssh2_sftp_fstat_ex(3)