xref: /netbsd-src/usr.bin/ftp/extern.h (revision bada23909e740596d0a3785a73bd3583a9807fb8)
1 /*	$NetBSD: extern.h,v 1.28 1999/03/22 07:36:40 lukem Exp $	*/
2 
3 /*-
4  * Copyright (c) 1994 The Regents of the University of California.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  * 3. All advertising materials mentioning features or use of this software
16  *    must display the following acknowledgement:
17  *	This product includes software developed by the University of
18  *	California, Berkeley and its contributors.
19  * 4. Neither the name of the University nor the names of its contributors
20  *    may be used to endorse or promote products derived from this software
21  *    without specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33  * SUCH DAMAGE.
34  *
35  *	@(#)extern.h	8.3 (Berkeley) 10/9/94
36  */
37 
38 struct fd_set;
39 struct sockaddr;
40 struct tm;
41 
42 void    abort_remote __P((FILE *));
43 void    abortpt __P((int));
44 void    abortrecv __P((int));
45 void    abortsend __P((int));
46 void	account __P((int, char **));
47 void	alarmtimer __P((int));
48 int	another __P((int *, char ***, const char *));
49 int	auto_fetch __P((int, char **));
50 void	blkfree __P((char **));
51 void	cd __P((int, char **));
52 void	cdup __P((int, char **));
53 void	changetype __P((int, int));
54 void	cmdabort __P((int));
55 void	cmdscanner __P((int));
56 int	command __P((const char *, ...));
57 #ifndef SMALL
58 unsigned char complete __P((EditLine *, int));
59 void	controlediting __P((void));
60 #endif /* !SMALL */
61 int	confirm __P((const char *, const char *));
62 FILE   *dataconn __P((const char *));
63 void	delete __P((int, char **));
64 void	disconnect __P((int, char **));
65 void	do_chmod __P((int, char **));
66 void	do_umask __P((int, char **));
67 void	domacro __P((int, char **));
68 char   *domap __P((char *));
69 void	doproxy __P((int, char **));
70 char   *dotrans __P((char *));
71 int     empty __P((struct fd_set *, int));
72 int	foregroundproc __P((void));
73 void	ftpvis __P((char *, size_t, const char *, size_t));
74 int	ftp_login __P((const char *, const char *, const char *));
75 void	get __P((int, char **));
76 struct cmd *getcmd __P((const char *));
77 int	getit __P((int, char **, int, const char *));
78 int	getreply __P((int));
79 int	getsockbufsize __P((const char *));
80 int	globulize __P((char **));
81 char   *gunique __P((const char *));
82 void	help __P((int, char **));
83 char   *hookup __P((const char *, in_port_t));
84 void	idle __P((int, char **));
85 int     initconn __P((void));
86 void	intr __P((void));
87 void	list_vertical __P((StringList *));
88 void	lcd __P((int, char **));
89 void	lostpeer __P((void));
90 void	lpwd __P((int, char **));
91 void	ls __P((int, char **));
92 void	mabort __P((int));
93 void	macdef __P((int, char **));
94 void	makeargv __P((void));
95 void	makedir __P((int, char **));
96 void	mdelete __P((int, char **));
97 void	mget __P((int, char **));
98 time_t	mkgmtime __P((struct tm *));
99 void	mls __P((int, char **));
100 void	modtime __P((int, char **));
101 void	mput __P((int, char **));
102 char   *onoff __P((int));
103 void	newer __P((int, char **));
104 void	page __P((int, char **));
105 void    progressmeter __P((int));
106 char   *prompt __P((void));
107 void	proxabort __P((int));
108 void    proxtrans __P((const char *, const char *, const char *));
109 void    psabort __P((int));
110 void	psummary __P((int));
111 void    pswitch __P((int));
112 void    ptransfer __P((int));
113 void	put __P((int, char **));
114 void	pwd __P((int, char **));
115 void	quit __P((int, char **));
116 void	quote __P((int, char **));
117 void	quote1 __P((const char *, int, char **));
118 void	rcvbuf __P((int, char **));
119 void    recvrequest __P((const char *, const char *, const char *,
120 	    const char *, int, int));
121 void	reget __P((int, char **));
122 char   *remglob __P((char **, int, char **));
123 off_t	remotesize __P((const char *, int));
124 time_t	remotemodtime __P((const char *, int));
125 void	removedir __P((int, char **));
126 void	renamefile __P((int, char **));
127 void    reset __P((int, char **));
128 void	resetsockbufsize __P((void));
129 void	restart __P((int, char **));
130 void	rmthelp __P((int, char **));
131 void	rmtstatus __P((int, char **));
132 int	ruserpass __P((const char *, const char **, const char **,
133 	    const char **));
134 void    sendrequest __P((const char *, const char *, const char *, int));
135 void	setascii __P((int, char **));
136 void	setbell __P((int, char **));
137 void	setbinary __P((int, char **));
138 void	setcase __P((int, char **));
139 void	setcr __P((int, char **));
140 void	setdebug __P((int, char **));
141 void	setedit __P((int, char **));
142 void	setform __P((int, char **));
143 void	setftmode __P((int, char **));
144 void	setgate __P((int, char **));
145 void	setglob __P((int, char **));
146 void	sethash __P((int, char **));
147 void	setnmap __P((int, char **));
148 void	setntrans __P((int, char **));
149 void	setpassive __P((int, char **));
150 void	setpeer __P((int, char **));
151 void	setport __P((int, char **));
152 void	setpreserve __P((int, char **));
153 void	setprogress __P((int, char **));
154 void	setprompt __P((int, char **));
155 void	setrunique __P((int, char **));
156 void	setstruct __P((int, char **));
157 void	setsunique __P((int, char **));
158 void	settenex __P((int, char **));
159 void	settrace __P((int, char **));
160 void	setttywidth __P((int));
161 void	settype __P((int, char **));
162 void	setupsockbufsize __P((int));
163 void	setverbose __P((int, char **));
164 void	shell __P((int, char **));
165 void	site __P((int, char **));
166 void	sizecmd __P((int, char **));
167 char   *slurpstring __P((void));
168 void	sndbuf __P((int, char **));
169 void	status __P((int, char **));
170 void	syst __P((int, char **));
171 int	togglevar __P((int, char **, int *, const char *));
172 void	usage __P((void));
173 void	user __P((int, char **));
174 int	xconnect __P((int, const struct sockaddr *, int));
175 int	xlisten __P((int, int));
176 void   *xmalloc __P((size_t));
177 char   *xstrdup __P((const char *));
178 sig_t	xsignal __P((int, void (func) __P((int))));
179 
180 extern struct	cmd cmdtab[];
181 extern FILE    *cout;
182 extern int	data;
183 extern char    *home;
184 extern int	proxy;
185 extern char	reply_string[];
186 extern int	NCMDS;
187 
188 extern char *__progname;		/* from crt0.o */
189 
190