extern.h revision 1.27
1/*	$NetBSD: extern.h,v 1.27 1999/02/07 13:14:06 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
38struct fd_set;
39struct sockaddr;
40struct tm;
41
42void    abort_remote __P((FILE *));
43void    abortpt __P((int));
44void    abortrecv __P((int));
45void    abortsend __P((int));
46void	account __P((int, char **));
47void	alarmtimer __P((int));
48int	another __P((int *, char ***, const char *));
49int	auto_fetch __P((int, char **, char *));
50void	blkfree __P((char **));
51void	cd __P((int, char **));
52void	cdup __P((int, char **));
53void	changetype __P((int, int));
54void	cmdabort __P((int));
55void	cmdscanner __P((int));
56int	command __P((const char *, ...));
57#ifndef SMALL
58unsigned char complete __P((EditLine *, int));
59void	controlediting __P((void));
60#endif /* !SMALL */
61int	confirm __P((const char *, const char *));
62FILE   *dataconn __P((const char *));
63void	delete __P((int, char **));
64void	disconnect __P((int, char **));
65void	do_chmod __P((int, char **));
66void	do_umask __P((int, char **));
67void	domacro __P((int, char **));
68char   *domap __P((char *));
69void	doproxy __P((int, char **));
70char   *dotrans __P((char *));
71int     empty __P((struct fd_set *, int));
72int	foregroundproc __P((void));
73void	ftpvis __P((char *, size_t, const char *, size_t));
74int	ftp_login __P((const char *, const char *, const char *));
75void	get __P((int, char **));
76struct cmd *getcmd __P((const char *));
77int	getit __P((int, char **, int, const char *));
78int	getreply __P((int));
79int	getsockbufsize __P((const char *));
80int	globulize __P((char **));
81char   *gunique __P((const char *));
82void	help __P((int, char **));
83char   *hookup __P((const char *, in_port_t));
84void	idle __P((int, char **));
85int     initconn __P((void));
86void	intr __P((void));
87void	list_vertical __P((StringList *));
88void	lcd __P((int, char **));
89void	lostpeer __P((void));
90void	lpwd __P((int, char **));
91void	ls __P((int, char **));
92void	mabort __P((int));
93void	macdef __P((int, char **));
94void	makeargv __P((void));
95void	makedir __P((int, char **));
96void	mdelete __P((int, char **));
97void	mget __P((int, char **));
98time_t	mkgmtime __P((struct tm *));
99void	mls __P((int, char **));
100void	modtime __P((int, char **));
101void	mput __P((int, char **));
102char   *onoff __P((int));
103void	newer __P((int, char **));
104void	page __P((int, char **));
105void    progressmeter __P((int));
106char   *prompt __P((void));
107void	proxabort __P((int));
108void    proxtrans __P((const char *, const char *, const char *));
109void    psabort __P((int));
110void	psummary __P((int));
111void    pswitch __P((int));
112void    ptransfer __P((int));
113void	put __P((int, char **));
114void	pwd __P((int, char **));
115void	quit __P((int, char **));
116void	quote __P((int, char **));
117void	quote1 __P((const char *, int, char **));
118void	rcvbuf __P((int, char **));
119void    recvrequest __P((const char *, const char *, const char *,
120	    const char *, int, int));
121void	reget __P((int, char **));
122char   *remglob __P((char **, int, char **));
123off_t	remotesize __P((const char *, int));
124time_t	remotemodtime __P((const char *, int));
125void	removedir __P((int, char **));
126void	renamefile __P((int, char **));
127void    reset __P((int, char **));
128void	resetsockbufsize __P((void));
129void	restart __P((int, char **));
130void	rmthelp __P((int, char **));
131void	rmtstatus __P((int, char **));
132int	ruserpass __P((const char *, const char **, const char **,
133	    const char **));
134void    sendrequest __P((const char *, const char *, const char *, int));
135void	setascii __P((int, char **));
136void	setbell __P((int, char **));
137void	setbinary __P((int, char **));
138void	setcase __P((int, char **));
139void	setcr __P((int, char **));
140void	setdebug __P((int, char **));
141void	setedit __P((int, char **));
142void	setform __P((int, char **));
143void	setftmode __P((int, char **));
144void	setgate __P((int, char **));
145void	setglob __P((int, char **));
146void	sethash __P((int, char **));
147void	setnmap __P((int, char **));
148void	setntrans __P((int, char **));
149void	setpassive __P((int, char **));
150void	setpeer __P((int, char **));
151void	setport __P((int, char **));
152void	setpreserve __P((int, char **));
153void	setprogress __P((int, char **));
154void	setprompt __P((int, char **));
155void	setrunique __P((int, char **));
156void	setstruct __P((int, char **));
157void	setsunique __P((int, char **));
158void	settenex __P((int, char **));
159void	settrace __P((int, char **));
160void	setttywidth __P((int));
161void	settype __P((int, char **));
162void	setupsockbufsize __P((int));
163void	setverbose __P((int, char **));
164void	shell __P((int, char **));
165void	site __P((int, char **));
166void	sizecmd __P((int, char **));
167char   *slurpstring __P((void));
168void	sndbuf __P((int, char **));
169void	status __P((int, char **));
170void	syst __P((int, char **));
171int	togglevar __P((int, char **, int *, const char *));
172void	usage __P((void));
173void	user __P((int, char **));
174int	xconnect __P((int, const struct sockaddr *, int));
175int	xlisten __P((int, int));
176void   *xmalloc __P((size_t));
177char   *xstrdup __P((const char *));
178sig_t	xsignal __P((int, void (func) __P((int))));
179
180extern struct	cmd cmdtab[];
181extern FILE    *cout;
182extern int	data;
183extern char    *home;
184extern int	proxy;
185extern char	reply_string[];
186extern int	NCMDS;
187
188extern char *__progname;		/* from crt0.o */
189
190