home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume39 / ncftp / part05 / defaults.h next >
Encoding:
C/C++ Source or Header  |  1993-08-25  |  2.5 KB  |  124 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. #define ZCAT "zcat"
  22. #endif
  23.  
  24. #ifndef MAX_XFER_BUFSIZE
  25. #define MAX_XFER_BUFSIZE 32768
  26. #endif
  27.  
  28. #ifndef dANONOPEN                /* 1 or 0, usually 1 */
  29. #define dANONOPEN    1
  30. #endif
  31.  
  32. #ifndef dDEBUG                    /* 1 or 0, usually 0 */
  33. #define dDEBUG 0
  34. #endif
  35.  
  36. #ifndef dMPROMPT                /* Usually 1, I prefer 0... */
  37. #define dMPROMPT 0
  38. #endif
  39.  
  40. #ifndef dVERBOSE                /* V_QUIET, V_ERRS, V_TERSE, V_VERBOSE */
  41. #define dVERBOSE V_TERSE
  42. #endif
  43.  
  44. #ifndef dPROMPT                    /* short: "@Bftp@P>" */
  45.                                 /* long: "@B@E @UNcFTP@P @B@M@D@P ->" */
  46. #define dPROMPT "@B@c@Mncftp@P>" /* new two line prompt */
  47. #endif
  48.  
  49. #ifndef dPAGER                    /* if set to empty string, act like 'cat' */
  50. #define dPAGER "more"
  51. #endif
  52.  
  53. #ifndef dLOGNAME                /* usu. put in the user's home directory. */
  54. #define dLOGNAME "~/.ftplog"
  55. #endif
  56.  
  57. #ifndef dRECENTF                /* usu. put in the user's home directory. */
  58. #define dRECENTF "~/.ncrecent"
  59. #endif
  60.  
  61. #ifndef dMAXRECENTS                /* limit to how many recent sites to save. */
  62. #define dMAXRECENTS 16
  63. #endif
  64.  
  65. #ifndef dRECENT_ON                /* Do you want the recent log on? */
  66.                                 /* usually 1. */
  67. #define dRECENT_ON 1
  68. #endif
  69.  
  70.                                 /* Do you want logging on by default? */
  71. #ifndef dLOGGING                /* usually 0 */
  72. #define dLOGGING 0
  73. #endif
  74.  
  75. #ifndef dTYPE                    /* usually TYPE_A */
  76. #define dTYPE TYPE_A
  77. #endif
  78.  
  79. #ifndef dTYPESTR                /* usually "ascii" */
  80. #define dTYPESTR "ascii"
  81. #endif
  82.  
  83. #ifndef dREDIALDELAY            /* usu. 60 (seconds). */
  84. #define dREDIALDELAY 60
  85. #endif
  86.  
  87. #ifndef CMDLINELEN
  88. #define CMDLINELEN 256
  89. #endif
  90.  
  91. #ifndef RECEIVEDLINELEN
  92. #define RECEIVEDLINELEN 256
  93. #endif
  94.  
  95. #ifndef MAXMACROS
  96. #define MAXMACROS 16
  97. #endif
  98.  
  99. #ifndef MACBUFLEN                /* usually 4096. */
  100. #define MACBUFLEN 4096
  101. #endif
  102.  
  103. /* Do you want binary transfers by default? */
  104. #ifndef dAUTOBINARY                /* usually 1 */
  105. #define dAUTOBINARY 1
  106. #endif
  107.  
  108. #ifndef dPROGRESS
  109. #define dPROGRESS pr_philbar    /* can be: pr_none, pr_percent, pr_philbar,
  110.                                  * or pr_kbytes
  111.                                  */
  112. #endif
  113.  
  114. /* Default login name at gateway */
  115. #ifdef GATEWAY
  116. #    ifndef dGATEWAY_LOGIN
  117. #        define dGATEWAY_LOGIN "ftp"
  118. #    endif
  119. #endif
  120.  
  121. #endif    /* _DEFAULTS_H_ */
  122.  
  123. /* eof */
  124.