Annotation of src/usr.bin/ftp/extern.h, Revision 1.28
1.28 ! otto 1: /* $OpenBSD: extern.h,v 1.27 2004/09/16 04:39:16 deraadt 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.21 millert 85: int confirm(const char *, const char *);
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 **);
136: void pwd(int, char **);
137: void quit(int, char **);
138: void quote(int, char **);
139: void quote1(const char *, int, char **);
1.22 millert 140: void recvrequest(const char *, const char *, const char *,
141: const char *, int, int);
1.21 millert 142: void reget(int, char **);
143: char *remglob(char **, int, char **);
144: off_t remotesize(const char *, int);
145: time_t remotemodtime(const char *, int);
146: void removedir(int, char **);
147: void renamefile(int, char **);
148: void reset(int, char **);
149: void restart(int, char **);
150: void rmthelp(int, char **);
151: void rmtstatus(int, char **);
152: int ruserpass(const char *, char **, char **, char **);
153: void sendrequest(const char *, const char *, const char *, int);
154: void setascii(int, char **);
155: void setbell(int, char **);
156: void setbinary(int, char **);
157: void setcase(int, char **);
158: void setcr(int, char **);
159: void setdebug(int, char **);
160: void setedit(int, char **);
161: void setepsv4(int, char **);
162: void setform(int, char **);
163: void setftmode(int, char **);
164: void setgate(int, char **);
165: void setglob(int, char **);
166: void sethash(int, char **);
167: void setnmap(int, char **);
168: void setntrans(int, char **);
169: void setpassive(int, char **);
170: void setpeer(int, char **);
171: void setport(int, char **);
172: void setpreserve(int, char **);
173: void setprogress(int, char **);
174: void setprompt(int, char **);
175: void setrunique(int, char **);
176: void setstruct(int, char **);
177: void setsunique(int, char **);
178: void settenex(int, char **);
179: void settrace(int, char **);
180: void setttywidth(int);
181: void settype(int, char **);
182: void setverbose(int, char **);
183: void shell(int, char **);
184: void site(int, char **);
185: void sizecmd(int, char **);
186: char *slurpstring(void);
187: void status(int, char **);
188: void syst(int, char **);
189: int togglevar(int, char **, int *, const char *);
190: void usage(void);
191: void user(int, char **);
1.6 millert 192:
1.1 deraadt 193:
194: extern jmp_buf abortprox;
195: extern int abrtflag;
196: extern struct cmd cmdtab[];
1.6 millert 197: extern FILE *cout;
1.1 deraadt 198: extern int data;
199: extern char *home;
200: extern jmp_buf jabort;
1.23 deraadt 201: extern int family;
1.1 deraadt 202: extern int proxy;
203: extern char reply_string[];
204: extern off_t restart_point;
205: extern int NCMDS;
1.6 millert 206:
207: extern char *__progname; /* from crt0.o */
208: