home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / AP / TERMNET / NCFTP183 / DEFAULTS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-20  |  2.7 KB  |  131 lines

  1. /* Defaults.h: default values for ftp's common variables */
  2.  
  3. /* These are all surrounded by #ifndef blocks so you can just use
  4.  * the -D flag with your compiler (i.e. -DZCAT=\"/usr/local/bin/zcat\").
  5.  */
  6.  
  7. #ifndef _DEFAULTS_H_
  8. #define _DEFAULTS_H_
  9.  
  10. /*  $RCSfile: defaults.h,v $
  11.  *  $Revision: 14020.13 $
  12.  *  $Date: 93/07/09 10:58:27 $
  13.  */
  14.  
  15. #ifndef NEWMAILMESSAGE            /* For english speakers, "You have new mail." */
  16. #define NEWMAILMESSAGE "You have new mail."
  17. #endif
  18.  
  19. #ifndef ZCAT                    /* Usually "zcat," but use the full pathname */
  20.                                 /* if possible. */
  21. #    ifdef GZCAT                    /* If you said you had gnu's zcat, use it
  22.                                  * since it can do .Z files too.
  23.                                  */
  24.  
  25. #        define ZCAT GZCAT
  26. #    else /* !GZCAT */
  27. #        define ZCAT "zcat"
  28. #    endif    /* ifdef GZCAT */
  29. #endif    /* ifndef ZCAT */
  30.  
  31. #ifndef MAX_XFER_BUFSIZE
  32. #define MAX_XFER_BUFSIZE 32768
  33. #endif
  34.  
  35. #ifndef dANONOPEN                /* 1 or 0, usually 1 */
  36. #define dANONOPEN    1
  37. #endif
  38.  
  39. #ifndef dDEBUG                    /* 1 or 0, usually 0 */
  40. #define dDEBUG 0
  41. #endif
  42.  
  43. #ifndef dMPROMPT                /* Usually 1, I prefer 0... */
  44. #define dMPROMPT 0
  45. #endif
  46.  
  47. #ifndef dVERBOSE                /* V_QUIET, V_ERRS, V_TERSE, V_VERBOSE */
  48. #define dVERBOSE V_TERSE
  49. #endif
  50.  
  51. #ifndef dPROMPT                    /* short: "@Bftp@P>" */
  52.                                 /* long: "@B@E @UNcFTP@P @B@M@D@P ->" */
  53. #define dPROMPT "@B@c@Mncftp@P>" /* new two line prompt */
  54. #endif
  55.  
  56. #ifndef dPAGER                    /* if set to empty string, act like 'cat' */
  57. #define dPAGER "more"
  58. #endif
  59.  
  60. #ifndef dLOGNAME                /* usu. put in the user's home directory. */
  61. #define dLOGNAME "~/.ftplog"
  62. #endif
  63.  
  64. #ifndef dRECENTF                /* usu. put in the user's home directory. */
  65. #define dRECENTF "~/.ncrecent"
  66. #endif
  67.  
  68. #ifndef dMAXRECENTS                /* limit to how many recent sites to save. */
  69. #define dMAXRECENTS 50
  70. #endif
  71.  
  72. #ifndef dRECENT_ON                /* Do you want the recent log on? */
  73.                                 /* usually 1. */
  74. #define dRECENT_ON 1
  75. #endif
  76.  
  77.                                 /* Do you want logging on by default? */
  78. #ifndef dLOGGING                /* usually 0 */
  79. #define dLOGGING 0
  80. #endif
  81.  
  82. #ifndef dTYPE                    /* usually TYPE_A */
  83. #define dTYPE TYPE_A
  84. #endif
  85.  
  86. #ifndef dTYPESTR                /* usually "ascii" */
  87. #define dTYPESTR "ascii"
  88. #endif
  89.  
  90. #ifndef dREDIALDELAY            /* usu. 60 (seconds). */
  91. #define dREDIALDELAY 60
  92. #endif
  93.  
  94. #ifndef CMDLINELEN
  95. #define CMDLINELEN 256
  96. #endif
  97.  
  98. #ifndef RECEIVEDLINELEN
  99. #define RECEIVEDLINELEN 256
  100. #endif
  101.  
  102. #ifndef MAXMACROS
  103. #define MAXMACROS 16
  104. #endif
  105.  
  106. #ifndef MACBUFLEN                /* usually 4096. */
  107. #define MACBUFLEN 4096
  108. #endif
  109.  
  110. /* Do you want binary transfers by default? */
  111. #ifndef dAUTOBINARY                /* usually 1 */
  112. #define dAUTOBINARY 1
  113. #endif
  114.  
  115. #ifndef dPROGRESS
  116. #define dPROGRESS pr_percent    /* can be: pr_none, pr_percent, pr_philbar,
  117.                                  * or pr_kbytes
  118.                                  */
  119. #endif
  120.  
  121. /* Default login name at gateway */
  122. #ifdef GATEWAY
  123. #    ifndef dGATEWAY_LOGIN
  124. #        define dGATEWAY_LOGIN "ftp"
  125. #    endif
  126. #endif
  127.  
  128. #endif    /* _DEFAULTS_H_ */
  129.  
  130. /* eof */
  131.