1libssh2_sftp_rename_ex(3) libssh2 manual libssh2_sftp_rename_ex(3)
2
3
4
6 libssh2_sftp_rename_ex - rename a file
7
9 #include <libssh2.h> #include <libssh2_sftp.h>
10
11 ssize_t libssh2_sftp_write(LIBSSH2_SFTP_HANDLE *handle, const char
12 *buffer, size_t count);
13
14
16 handle - SFTP File Handle as returned by libssh2_sftp_open(3)
17
18 buffer - Pre-initialized data buffer to write to the LIBSSH2_SFTP_HAN‐
19 DLE.
20
21 count - Number of bytes from buffer to write. Note that it may not be
22 possible to write all bytes as requested.
23
24 Write a block of data to a LIBSSH2_SFTP_HANDLE. This method is modeled
25 after the POSIX write() function and uses the same calling semantics.
26
27
29 Actual number of bytes written or negative on failure. It returns LIB‐
30 SSH2_ERROR_EAGAIN when it would otherwise block. While LIB‐
31 SSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per
32 se.
33
34
36 LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
37
38 LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
39
40 LIBSSH2_ERROR_SOCKET_TIMEOUT -
41
42 LIBSSH2_ERROR_SFTP_PROTOCOL - An invalid SFTP protocol response was
43 received on the socket, or an SFTP operation caused an errorcode to be
44 returned by the server.
45
46
48 libssh2_sftp_open(3)
49
50
51
52libssh2 0.15 1 Jun 2007 libssh2_sftp_rename_ex(3)