Annotation of src/usr.bin/ftp/extern.h, Revision 1.49
1.49 ! krw 1: /* $OpenBSD: extern.h,v 1.48 2017/01/20 04:03:53 krw Exp $ */
1.16 millert 2: /* $NetBSD: extern.h,v 1.17 1997/08/18 10:20:19 lukem Exp $ */
1.1 deraadt 3:
1.19 itojun 4: /*
5: * Copyright (C) 1997 and 1998 WIDE Project.
6: * All rights reserved.
1.49 ! krw 7: *
1.19 itojun 8: * Redistribution and use in source and binary forms, with or without
9: * modification, are permitted provided that the following conditions
10: * are met:
11: * 1. Redistributions of source code must retain the above copyright
12: * notice, this list of conditions and the following disclaimer.
13: * 2. Redistributions in binary form must reproduce the above copyright
14: * notice, this list of conditions and the following disclaimer in the
15: * documentation and/or other materials provided with the distribution.
16: * 3. Neither the name of the project nor the names of its contributors
17: * may be used to endorse or promote products derived from this software
18: * without specific prior written permission.
1.49 ! krw 19: *
1.19 itojun 20: * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
21: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23: * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
24: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30: * SUCH DAMAGE.
31: */
32:
1.1 deraadt 33: /*-
34: * Copyright (c) 1994 The Regents of the University of California.
35: * All rights reserved.
36: *
37: * Redistribution and use in source and binary forms, with or without
38: * modification, are permitted provided that the following conditions
39: * are met:
40: * 1. Redistributions of source code must retain the above copyright
41: * notice, this list of conditions and the following disclaimer.
42: * 2. Redistributions in binary form must reproduce the above copyright
43: * notice, this list of conditions and the following disclaimer in the
44: * documentation and/or other materials provided with the distribution.
1.25 millert 45: * 3. Neither the name of the University nor the names of its contributors
1.1 deraadt 46: * may be used to endorse or promote products derived from this software
47: * without specific prior written permission.
48: *
49: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
50: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
51: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
52: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
53: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
54: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
55: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
56: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
57: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
58: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
59: * SUCH DAMAGE.
60: *
61: * @(#)extern.h 8.3 (Berkeley) 10/9/94
62: */
63:
1.18 art 64: #include <sys/types.h>
1.1 deraadt 65:
1.39 martynas 66: void abort_remote(FILE *);
67: void abortpt(int);
68: void abortrecv(int);
1.21 millert 69: void alarmtimer(int);
70: int another(int *, char ***, const char *);
71: int auto_fetch(int, char **, char *);
72: void blkfree(char **);
73: void cdup(int, char **);
74: void cmdabort(int);
75: void cmdscanner(int);
76: int command(const char *, ...);
1.35 martynas 77: int confirm(const char *, const char *);
1.44 millert 78: int connect_wait(int);
1.21 millert 79: FILE *dataconn(const char *);
80: int foregroundproc(void);
1.28 otto 81: int fileindir(const char *, const char *);
1.21 millert 82: struct cmd *getcmd(const char *);
83: int getreply(int);
84: int globulize(char **);
85: char *gunique(const char *);
86: void help(int, char **);
87: char *hookup(char *, char *);
1.39 martynas 88: int initconn(void);
1.21 millert 89: void intr(void);
90: int isurl(const char *);
1.24 fgsch 91: int ftp_login(const char *, char *, char *);
1.21 millert 92: void lostpeer(void);
93: void makeargv(void);
1.39 martynas 94: void progressmeter(int, const char *);
1.21 millert 95: char *prompt(void);
1.39 martynas 96: void proxtrans(const char *, const char *, const char *);
97: void psabort(int);
1.21 millert 98: void psummary(int);
1.39 martynas 99: void pswitch(int);
100: void ptransfer(int);
101: void recvrequest(const char *, const char *, const char *,
1.22 millert 102: const char *, int, int);
1.21 millert 103: char *remglob(char **, int, char **);
104: off_t remotesize(const char *, int);
105: time_t remotemodtime(const char *, int);
1.39 martynas 106: void reset(int, char **);
1.21 millert 107: void rmthelp(int, char **);
108: void sethash(int, char **);
109: void setpeer(int, char **);
110: void setttywidth(int);
111: char *slurpstring(void);
1.48 krw 112:
113: __dead void usage(void);
1.29 pyr 114:
1.46 deraadt 115: void cookie_get(const char *, const char *, int, char **);
116: void cookie_load(void);
117:
1.29 pyr 118: #ifndef SMALL
1.39 martynas 119: void abortsend(int);
120: unsigned char complete(EditLine *, int);
121: void controlediting(void);
122: void domacro(int, char **);
123: void list_vertical(StringList *);
1.35 martynas 124: void parse_list(char **, char *);
1.39 martynas 125: char *remglob2(char **, int, char **, FILE **ftemp, char *type);
126: int ruserpass(const char *, char **, char **, char **);
127: void sendrequest(const char *, const char *, const char *, int);
1.34 martynas 128: #endif /* !SMALL */
1.6 millert 129:
1.1 deraadt 130: extern jmp_buf abortprox;
131: extern int abrtflag;
1.6 millert 132: extern FILE *cout;
1.1 deraadt 133: extern int data;
134: extern char *home;
135: extern jmp_buf jabort;
1.23 deraadt 136: extern int family;
1.1 deraadt 137: extern int proxy;
138: extern char reply_string[];
139: extern off_t restart_point;
1.39 martynas 140: extern int keep_alive_timeout;
1.47 deraadt 141: extern int connect_timeout;
1.41 halex 142: extern int pipeout;
1.42 deraadt 143: extern char *action;
1.39 martynas 144:
145: #ifndef SMALL
1.1 deraadt 146: extern int NCMDS;
1.39 martynas 147: #endif /* !SMALL */
1.6 millert 148:
149: extern char *__progname; /* from crt0.o */
150: