summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncftp/defaults.h
blob: dffec8ebbd9a97a33112b6db222853ddcb133a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/* Defaults.h: default values for ftp's common variables */

/* These are all surrounded by #ifndef blocks so you can just use
 * the -D flag with your compiler (i.e. -DZCAT=\"/usr/local/bin/zcat\").
 */

#ifndef _DEFAULTS_H_
#define _DEFAULTS_H_

/*  $RCSfile: defaults.h,v $
 *  $Revision: 14020.13 $
 *  $Date: 93/07/09 10:58:27 $
 */

#ifndef NEWMAILMESSAGE			/* For english speakers, "You have new mail." */
#define NEWMAILMESSAGE "You have new mail."
#endif

#ifndef ZCAT					/* Usually "zcat," but use the full pathname */
								/* if possible. */
#	ifdef GZCAT					/* If you said you had gnu's zcat, use it
								 * since it can do .Z files too.
								 */

#		define ZCAT GZCAT
#	else /* !GZCAT */
#		define ZCAT "zcat"
#	endif	/* ifdef GZCAT */
#endif	/* ifndef ZCAT */

#ifndef MAX_XFER_BUFSIZE
#define MAX_XFER_BUFSIZE 32768
#endif

#ifndef dANONOPEN				/* 1 or 0, usually 1 */
#define dANONOPEN	1
#endif

#ifndef dDEBUG					/* 1 or 0, usually 0 */
#define dDEBUG 0
#endif

#ifndef dMPROMPT				/* Usually 1, I prefer 0... */
#define dMPROMPT 0
#endif

/* If passive FTP can be used, this specifies whether it is turned on
 * by default.  If not, we have passive mode available, but are using
 * Port ftp by default.
 */
#ifndef	dPASSIVE
#define	dPASSIVE 0				/* Use PORT for more portability... */
#endif

#ifndef	dRESTRICT
#define	dRESTRICT 1				/* should be safe to be 1 */
#endif

#ifndef dVERBOSE				/* V_QUIET, V_ERRS, V_TERSE, V_VERBOSE */
#define dVERBOSE V_TERSE
#endif

#ifndef dPROMPT					/* short: "@Bftp@P>" */
								/* long: "@B@E @UNcFTP@P @B@M@D@P ->" */
#define dPROMPT "@B@c@Mncftp@P>" /* new two line prompt */
#endif

#ifndef dPAGER					/* if set to empty string, act like 'cat' */
#define dPAGER "more"
#endif

#ifndef dLOGNAME				/* usu. put in the user's home directory. */
#define dLOGNAME "~/.ftplog"
#endif

#ifndef dRECENTF				/* usu. put in the user's home directory. */
#define dRECENTF "~/.ncrecent"
#endif

#ifndef dMAXRECENTS				/* limit to how many recent sites to save. */
#define dMAXRECENTS 50
#endif

#ifndef dRECENT_ON				/* Do you want the recent log on? */
								/* usually 1. */
#define dRECENT_ON 1
#endif

								/* Do you want logging on by default? */
#ifndef dLOGGING				/* usually 0 */
#define dLOGGING 0
#endif

#ifndef dTYPE					/* usually TYPE_A */
#define dTYPE TYPE_A
#endif

#ifndef dTYPESTR				/* usually "ascii" */
#define dTYPESTR "ascii"
#endif

#ifndef dREDIALDELAY			/* usu. 60 (seconds). */
#define dREDIALDELAY 60
#endif

#ifndef CMDLINELEN
#define CMDLINELEN 256
#endif

#ifndef RECEIVEDLINELEN
#define RECEIVEDLINELEN 256
#endif

#ifndef MAXMACROS
#define MAXMACROS 16
#endif

#ifndef MACBUFLEN				/* usually 4096. */
#define MACBUFLEN 4096
#endif

/* Do you want binary transfers by default? */
#ifndef dAUTOBINARY				/* usually 1 */
#define dAUTOBINARY 1
#endif

#ifndef dPROGRESS
#define dPROGRESS pr_philbar	/* can be: pr_none, pr_percent, pr_philbar,
								 * or pr_kbytes
								 */
#endif

/* Default login name at gateway */
#ifdef GATEWAY
#	ifndef dGATEWAY_LOGIN
#		define dGATEWAY_LOGIN "ftp"
#	endif
#endif

#endif	/* _DEFAULTS_H_ */

/* eof */
OpenPOWER on IntegriCloud