Annotation of src/usr.bin/ftp/extern.h, Revision 1.36
1.36 ! deraadt 1: /* $OpenBSD: extern.h,v 1.35 2008/07/08 21:07:57 martynas 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.
7: *
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.
19: *
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.21 millert 66: void abort_remote(FILE *);
67: void abortpt(int);
68: void abortrecv(int);
69: void abortsend(int);
70: void account(int, char **);
71: void alarmtimer(int);
72: int another(int *, char ***, const char *);
73: int auto_fetch(int, char **, char *);
74: void blkfree(char **);
75: void cd(int, char **);
76: void cdup(int, char **);
77: void changetype(int, int);
78: void cmdabort(int);
79: void cmdscanner(int);
80: int command(const char *, ...);
1.10 millert 81: #ifndef SMALL
1.21 millert 82: unsigned char complete(EditLine *, int);
83: void controlediting(void);
1.10 millert 84: #endif /* !SMALL */
1.35 martynas 85: int confirm(const char *, const char *);
1.21 millert 86: FILE *dataconn(const char *);
1.27 deraadt 87: void deletecmd(int, char **);
1.21 millert 88: void disconnect(int, char **);
89: void do_chmod(int, char **);
90: void do_umask(int, char **);
91: void domacro(int, char **);
92: char *domap(char *);
93: void doproxy(int, char **);
94: char *dotrans(char *);
95: int foregroundproc(void);
1.28 otto 96: int fileindir(const char *, const char *);
1.21 millert 97: void get(int, char **);
98: struct cmd *getcmd(const char *);
99: int getit(int, char **, int, const char *);
100: int getreply(int);
101: int globulize(char **);
102: char *gunique(const char *);
103: void help(int, char **);
104: char *hookup(char *, char *);
105: void idle(int, char **);
106: int initconn(void);
107: void intr(void);
108: int isurl(const char *);
109: void list_vertical(StringList *);
110: void lcd(int, char **);
1.24 fgsch 111: int ftp_login(const char *, char *, char *);
1.21 millert 112: void lostpeer(void);
113: void lpwd(int, char **);
114: void ls(int, char **);
115: void mabort(int);
116: void macdef(int, char **);
117: void makeargv(void);
118: void makedir(int, char **);
119: void mdelete(int, char **);
120: void mget(int, char **);
121: void mls(int, char **);
122: void modtime(int, char **);
123: void mput(int, char **);
124: char *onoff(int);
125: void newer(int, char **);
126: void page(int, char **);
127: void progressmeter(int);
128: char *prompt(void);
129: void proxabort(int);
130: void proxtrans(const char *, const char *, const char *);
131: void psabort(int);
132: void psummary(int);
133: void pswitch(int);
134: void ptransfer(int);
135: void put(int, char **);
1.33 martynas 136: void putit(int, char **, int);
1.21 millert 137: void pwd(int, char **);
138: void quit(int, char **);
139: void quote(int, char **);
140: void quote1(const char *, int, char **);
1.22 millert 141: void recvrequest(const char *, const char *, const char *,
142: const char *, int, int);
1.21 millert 143: void reget(int, char **);
144: char *remglob(char **, int, char **);
1.35 martynas 145: #ifndef SMALL
146: char *remglob2(char **, int, char **, FILE **ftemp, char *type);
147: #endif /* !SMALL */
1.21 millert 148: off_t remotesize(const char *, int);
149: time_t remotemodtime(const char *, int);
150: void removedir(int, char **);
151: void renamefile(int, char **);
1.33 martynas 152: void reput(int, char **);
1.21 millert 153: void reset(int, char **);
154: void restart(int, char **);
155: void rmthelp(int, char **);
156: void rmtstatus(int, char **);
157: void sendrequest(const char *, const char *, const char *, int);
158: void setascii(int, char **);
159: void setbell(int, char **);
160: void setbinary(int, char **);
161: void setcase(int, char **);
162: void setcr(int, char **);
1.35 martynas 163: #ifndef SMALL
1.21 millert 164: void setdebug(int, char **);
1.35 martynas 165: #endif /* !SMALL */
1.21 millert 166: void setedit(int, char **);
167: void setepsv4(int, char **);
168: void setform(int, char **);
169: void setftmode(int, char **);
170: void setgate(int, char **);
171: void setglob(int, char **);
172: void sethash(int, char **);
173: void setnmap(int, char **);
174: void setntrans(int, char **);
175: void setpassive(int, char **);
176: void setpeer(int, char **);
177: void setport(int, char **);
178: void setpreserve(int, char **);
179: void setprogress(int, char **);
180: void setprompt(int, char **);
181: void setrunique(int, char **);
182: void setstruct(int, char **);
183: void setsunique(int, char **);
184: void settenex(int, char **);
185: void settrace(int, char **);
186: void setttywidth(int);
187: void settype(int, char **);
188: void setverbose(int, char **);
189: void shell(int, char **);
190: void site(int, char **);
191: void sizecmd(int, char **);
192: char *slurpstring(void);
193: void status(int, char **);
194: void syst(int, char **);
195: int togglevar(int, char **, int *, const char *);
196: void usage(void);
197: void user(int, char **);
1.29 pyr 198:
199: #ifndef SMALL
200: int ruserpass(const char *, char **, char **, char **);
1.30 pyr 201: void cookie_load(void);
202: void cookie_get(const char *, const char *, int, char **);
1.35 martynas 203: void parse_list(char **, char *);
1.34 martynas 204: #endif /* !SMALL */
1.6 millert 205:
1.1 deraadt 206:
207: extern jmp_buf abortprox;
208: extern int abrtflag;
209: extern struct cmd cmdtab[];
1.6 millert 210: extern FILE *cout;
1.1 deraadt 211: extern int data;
212: extern char *home;
1.36 ! deraadt 213: extern char *title;
1.1 deraadt 214: extern jmp_buf jabort;
1.23 deraadt 215: extern int family;
1.1 deraadt 216: extern int proxy;
217: extern char reply_string[];
218: extern off_t restart_point;
219: extern int NCMDS;
1.31 espie 220: extern int keep_alive_timeout;
1.6 millert 221:
222: extern char *__progname; /* from crt0.o */
223: