summaryrefslogtreecommitdiff
path: root/libs/libssh2/include/libssh2_sftp.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libssh2/include/libssh2_sftp.h')
-rw-r--r--libs/libssh2/include/libssh2_sftp.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libs/libssh2/include/libssh2_sftp.h b/libs/libssh2/include/libssh2_sftp.h
index 9d7a8fbb66..ab7b0af4de 100644
--- a/libs/libssh2/include/libssh2_sftp.h
+++ b/libs/libssh2/include/libssh2_sftp.h
@@ -303,11 +303,20 @@ LIBSSH2_API int libssh2_sftp_rename_ex(LIBSSH2_SFTP *sftp,
LIBSSH2_SFTP_RENAME_ATOMIC | \
LIBSSH2_SFTP_RENAME_NATIVE)
+LIBSSH2_API int libssh2_sftp_posix_rename_ex(LIBSSH2_SFTP *sftp,
+ const char *source_filename,
+ size_t srouce_filename_len,
+ const char *dest_filename,
+ size_t dest_filename_len);
+#define libssh2_sftp_posix_rename(sftp, sourcefile, destfile) \
+ libssh2_sftp_posix_rename_ex((sftp), (sourcefile), strlen(sourcefile), \
+ (destfile), strlen(destfile))
+
LIBSSH2_API int libssh2_sftp_unlink_ex(LIBSSH2_SFTP *sftp,
const char *filename,
unsigned int filename_len);
#define libssh2_sftp_unlink(sftp, filename) \
- libssh2_sftp_unlink_ex((sftp), (filename), strlen(filename))
+ libssh2_sftp_unlink_ex((sftp), (filename), (unsigned int)strlen(filename))
LIBSSH2_API int libssh2_sftp_fstatvfs(LIBSSH2_SFTP_HANDLE *handle,
LIBSSH2_SFTP_STATVFS *st);