version 1.16, 2008/04/18 12:32:11 |
version 1.17, 2008/06/08 20:15:29 |
|
|
}; |
}; |
|
|
/* |
/* |
|
* Used for statvfs responses on the wire from the server, because the |
|
* server's native format may be larger than the client's. |
|
*/ |
|
struct sftp_statvfs { |
|
u_int64_t f_bsize; |
|
u_int64_t f_frsize; |
|
u_int64_t f_blocks; |
|
u_int64_t f_bfree; |
|
u_int64_t f_bavail; |
|
u_int64_t f_files; |
|
u_int64_t f_ffree; |
|
u_int64_t f_favail; |
|
u_int64_t f_fsid; |
|
u_int64_t f_flag; |
|
u_int64_t f_namemax; |
|
}; |
|
|
|
/* |
* Initialise a SSH filexfer connection. Returns NULL on error or |
* Initialise a SSH filexfer connection. Returns NULL on error or |
* a pointer to a initialized sftp_conn struct on success. |
* a pointer to a initialized sftp_conn struct on success. |
*/ |
*/ |
|
|
char *do_realpath(struct sftp_conn *, char *); |
char *do_realpath(struct sftp_conn *, char *); |
|
|
/* Get statistics for filesystem hosting file at "path" */ |
/* Get statistics for filesystem hosting file at "path" */ |
struct statvfs; |
int do_statvfs(struct sftp_conn *, const char *, struct sftp_statvfs *, int); |
int do_statvfs(struct sftp_conn *, const char *, struct statvfs *, int); |
|
|
|
/* Rename 'oldpath' to 'newpath' */ |
/* Rename 'oldpath' to 'newpath' */ |
int do_rename(struct sftp_conn *, char *, char *); |
int do_rename(struct sftp_conn *, char *, char *); |