Lines Matching refs:GLOBAL

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