home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / networking / tcpip / amitcp-support / ncftp-1.5.6 / src / rcs / ftprc.h,v < prev    next >
Encoding:
Text File  |  1994-06-29  |  1.2 KB  |  65 lines

  1. head    14020.11;
  2. access;
  3. symbols
  4.     ORIGINAL:14020.11;
  5. locks; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 14020.11
  10. date    93.05.21.05.45.31;    author alph;    state Exp;
  11. branches;
  12. next    ;
  13.  
  14.  
  15. desc
  16. @Original version
  17. @
  18.  
  19.  
  20. 14020.11
  21. log
  22. @checked in with -k by alph at 1993/10/10 19:59:56
  23. @
  24. text
  25. @/* ftprc.h */
  26.  
  27. #ifndef _ftprc_h_
  28. #define _ftprc_h_
  29.  
  30. /*  $RCSfile: ftprc.h,v $
  31.  *  $Revision: 14020.11 $
  32.  *  $Date: 93/05/21 05:45:31 $
  33.  */
  34.  
  35. #define NETRC "netrc"
  36. #define FTPRC "ncftprc"
  37.  
  38. #define RC_DELIM " \n\t,"
  39.  
  40. typedef struct site *siteptr;
  41. typedef struct site {
  42.     char *name;            /* name (or IP address) of site */
  43.     siteptr next;
  44. } site;
  45.  
  46. typedef struct recentsite {
  47.     char *name;            /* name (or IP address) of site */
  48.     char *dir;            /* directory we were in last time we called. */
  49.     time_t lastcall;    /* when this site was called last. */
  50. } recentsite;
  51.  
  52. int thrash_rc(void);
  53. void AddNewSitePtr(char *word);
  54. int ruserpass2(char *host, char **user, char **pass, char **acct);
  55. void GetFullSiteName(char *host, char *lastdir);
  56. void ReadRecentSitesFile(void);
  57. void WriteRecentSitesFile(void);
  58. void AddRecentSite(char *host, char *lastdir);
  59. void UpdateRecentSitesList(char *host, char *lastdir);
  60. void PrintSiteList(void);
  61.  
  62. #endif
  63. /* eof */
  64. @
  65.