1libssh2_sftp_fstat_ex(3)        libssh2 manual        libssh2_sftp_fstat_ex(3)
2
3
4

NAME

6       libssh2_sftp_fstat_ex - get or set attributes on a file handle
7

SYNOPSIS

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

DESCRIPTION

22       handle - SFTP File Handle as returned by libssh2_sftp_open(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
33

RETURN VALUE

35       Return   0  on  success  or  negative  on  failure.   It  returns  LIB‐
36       SSH2_ERROR_EAGAIN  when  it   would   otherwise   block.   While   LIB‐
37       SSH2_ERROR_EAGAIN  is  a negative number, it isn't really a failure per
38       se.
39
40

ERRORS

42       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
43
44       LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
45
46       LIBSSH2_ERROR_SOCKET_TIMEOUT -
47
48       LIBSSH2_ERROR_SFTP_PROTOCOL - An invalid  SFTP  protocol  response  was
49       received  on the socket, or an SFTP operation caused an errorcode to be
50       returned by the server.
51
52

SEE ALSO

54       libssh2_sftp_open(3)
55
56
57
58libssh2 0.15                      1 Jun 2007          libssh2_sftp_fstat_ex(3)
Impressum