extern.h revision 1.51
1/*	$NetBSD: extern.h,v 1.51 1999/11/28 06:32:05 lukem Exp $	*/
2
3/*-
4 * Copyright (c) 1996-1999 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Luke Mewburn.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 *    notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 *    notice, this list of conditions and the following disclaimer in the
17 *    documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 *    must display the following acknowledgement:
20 *	This product includes software developed by the NetBSD
21 *	Foundation, Inc. and its contributors.
22 * 4. Neither the name of The NetBSD Foundation nor the names of its
23 *    contributors may be used to endorse or promote products derived
24 *    from this software without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39/*-
40 * Copyright (c) 1994 The Regents of the University of California.
41 * All rights reserved.
42 *
43 * Redistribution and use in source and binary forms, with or without
44 * modification, are permitted provided that the following conditions
45 * are met:
46 * 1. Redistributions of source code must retain the above copyright
47 *    notice, this list of conditions and the following disclaimer.
48 * 2. Redistributions in binary form must reproduce the above copyright
49 *    notice, this list of conditions and the following disclaimer in the
50 *    documentation and/or other materials provided with the distribution.
51 * 3. All advertising materials mentioning features or use of this software
52 *    must display the following acknowledgement:
53 *	This product includes software developed by the University of
54 *	California, Berkeley and its contributors.
55 * 4. Neither the name of the University nor the names of its contributors
56 *    may be used to endorse or promote products derived from this software
57 *    without specific prior written permission.
58 *
59 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
60 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
61 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
62 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
63 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
64 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
65 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
66 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
67 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
68 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
69 * SUCH DAMAGE.
70 *
71 *	@(#)extern.h	8.3 (Berkeley) 10/9/94
72 */
73
74/*
75 * Copyright (C) 1997 and 1998 WIDE Project.
76 * All rights reserved.
77 *
78 * Redistribution and use in source and binary forms, with or without
79 * modification, are permitted provided that the following conditions
80 * are met:
81 * 1. Redistributions of source code must retain the above copyright
82 *    notice, this list of conditions and the following disclaimer.
83 * 2. Redistributions in binary form must reproduce the above copyright
84 *    notice, this list of conditions and the following disclaimer in the
85 *    documentation and/or other materials provided with the distribution.
86 * 3. Neither the name of the project nor the names of its contributors
87 *    may be used to endorse or promote products derived from this software
88 *    without specific prior written permission.
89 *
90 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
91 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
92 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
93 * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
94 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
95 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
96 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
97 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
98 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
99 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
100 * SUCH DAMAGE.
101 */
102
103struct sockaddr;
104struct tm;
105
106void	abort_remote __P((FILE *));
107void	abort_squared __P((int));
108void	abortpt __P((int));
109void	abortxfer __P((int));
110void	account __P((int, char **));
111void	alarmtimer __P((int));
112int	another __P((int *, char ***, const char *));
113int	auto_fetch __P((int, char **));
114void	blkfree __P((char **));
115void	cd __P((int, char **));
116void	cdup __P((int, char **));
117void	changetype __P((int, int));
118void	cleanuppeer __P((void));
119void	cmdabort __P((int));
120void	cmdtimeout __P((int));
121void	cmdscanner __P((void));
122int	command __P((const char *, ...));
123#ifndef NO_EDITCOMPLETE
124unsigned char complete __P((EditLine *, int));
125void	controlediting __P((void));
126#endif /* !NO_EDITCOMPLETE */
127void	crankrate __P((int));
128FILE   *dataconn __P((const char *));
129void	delete __P((int, char **));
130void	disconnect __P((int, char **));
131void	do_chmod __P((int, char **));
132void	do_umask __P((int, char **));
133char   *docase __P((char *));
134void	domacro __P((int, char **));
135char   *domap __P((char *));
136void	doproxy __P((int, char **));
137char   *dotrans __P((char *));
138int	foregroundproc __P((void));
139void	formatbuf __P((char *, size_t, const char *));
140void	ftpvis __P((char *, size_t, const char *, size_t));
141int	ftp_login __P((const char *, const char *, const char *));
142void	get __P((int, char **));
143struct cmd *getcmd __P((const char *));
144int	getit __P((int, char **, int, const char *));
145struct option *getoption __P((const char *));
146char   *getoptionvalue __P((const char *));
147int	getreply __P((int));
148char   *globulize __P((const char *));
149char   *gunique __P((const char *));
150void	help __P((int, char **));
151char   *hookup __P((char *, char *));
152void	idlecmd __P((int, char **));
153int	initconn __P((void));
154void	intr __P((int));
155int	isipv6addr __P((const char *));
156void	list_vertical __P((StringList *));
157void	lcd __P((int, char **));
158void	lostpeer __P((int));
159void	lpage __P((int, char **));
160void	lpwd __P((int, char **));
161void	ls __P((int, char **));
162void	mabort __P((void));
163void	macdef __P((int, char **));
164void	makeargv __P((void));
165void	makedir __P((int, char **));
166void	mdelete __P((int, char **));
167void	mget __P((int, char **));
168void	mintr __P((int));
169void	mls __P((int, char **));
170void	modtime __P((int, char **));
171void	mput __P((int, char **));
172char   *onoff __P((int));
173void	newer __P((int, char **));
174void	page __P((int, char **));
175int	parserate __P((int, char **, int));
176void	progressmeter __P((int));
177char   *prompt __P((void));
178void	proxabort __P((int));
179void	proxtrans __P((const char *, const char *, const char *));
180void	psabort __P((int));
181void	psummary __P((int));
182void	pswitch __P((int));
183void	ptransfer __P((int));
184void	put __P((int, char **));
185void	pwd __P((int, char **));
186void	quit __P((int, char **));
187void	quote __P((int, char **));
188void	quote1 __P((const char *, int, char **));
189void	recvrequest __P((const char *, const char *, const char *,
190	    const char *, int, int));
191void	reget __P((int, char **));
192char   *remglob __P((char **, int, char **));
193off_t	remotesize __P((const char *, int));
194time_t	remotemodtime __P((const char *, int));
195void	removedir __P((int, char **));
196void	renamefile __P((int, char **));
197void	reset __P((int, char **));
198void	restart __P((int, char **));
199void	rmthelp __P((int, char **));
200void	rmtstatus __P((int, char **));
201char   *rprompt __P((void));
202int	ruserpass __P((const char *, const char **, const char **,
203	    const char **));
204void	sendrequest __P((const char *, const char *, const char *, int));
205void	setascii __P((int, char **));
206void	setbell __P((int, char **));
207void	setbinary __P((int, char **));
208void	setcase __P((int, char **));
209void	setcr __P((int, char **));
210void	setdebug __P((int, char **));
211void	setedit __P((int, char **));
212void	setepsv4 __P((int, char **));
213void	setform __P((int, char **));
214void	setftmode __P((int, char **));
215void	setgate __P((int, char **));
216void	setglob __P((int, char **));
217void	sethash __P((int, char **));
218void	setnmap __P((int, char **));
219void	setntrans __P((int, char **));
220void	setoption __P((int, char **));
221void	setpassive __P((int, char **));
222void	setpeer __P((int, char **));
223void	setport __P((int, char **));
224void	setpreserve __P((int, char **));
225void	setprogress __P((int, char **));
226void	setprompt __P((int, char **));
227void	setrate __P((int, char **));
228void	setrunique __P((int, char **));
229void	setstruct __P((int, char **));
230void	setsunique __P((int, char **));
231void	settenex __P((int, char **));
232void	settrace __P((int, char **));
233void	setttywidth __P((int));
234void	settype __P((int, char **));
235void	setupsockbufsize __P((int));
236void	setverbose __P((int, char **));
237void	setxferbuf __P((int, char **));
238void	shell __P((int, char **));
239void	site __P((int, char **));
240void	sizecmd __P((int, char **));
241char   *slurpstring __P((void));
242void	status __P((int, char **));
243int	strsuftoi __P((const char *));
244void	syst __P((int, char **));
245int	togglevar __P((int, char **, int *, const char *));
246void	unsetoption __P((int, char **));
247void	updateremotepwd __P((void));
248void	usage __P((void));
249void	user __P((int, char **));
250int	xconnect __P((int, const struct sockaddr *, int));
251int	xlisten __P((int, int));
252void   *xmalloc __P((size_t));
253StringList *xsl_init __P((void));
254void	xsl_add __P((StringList *, char *));
255char   *xstrdup __P((const char *));
256sig_t	xsignal __P((int, void (func) __P((int))));
257sig_t	xsignal_restart __P((int, void (func) __P((int)), int));
258