[BACK]Return to sftp-client.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sftp-client.h between version 1.2.2.1 and 1.2.2.2

version 1.2.2.1, 2001/03/12 15:44:14 version 1.2.2.2, 2001/03/21 18:53:04
Line 26 
Line 26 
   
 /* Client side of SSH2 filexfer protocol */  /* Client side of SSH2 filexfer protocol */
   
 /* Initialiase a SSH filexfer connection */  typedef struct SFTP_DIRENT SFTP_DIRENT;
   
   struct SFTP_DIRENT {
           char *filename;
           char *longname;
           Attrib a;
   };
   
   /*
    * Initialiase a SSH filexfer connection. Returns -1 on error or
    * protocol version on success.
    */
 int do_init(int fd_in, int fd_out);  int do_init(int fd_in, int fd_out);
   
 /* Close file referred to by 'handle' */  /* Close file referred to by 'handle' */
Line 35 
Line 46 
 /* List contents of directory 'path' to stdout */  /* List contents of directory 'path' to stdout */
 int do_ls(int fd_in, int fd_out, char *path);  int do_ls(int fd_in, int fd_out, char *path);
   
   /* Read contents of 'path' to NULL-terminated array 'dir' */
   int do_readdir(int fd_in, int fd_out, char *path, SFTP_DIRENT ***dir);
   
   /* Frees a NULL-terminated array of SFTP_DIRENTs (eg. from do_readdir) */
   void free_sftp_dirents(SFTP_DIRENT **s);
   
 /* Delete file 'path' */  /* Delete file 'path' */
 int do_rm(int fd_in, int fd_out, char *path);  int do_rm(int fd_in, int fd_out, char *path);
   
Line 45 
Line 62 
 int do_rmdir(int fd_in, int fd_out, char *path);  int do_rmdir(int fd_in, int fd_out, char *path);
   
 /* Get file attributes of 'path' (follows symlinks) */  /* Get file attributes of 'path' (follows symlinks) */
 Attrib *do_stat(int fd_in, int fd_out, char *path);  Attrib *do_stat(int fd_in, int fd_out, char *path, int quiet);
   
 /* Get file attributes of 'path' (does not follow symlinks) */  /* Get file attributes of 'path' (does not follow symlinks) */
 Attrib *do_lstat(int fd_in, int fd_out, char *path);  Attrib *do_lstat(int fd_in, int fd_out, char *path, int quiet);
   
 /* Get file attributes of open file 'handle' */  /* Get file attributes of open file 'handle' */
 Attrib *do_fstat(int fd_in, int fd_out, char *handle,  Attrib *do_fstat(int fd_in, int fd_out, char *handle, u_int handle_len,
     u_int handle_len);      int quiet);
   
 /* Set file attributes of 'path' */  /* Set file attributes of 'path' */
 int do_setstat(int fd_in, int fd_out, char *path, Attrib *a);  int do_setstat(int fd_in, int fd_out, char *path, Attrib *a);
Line 66 
Line 83 
   
 /* Rename 'oldpath' to 'newpath' */  /* Rename 'oldpath' to 'newpath' */
 int do_rename(int fd_in, int fd_out, char *oldpath, char *newpath);  int do_rename(int fd_in, int fd_out, char *oldpath, char *newpath);
   
   /* Rename 'oldpath' to 'newpath' */
   int do_symlink(int fd_in, int fd_out, char *oldpath, char *newpath);
   
   /* Return target of symlink 'path' - caller must free result */
   char *do_readlink(int fd_in, int fd_out, char *path);
   
 /* XXX: add callbacks to do_download/do_upload so we can do progress meter */  /* XXX: add callbacks to do_download/do_upload so we can do progress meter */
   

Legend:
Removed from v.1.2.2.1  
changed lines
  Added in v.1.2.2.2