extern.h revision 1.42
1/*	$NetBSD: extern.h,v 1.42 1999/10/05 00:54:07 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/*
39 * Copyright (C) 1997 and 1998 WIDE Project.
40 * All rights reserved.
41 *
42 * Redistribution and use in source and binary forms, with or without
43 * modification, are permitted provided that the following conditions
44 * are met:
45 * 1. Redistributions of source code must retain the above copyright
46 *    notice, this list of conditions and the following disclaimer.
47 * 2. Redistributions in binary form must reproduce the above copyright
48 *    notice, this list of conditions and the following disclaimer in the
49 *    documentation and/or other materials provided with the distribution.
50 * 3. Neither the name of the project nor the names of its contributors
51 *    may be used to endorse or promote products derived from this software
52 *    without specific prior written permission.
53 *
54 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
55 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
56 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
57 * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
58 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
59 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
60 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
61 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
62 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
63 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
64 * SUCH DAMAGE.
65 */
66
67struct sockaddr;
68struct tm;
69
70void	abort_remote __P((FILE *));
71void	abortpt __P((int));
72void	abortrecv __P((int));
73void	abortsend __P((int));
74void	account __P((int, char **));
75void	alarmtimer __P((int));
76int	another __P((int *, char ***, const char *));
77int	auto_fetch __P((int, char **));
78void	blkfree __P((char **));
79void	cd __P((int, char **));
80void	cdup __P((int, char **));
81void	changetype __P((int, int));
82void	cmdabort __P((int));
83void	cmdtimeout __P((int));
84void	cmdscanner __P((int));
85void	crankrate __P((int));
86int	command __P((const char *, ...));
87#ifndef NO_EDITCOMPLETE
88unsigned char complete __P((EditLine *, int));
89void	controlediting __P((void));
90#endif /* !NO_EDITCOMPLETE */
91int	confirm __P((const char *, const char *));
92FILE   *dataconn __P((const char *));
93void	delete __P((int, char **));
94void	disconnect __P((int, char **));
95void	do_chmod __P((int, char **));
96void	do_umask __P((int, char **));
97char   *docase __P((char *));
98void	domacro __P((int, char **));
99char   *domap __P((char *));
100void	doproxy __P((int, char **));
101char   *dotrans __P((char *));
102int	foregroundproc __P((void));
103void	ftpvis __P((char *, size_t, const char *, size_t));
104int	ftp_login __P((const char *, const char *, const char *));
105void	get __P((int, char **));
106struct cmd *getcmd __P((const char *));
107int	getit __P((int, char **, int, const char *));
108int	getreply __P((int));
109char   *globulize __P((const char *));
110char   *gunique __P((const char *));
111void	help __P((int, char **));
112char   *hookup __P((char *, char *));
113void	idlecmd __P((int, char **));
114int	initconn __P((void));
115void	intr __P((void));
116int	isipv6addr __P((const char *));
117void	list_vertical __P((StringList *));
118void	lcd __P((int, char **));
119void	lostpeer __P((void));
120void	lpage __P((int, char **));
121void	lpwd __P((int, char **));
122void	ls __P((int, char **));
123void	mabort __P((int));
124void	macdef __P((int, char **));
125void	makeargv __P((void));
126void	makedir __P((int, char **));
127void	mdelete __P((int, char **));
128void	mget __P((int, char **));
129void	mls __P((int, char **));
130void	modtime __P((int, char **));
131void	mput __P((int, char **));
132char   *onoff __P((int));
133void	newer __P((int, char **));
134void	page __P((int, char **));
135int	parserate __P((int, char **, int));
136void	progressmeter __P((int));
137char   *prompt __P((void));
138void	proxabort __P((int));
139void	proxtrans __P((const char *, const char *, const char *));
140void	psabort __P((int));
141void	psummary __P((int));
142void	pswitch __P((int));
143void	ptransfer __P((int));
144void	put __P((int, char **));
145void	pwd __P((int, char **));
146void	quit __P((int, char **));
147void	quote __P((int, char **));
148void	quote1 __P((const char *, int, char **));
149void	recvrequest __P((const char *, const char *, const char *,
150	    const char *, int, int));
151void	reget __P((int, char **));
152char   *remglob __P((char **, int, char **));
153off_t	remotesize __P((const char *, int));
154time_t	remotemodtime __P((const char *, int));
155void	removedir __P((int, char **));
156void	renamefile __P((int, char **));
157void	reset __P((int, char **));
158void	restart __P((int, char **));
159void	rmthelp __P((int, char **));
160void	rmtstatus __P((int, char **));
161int	ruserpass __P((const char *, const char **, const char **,
162	    const char **));
163void	sendrequest __P((const char *, const char *, const char *, int));
164void	setascii __P((int, char **));
165void	setbell __P((int, char **));
166void	setbinary __P((int, char **));
167void	setcase __P((int, char **));
168void	setcr __P((int, char **));
169void	setdebug __P((int, char **));
170void	setedit __P((int, char **));
171void	setepsv4 __P((int, char **));
172void	setform __P((int, char **));
173void	setftmode __P((int, char **));
174void	setgate __P((int, char **));
175void	setglob __P((int, char **));
176void	sethash __P((int, char **));
177void	setnmap __P((int, char **));
178void	setntrans __P((int, char **));
179void	setpassive __P((int, char **));
180void	setpeer __P((int, char **));
181void	setport __P((int, char **));
182void	setpreserve __P((int, char **));
183void	setprogress __P((int, char **));
184void	setprompt __P((int, char **));
185void	setrate __P((int, char **));
186void	setrunique __P((int, char **));
187void	setstruct __P((int, char **));
188void	setsunique __P((int, char **));
189void	settenex __P((int, char **));
190void	settrace __P((int, char **));
191void	setttywidth __P((int));
192void	settype __P((int, char **));
193void	setupsockbufsize __P((int));
194void	setverbose __P((int, char **));
195void	setxferbuf __P((int, char **));
196void	shell __P((int, char **));
197void	site __P((int, char **));
198void	sizecmd __P((int, char **));
199char   *slurpstring __P((void));
200void	status __P((int, char **));
201int	strsuftoi __P((const char *));
202void	syst __P((int, char **));
203int	togglevar __P((int, char **, int *, const char *));
204void	usage __P((void));
205void	user __P((int, char **));
206int	xconnect __P((int, const struct sockaddr *, int));
207int	xlisten __P((int, int));
208void   *xmalloc __P((size_t));
209char   *xstrdup __P((const char *));
210sig_t	xsignal __P((int, void (func) __P((int))));
211sig_t	xsignal_restart __P((int, void (func) __P((int)), int));
212