Lines Matching defs:GLOBAL
93 * FTP global variables.
179 * Global defines
204 #ifndef GLOBAL
205 #define GLOBAL extern
211 GLOBAL int trace; /* trace packets exchanged */
212 GLOBAL int hash; /* print # for each buffer transferred */
213 GLOBAL int mark; /* number of bytes between hashes */
214 GLOBAL int sendport; /* use PORT/LPRT cmd for each data connection */
215 GLOBAL int connected; /* 1 = connected to server, -1 = logged in */
216 GLOBAL int interactive; /* interactively prompt on m* cmds */
217 GLOBAL int confirmrest; /* confirm rest of current m* cmd */
218 GLOBAL int ftp_debug; /* debugging level */
219 GLOBAL int bell; /* ring bell on cmd completion */
220 GLOBAL int doglob; /* glob local file names */
221 GLOBAL int autologin; /* establish user account on connection */
222 GLOBAL int proxy; /* proxy server connection active */
223 GLOBAL int proxflag; /* proxy connection exists */
224 GLOBAL int gatemode; /* use gate-ftp */
225 GLOBAL const char *gateserver; /* server to use for gate-ftp */
226 GLOBAL int sunique; /* store files on server with unique name */
227 GLOBAL int runique; /* store local files with unique name */
228 GLOBAL int mcase; /* map upper to lower case for mget names */
229 GLOBAL int ntflag; /* use ntin ntout tables for name translation */
230 GLOBAL int mapflag; /* use mapin mapout templates on file names */
231 GLOBAL int preserve; /* preserve modification time on files */
232 GLOBAL int code; /* return/reply code for ftp command */
233 GLOBAL int crflag; /* if 1, strip car. rets. on ascii gets */
234 GLOBAL int passivemode; /* passive mode enabled */
235 GLOBAL int activefallback; /* fall back to active mode if passive fails */
236 GLOBAL char *altarg; /* argv[1] with no shell-like preprocessing */
237 GLOBAL char ntin[17]; /* input translation table */
238 GLOBAL char ntout[17]; /* output translation table */
239 GLOBAL char mapin[MAXPATHLEN]; /* input map template */
240 GLOBAL char mapout[MAXPATHLEN]; /* output map template */
241 GLOBAL char typename[32]; /* name of file transfer type */
242 GLOBAL int type; /* requested file transfer type */
243 GLOBAL int curtype; /* current file transfer type */
244 GLOBAL char structname[32]; /* name of file transfer structure */
245 GLOBAL int stru; /* file transfer structure */
246 GLOBAL char formname[32]; /* name of file transfer format */
247 GLOBAL int form; /* file transfer format */
248 GLOBAL char modename[32]; /* name of file transfer mode */
249 GLOBAL int mode; /* file transfer mode */
250 GLOBAL char bytename[32]; /* local byte size in ascii */
251 GLOBAL int bytesize; /* local byte size in binary */
252 GLOBAL int anonftp; /* automatic anonymous login */
253 GLOBAL int dirchange; /* remote directory changed by cd command */
254 GLOBAL int flushcache; /* set HTTP cache flush headers with request */
255 GLOBAL int rate_get; /* maximum get xfer rate */
256 GLOBAL int rate_get_incr; /* increment for get xfer rate */
257 GLOBAL int rate_put; /* maximum put xfer rate */
258 GLOBAL int rate_put_incr; /* increment for put xfer rate */
259 GLOBAL int retry_connect; /* seconds between retrying connection */
260 GLOBAL const char *tmpdir; /* temporary directory */
261 GLOBAL int epsv4; /* use EPSV/EPRT on IPv4 connections */
262 GLOBAL int epsv4bad; /* EPSV doesn't work on the current server */
263 GLOBAL int epsv6; /* use EPSV/EPRT on IPv6 connections */
264 GLOBAL int epsv6bad; /* EPSV doesn't work on the current server */
265 GLOBAL int editing; /* command line editing enabled */
266 GLOBAL int features[FEAT_max]; /* remote FEATures supported */
269 GLOBAL EditLine *el; /* editline(3) status structure */
270 GLOBAL History *hist; /* editline(3) history structure */
271 GLOBAL char *cursor_pos; /* cursor position we're looking for */
272 GLOBAL size_t cursor_argc; /* location of cursor in margv */
273 GLOBAL size_t cursor_argo; /* offset of cursor in margv[cursor_argc] */
276 GLOBAL char *hostname; /* name of host connected to */
277 GLOBAL int unix_server; /* server is unix, can use binary for ascii */
278 GLOBAL int unix_proxy; /* proxy is unix, can use binary for ascii */
279 GLOBAL char localcwd[MAXPATHLEN]; /* local dir */
280 GLOBAL char remotecwd[MAXPATHLEN]; /* remote dir */
281 GLOBAL int remcwdvalid; /* remotecwd has been updated */
282 GLOBAL char *username; /* name of user logged in as. (dynamic) */
284 GLOBAL sa_family_t family; /* address family to use for connections */
285 GLOBAL const char *ftpport; /* port number to use for FTP connections */
286 GLOBAL const char *httpport; /* port number to use for HTTP connections */
288 GLOBAL const char *httpsport; /* port number to use for HTTPS connections */
290 GLOBAL const char *gateport; /* port number to use for gateftp connections */
291 GLOBAL struct addrinfo *bindai; /* local address to bind as */
293 GLOBAL char *outfile; /* filename to output URLs to */
294 GLOBAL int restartautofetch; /* restart auto-fetch */
296 GLOBAL char line[FTPBUFLEN]; /* input line buffer */
297 GLOBAL char *stringbase; /* current scan point in line buffer */
298 GLOBAL char argbuf[FTPBUFLEN]; /* argument storage buffer */
299 GLOBAL char *argbase; /* current storage point in arg buffer */
300 GLOBAL StringList *marg_sl; /* stringlist containing margv */
301 GLOBAL int margc; /* count of arguments on input line */
303 GLOBAL int cpend; /* flag: if != 0, then pending server reply */
304 GLOBAL int mflag; /* flag: if != 0, then active multi command */
306 GLOBAL int options; /* used during socket creation */
308 GLOBAL int sndbuf_size; /* socket send buffer size */
309 GLOBAL int rcvbuf_size; /* socket receive buffer size */
311 GLOBAL int macnum; /* number of defined macros */
312 GLOBAL struct macel macros[16];
313 GLOBAL char macbuf[4096];
315 GLOBAL char *localhome; /* local home directory */
316 GLOBAL char *localname; /* local user name */
317 GLOBAL char netrc[MAXPATHLEN]; /* path to .netrc file */
318 GLOBAL char reply_string[BUFSIZ]; /* first line of previous reply */
319 GLOBAL void (*reply_callback)(const char *);
326 GLOBAL volatile sig_atomic_t sigint_raised;
328 GLOBAL FILE *cin;
329 GLOBAL FILE *cout;
330 GLOBAL int data;