sftp_conn
static struct sftp_conn *
struct sftp_conn *conn = NULL, *conn2 = NULL;
struct sftp_conn *conn = NULL;
prepare_remote_path(struct sftp_conn *conn, const char *path)
source_sftp(int argc, char *src, char *targ, struct sftp_conn *conn)
sink_sftp(int argc, char *dst, const char *src, struct sftp_conn *conn)
int sftp_glob(struct sftp_conn *, const char *, int,
throughlocal_sftp(struct sftp_conn *from, struct sftp_conn *to,
void source_sftp(int, char *, char *, struct sftp_conn *);
void sink_sftp(int, char *, const char *, struct sftp_conn *);
void throughlocal_sftp(struct sftp_conn *, struct sftp_conn *,
sftp_realpath_expand(struct sftp_conn *conn, const char *path, int expand)
sftp_realpath(struct sftp_conn *conn, const char *path)
sftp_can_expand_path(struct sftp_conn *conn)
sftp_expand_path(struct sftp_conn *conn, const char *path)
sftp_copy(struct sftp_conn *conn, const char *oldpath, const char *newpath)
sftp_rename(struct sftp_conn *conn, const char *oldpath, const char *newpath,
get_handle(struct sftp_conn *conn, u_int expected_id, size_t *len,
sftp_hardlink(struct sftp_conn *conn, const char *oldpath, const char *newpath)
sftp_symlink(struct sftp_conn *conn, const char *oldpath, const char *newpath)
sftp_fsync(struct sftp_conn *conn, u_char *handle, u_int handle_len)
sftp_readlink(struct sftp_conn *conn, const char *path)
sftp_statvfs(struct sftp_conn *conn, const char *path, struct sftp_statvfs *st,
sftp_fstatvfs(struct sftp_conn *conn, const u_char *handle, u_int handle_len,
sftp_lsetstat(struct sftp_conn *conn, const char *path, Attrib *a)
send_read_request(struct sftp_conn *conn, u_int id, u_int64_t offset,
send_open(struct sftp_conn *conn, const char *path, const char *tag,
sftp_download(struct sftp_conn *conn, const char *remote_path,
send_msg(struct sftp_conn *conn, struct sshbuf *m)
get_msg_extended(struct sftp_conn *conn, struct sshbuf *m, int initial)
download_dir_internal(struct sftp_conn *conn, const char *src, const char *dst,
sftp_download_dir(struct sftp_conn *conn, const char *src, const char *dst,
sftp_upload(struct sftp_conn *conn, const char *local_path,
upload_dir_internal(struct sftp_conn *conn, const char *src, const char *dst,
get_msg(struct sftp_conn *conn, struct sshbuf *m)
send_string_request(struct sftp_conn *conn, u_int id, u_int code, const char *s,
sftp_upload_dir(struct sftp_conn *conn, const char *src, const char *dst,
handle_dest_replies(struct sftp_conn *to, const char *to_path, int synchronous,
sftp_crossload(struct sftp_conn *from, struct sftp_conn *to,
send_string_attrs_request(struct sftp_conn *conn, u_int id, u_int code,
crossload_dir_internal(struct sftp_conn *from, struct sftp_conn *to,
get_status(struct sftp_conn *conn, u_int expected_id)
sftp_crossload_dir(struct sftp_conn *from, struct sftp_conn *to,
sftp_can_get_users_groups_by_id(struct sftp_conn *conn)
sftp_get_users_groups_by_id(struct sftp_conn *conn,
sftp_remote_is_dir(struct sftp_conn *conn, const char *path)
get_handle(struct sftp_conn *conn, u_int expected_id, size_t *len,
get_decode_stat(struct sftp_conn *conn, u_int expected_id, int quiet, Attrib *a)
get_decode_statvfs(struct sftp_conn *conn, struct sftp_statvfs *st,
struct sftp_conn *
struct sftp_conn *ret;
sftp_proto_version(struct sftp_conn *conn)
sftp_get_limits(struct sftp_conn *conn, struct sftp_limits *limits)
sftp_close(struct sftp_conn *conn, const u_char *handle, u_int handle_len)
sftp_lsreaddir(struct sftp_conn *conn, const char *path, int print_flag,
sftp_readdir(struct sftp_conn *conn, const char *path, SFTP_DIRENT ***dir)
sftp_rm(struct sftp_conn *conn, const char *path)
sftp_mkdir(struct sftp_conn *conn, const char *path, Attrib *a, int print_flag)
sftp_rmdir(struct sftp_conn *conn, const char *path)
sftp_stat(struct sftp_conn *conn, const char *path, int quiet, Attrib *a)
sftp_lstat(struct sftp_conn *conn, const char *path, int quiet, Attrib *a)
sftp_fstat(struct sftp_conn *conn, const u_char *handle, u_int handle_len,
sftp_setstat(struct sftp_conn *conn, const char *path, Attrib *a)
sftp_fsetstat(struct sftp_conn *conn, const u_char *handle, u_int handle_len,
int sftp_lstat(struct sftp_conn *, const char *, int, Attrib *);
int sftp_setstat(struct sftp_conn *, const char *, Attrib *);
int sftp_fsetstat(struct sftp_conn *, const u_char *, u_int, Attrib *);
int sftp_lsetstat(struct sftp_conn *conn, const char *path, Attrib *a);
char *sftp_realpath(struct sftp_conn *, const char *);
char *sftp_expand_path(struct sftp_conn *, const char *);
int sftp_can_expand_path(struct sftp_conn *);
int sftp_statvfs(struct sftp_conn *, const char *, struct sftp_statvfs *, int);
int sftp_rename(struct sftp_conn *, const char *, const char *, int);
int sftp_copy(struct sftp_conn *, const char *, const char *);
int sftp_hardlink(struct sftp_conn *, const char *, const char *);
int sftp_symlink(struct sftp_conn *, const char *, const char *);
int sftp_fsync(struct sftp_conn *conn, u_char *, u_int);
int sftp_download(struct sftp_conn *, const char *, const char *, Attrib *,
int sftp_download_dir(struct sftp_conn *, const char *, const char *, Attrib *,
int sftp_upload(struct sftp_conn *, const char *, const char *,
int sftp_upload_dir(struct sftp_conn *, const char *, const char *,
int sftp_crossload(struct sftp_conn *from, struct sftp_conn *to,
int sftp_crossload_dir(struct sftp_conn *from, struct sftp_conn *to,
int sftp_can_get_users_groups_by_id(struct sftp_conn *conn);
int sftp_get_users_groups_by_id(struct sftp_conn *conn,
int sftp_remote_is_dir(struct sftp_conn *conn, const char *path);
struct sftp_conn *sftp_init(int, int, u_int, u_int, u_int64_t);
u_int sftp_proto_version(struct sftp_conn *);
int sftp_get_limits(struct sftp_conn *, struct sftp_limits *);
int sftp_close(struct sftp_conn *, const u_char *, u_int);
int sftp_readdir(struct sftp_conn *, const char *, SFTP_DIRENT ***);
int sftp_rm(struct sftp_conn *, const char *);
int sftp_mkdir(struct sftp_conn *, const char *, Attrib *, int);
int sftp_rmdir(struct sftp_conn *, const char *);
int sftp_stat(struct sftp_conn *, const char *, int, Attrib *);
sftp_glob(struct sftp_conn *conn, const char *pattern, int flags,
int sftp_glob(struct sftp_conn *, const char *, int,
struct sftp_conn *conn;
lookup_and_record(struct sftp_conn *conn,
get_remote_user_groups_from_glob(struct sftp_conn *conn, glob_t *g)
get_remote_user_groups_from_dirents(struct sftp_conn *conn, SFTP_DIRENT **d)
void get_remote_user_groups_from_glob(struct sftp_conn *conn, glob_t *g);
void get_remote_user_groups_from_dirents(struct sftp_conn *conn, SFTP_DIRENT **d);
do_df(struct sftp_conn *conn, const char *path, int hflag, int iflag)
struct sftp_conn *conn;
int sftp_glob(struct sftp_conn *, const char *, int,
parse_dispatch_command(struct sftp_conn *conn, const char *cmd, char **pwd,
complete_match(EditLine *el, struct sftp_conn *conn, char *remote_path,
interactive_loop(struct sftp_conn *conn, char *file1, char *file2)
struct sftp_conn *conn;
process_get(struct sftp_conn *conn, const char *src, const char *dst,
process_put(struct sftp_conn *conn, const char *src, const char *dst,
do_ls_dir(struct sftp_conn *conn, const char *path,
do_globbed_ls(struct sftp_conn *conn, const char *path,