home *** CD-ROM | disk | FTP | other *** search
/ ftp.ncftp.com / ftp.ncftp.com.zip / ftp.ncftp.com / ncftp / ncftp-1.9.5.tar.gz / ncftp-1.9.5.tar / ncftp-1.9.5 / defaults.h < prev    next >
C/C++ Source or Header  |  1995-10-01  |  3KB  |  139 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. /* If passive FTP can be used, this specifies whether it is turned on
  48.  * by default.  If not, we have passive mode available, but are using
  49.  * Port ftp by default.
  50.  */
  51. #ifndef    dPASSIVE
  52. #define    dPASSIVE 0                /* Use PORT for more portability... */
  53. #endif
  54.  
  55. #ifndef dVERBOSE                /* V_QUIET, V_ERRS, V_TERSE, V_VERBOSE */
  56. #define dVERBOSE V_TERSE
  57. #endif
  58.  
  59. #ifndef dPROMPT                    /* short: "@Bftp@P>" */
  60.                                 /* long: "@B@E @UNcFTP@P @B@M@D@P ->" */
  61. #define dPROMPT "@B@c@Mncftp@P>" /* new two line prompt */
  62. #endif
  63.  
  64. #ifndef dPAGER                    /* if set to empty string, act like 'cat' */
  65. #define dPAGER "more"
  66. #endif
  67.  
  68. #ifndef dLOGNAME                /* usu. put in the user's home directory. */
  69. #define dLOGNAME "~/.ftplog"
  70. #endif
  71.  
  72. #ifndef dRECENTF                /* usu. put in the user's home directory. */
  73. #define dRECENTF "~/.ncrecent"
  74. #endif
  75.  
  76. #ifndef dMAXRECENTS                /* limit to how many recent sites to save. */
  77. #define dMAXRECENTS 50
  78. #endif
  79.  
  80. #ifndef dRECENT_ON                /* Do you want the recent log on? */
  81.                                 /* usually 1. */
  82. #define dRECENT_ON 1
  83. #endif
  84.  
  85.                                 /* Do you want logging on by default? */
  86. #ifndef dLOGGING                /* usually 0 */
  87. #define dLOGGING 0
  88. #endif
  89.  
  90. #ifndef dTYPE                    /* usually TYPE_A */
  91. #define dTYPE TYPE_A
  92. #endif
  93.  
  94. #ifndef dTYPESTR                /* usually "ascii" */
  95. #define dTYPESTR "ascii"
  96. #endif
  97.  
  98. #ifndef dREDIALDELAY            /* usu. 60 (seconds). */
  99. #define dREDIALDELAY 60
  100. #endif
  101.  
  102. #ifndef CMDLINELEN
  103. #define CMDLINELEN 256
  104. #endif
  105.  
  106. #ifndef RECEIVEDLINELEN
  107. #define RECEIVEDLINELEN 256
  108. #endif
  109.  
  110. #ifndef MAXMACROS
  111. #define MAXMACROS 16
  112. #endif
  113.  
  114. #ifndef MACBUFLEN                /* usually 4096. */
  115. #define MACBUFLEN 4096
  116. #endif
  117.  
  118. /* Do you want binary transfers by default? */
  119. #ifndef dAUTOBINARY                /* usually 1 */
  120. #define dAUTOBINARY 1
  121. #endif
  122.  
  123. #ifndef dPROGRESS
  124. #define dPROGRESS pr_philbar    /* can be: pr_none, pr_percent, pr_philbar,
  125.                                  * or pr_kbytes
  126.                                  */
  127. #endif
  128.  
  129. /* Default login name at gateway */
  130. #ifdef GATEWAY
  131. #    ifndef dGATEWAY_LOGIN
  132. #        define dGATEWAY_LOGIN "ftp"
  133. #    endif
  134. #endif
  135.  
  136. #endif    /* _DEFAULTS_H_ */
  137.  
  138. /* eof */
  139.