1999-07-12 17:20:34 +04:00
|
|
|
/* $NetBSD: extern.h,v 1.34 1999/07/12 13:20:34 lukem Exp $ */
|
1999-07-02 12:07:40 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 1997 and 1998 WIDE Project.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. Neither the name of the project nor the names of its contributors
|
|
|
|
* may be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*/
|
1995-09-08 05:05:59 +04:00
|
|
|
|
1994-08-25 07:27:56 +04:00
|
|
|
/*-
|
|
|
|
* Copyright (c) 1994 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by the University of
|
|
|
|
* California, Berkeley and its contributors.
|
|
|
|
* 4. Neither the name of the University nor the names of its contributors
|
|
|
|
* may be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
1995-09-08 05:05:59 +04:00
|
|
|
* @(#)extern.h 8.3 (Berkeley) 10/9/94
|
1994-08-25 07:27:56 +04:00
|
|
|
*/
|
|
|
|
|
1998-07-10 08:39:03 +04:00
|
|
|
struct sockaddr;
|
1998-11-18 10:24:25 +03:00
|
|
|
struct tm;
|
1994-08-25 07:27:56 +04:00
|
|
|
|
|
|
|
void abort_remote __P((FILE *));
|
1997-03-13 09:23:11 +03:00
|
|
|
void abortpt __P((int));
|
|
|
|
void abortrecv __P((int));
|
|
|
|
void abortsend __P((int));
|
1994-08-25 07:27:56 +04:00
|
|
|
void account __P((int, char **));
|
[Yet Another Huge Ftp Commit - hopefully the last for a while,
barring any more little things people want added ...]
New features:
* progressmeter is now asynchronous, so "stalled" transfers can be
detected. "- stalled -" is displayed instead of the ETA in this case.
When the xfer resumes, the time that the xfer was stalled for is
factored out of the ETA. It is debatable whether this is better than
not factoring it out, but I like it this way (I.e, if it stalls for 8
seconds and the ETA was 30 seconds, when it resumes the ETA will still
be 30 seconds).
* verbosity can be disabled on the command line (-V), so that in auto-fetch
mode the only lines displayed will be a description of the file, and
the progress bar (if possible)
* if the screen is resized (and detected via the SIGWINCH signal), the
progress bar will rescale automatically.
Bugs fixed:
* progress bar will not use the last character on the line, as this can
cause problems on some terminals
* screen dimensions (via ioctl(TIOCWINSZ)) should use stdout not stdin
* progressmeter() used some vars before initialising them
* ^D will quit now. [fixes bin/3162]
* use hstrerror() to generate error message for host name lookup failure.
* use getcwd instead of getwd (it should have been OK, but why tempt fate?)
* auto-fetch transfers will always return a positive exit value upon failure
or interruption, relative to the file's position in argv[].
* remote completion of / will work, without putting a leading "///".
This is actually a bug in ftpd(1), where "NLST /" prefixes all names
with "//", but fixing every ftpd(1) is not an option...
1997-02-01 13:44:54 +03:00
|
|
|
void alarmtimer __P((int));
|
1996-11-28 06:12:28 +03:00
|
|
|
int another __P((int *, char ***, const char *));
|
1999-03-22 10:36:40 +03:00
|
|
|
int auto_fetch __P((int, char **));
|
1994-08-25 07:27:56 +04:00
|
|
|
void blkfree __P((char **));
|
|
|
|
void cd __P((int, char **));
|
|
|
|
void cdup __P((int, char **));
|
|
|
|
void changetype __P((int, int));
|
1997-03-13 09:23:11 +03:00
|
|
|
void cmdabort __P((int));
|
1994-08-25 07:27:56 +04:00
|
|
|
void cmdscanner __P((int));
|
[fear this; more ftp hacking from lukem :-]
features:
---------
* transfer rate throttling with the new `rate' command. syntax:
rate direction [max [incr]]
where direction is `all', `get' or `put'.
if max is not supplied, the current settings are displayed.
if max is supplied, then transfers in the given direction will
be throttled to this value.
if incr is supplied, the increment for the `on-the-fly' scaling
will be set to that, otherwise `1024' is used.
currently implemented for binary get, binary put, and url fetches.
not yet supported for ascii get or put, or local file copies.
* on-the-fly scaling of the throttle based on signals:
- SIGUSR1 raises the throttle rate by the increment for that direction
- SIGUSR2 lowers the throttle rate by the increment for that direction
* -T dir,max[,incr] option to set rate from the command line
* `k', `m', `g' suffix support for bytecounts in the `hash', `rate',
`rcvbuf' and `sndbuf' commands)
bug fixes and code mods:
------------------------
* fix up ftp_login() so that ruserpass() is always called, even for
command-line url fetches.
* implement strsuftoi(), which parses a given number into a int with
suffix support. replaces getsockbufsize()
* implement parserate(), which does the argv parsing for -T and rate
* save and restore errno in signal handlers (may not be necessary, but
it doesn't hurt)
notes:
------
the rate command has had reasonable testing, but I'd like feedback
if it doesn't do the right thing, especially from people on slower
(i.e, modem) links.
I haven't tested the rate throttle against a http server which does
`transfer-encoding: chunked' because I couldn't find a server to
test against.
1999-06-29 14:43:16 +04:00
|
|
|
void crankrate __P((int));
|
1997-03-13 09:23:11 +03:00
|
|
|
int command __P((const char *, ...));
|
1999-06-21 02:07:28 +04:00
|
|
|
#ifndef NO_EDITCOMPLETE
|
1997-01-19 17:19:02 +03:00
|
|
|
unsigned char complete __P((EditLine *, int));
|
1997-04-05 07:27:32 +04:00
|
|
|
void controlediting __P((void));
|
1999-06-21 02:07:28 +04:00
|
|
|
#endif /* !NO_EDITCOMPLETE */
|
1996-11-28 06:12:28 +03:00
|
|
|
int confirm __P((const char *, const char *));
|
|
|
|
FILE *dataconn __P((const char *));
|
1994-08-25 07:27:56 +04:00
|
|
|
void delete __P((int, char **));
|
|
|
|
void disconnect __P((int, char **));
|
|
|
|
void do_chmod __P((int, char **));
|
|
|
|
void do_umask __P((int, char **));
|
|
|
|
void domacro __P((int, char **));
|
|
|
|
char *domap __P((char *));
|
|
|
|
void doproxy __P((int, char **));
|
|
|
|
char *dotrans __P((char *));
|
1998-06-04 12:28:35 +04:00
|
|
|
int foregroundproc __P((void));
|
1999-02-07 16:14:06 +03:00
|
|
|
void ftpvis __P((char *, size_t, const char *, size_t));
|
1998-07-27 01:47:47 +04:00
|
|
|
int ftp_login __P((const char *, const char *, const char *));
|
1994-08-25 07:27:56 +04:00
|
|
|
void get __P((int, char **));
|
1996-11-28 06:12:28 +03:00
|
|
|
struct cmd *getcmd __P((const char *));
|
|
|
|
int getit __P((int, char **, int, const char *));
|
1994-08-25 07:27:56 +04:00
|
|
|
int getreply __P((int));
|
|
|
|
int globulize __P((char **));
|
1996-11-28 06:12:28 +03:00
|
|
|
char *gunique __P((const char *));
|
1994-08-25 07:27:56 +04:00
|
|
|
void help __P((int, char **));
|
1999-07-02 12:07:40 +04:00
|
|
|
char *hookup __P((char *, char *));
|
1994-08-25 07:27:56 +04:00
|
|
|
void idle __P((int, char **));
|
|
|
|
int initconn __P((void));
|
1997-03-13 09:23:11 +03:00
|
|
|
void intr __P((void));
|
1999-07-12 17:20:34 +04:00
|
|
|
int isipv6addr __P((const char *));
|
1997-01-19 17:19:02 +03:00
|
|
|
void list_vertical __P((StringList *));
|
1994-08-25 07:27:56 +04:00
|
|
|
void lcd __P((int, char **));
|
1997-03-13 09:23:11 +03:00
|
|
|
void lostpeer __P((void));
|
1996-11-28 06:12:28 +03:00
|
|
|
void lpwd __P((int, char **));
|
1994-08-25 07:27:56 +04:00
|
|
|
void ls __P((int, char **));
|
|
|
|
void mabort __P((int));
|
|
|
|
void macdef __P((int, char **));
|
1997-03-13 09:23:11 +03:00
|
|
|
void makeargv __P((void));
|
1994-08-25 07:27:56 +04:00
|
|
|
void makedir __P((int, char **));
|
|
|
|
void mdelete __P((int, char **));
|
|
|
|
void mget __P((int, char **));
|
1998-11-18 10:24:25 +03:00
|
|
|
time_t mkgmtime __P((struct tm *));
|
1994-08-25 07:27:56 +04:00
|
|
|
void mls __P((int, char **));
|
|
|
|
void modtime __P((int, char **));
|
|
|
|
void mput __P((int, char **));
|
|
|
|
char *onoff __P((int));
|
|
|
|
void newer __P((int, char **));
|
1997-03-13 09:23:11 +03:00
|
|
|
void page __P((int, char **));
|
[fear this; more ftp hacking from lukem :-]
features:
---------
* transfer rate throttling with the new `rate' command. syntax:
rate direction [max [incr]]
where direction is `all', `get' or `put'.
if max is not supplied, the current settings are displayed.
if max is supplied, then transfers in the given direction will
be throttled to this value.
if incr is supplied, the increment for the `on-the-fly' scaling
will be set to that, otherwise `1024' is used.
currently implemented for binary get, binary put, and url fetches.
not yet supported for ascii get or put, or local file copies.
* on-the-fly scaling of the throttle based on signals:
- SIGUSR1 raises the throttle rate by the increment for that direction
- SIGUSR2 lowers the throttle rate by the increment for that direction
* -T dir,max[,incr] option to set rate from the command line
* `k', `m', `g' suffix support for bytecounts in the `hash', `rate',
`rcvbuf' and `sndbuf' commands)
bug fixes and code mods:
------------------------
* fix up ftp_login() so that ruserpass() is always called, even for
command-line url fetches.
* implement strsuftoi(), which parses a given number into a int with
suffix support. replaces getsockbufsize()
* implement parserate(), which does the argv parsing for -T and rate
* save and restore errno in signal handlers (may not be necessary, but
it doesn't hurt)
notes:
------
the rate command has had reasonable testing, but I'd like feedback
if it doesn't do the right thing, especially from people on slower
(i.e, modem) links.
I haven't tested the rate throttle against a http server which does
`transfer-encoding: chunked' because I couldn't find a server to
test against.
1999-06-29 14:43:16 +04:00
|
|
|
int parserate __P((int, char **, int));
|
1996-12-06 05:06:46 +03:00
|
|
|
void progressmeter __P((int));
|
1997-03-13 09:23:11 +03:00
|
|
|
char *prompt __P((void));
|
|
|
|
void proxabort __P((int));
|
1996-11-28 06:12:28 +03:00
|
|
|
void proxtrans __P((const char *, const char *, const char *));
|
1997-03-13 09:23:11 +03:00
|
|
|
void psabort __P((int));
|
1996-11-25 08:13:18 +03:00
|
|
|
void psummary __P((int));
|
1994-08-25 07:27:56 +04:00
|
|
|
void pswitch __P((int));
|
1996-12-06 05:06:46 +03:00
|
|
|
void ptransfer __P((int));
|
1994-08-25 07:27:56 +04:00
|
|
|
void put __P((int, char **));
|
|
|
|
void pwd __P((int, char **));
|
|
|
|
void quit __P((int, char **));
|
|
|
|
void quote __P((int, char **));
|
1996-11-28 06:12:28 +03:00
|
|
|
void quote1 __P((const char *, int, char **));
|
1998-07-10 08:39:03 +04:00
|
|
|
void rcvbuf __P((int, char **));
|
1996-11-28 06:12:28 +03:00
|
|
|
void recvrequest __P((const char *, const char *, const char *,
|
1997-08-18 14:20:13 +04:00
|
|
|
const char *, int, int));
|
1994-08-25 07:27:56 +04:00
|
|
|
void reget __P((int, char **));
|
1997-03-13 09:23:11 +03:00
|
|
|
char *remglob __P((char **, int, char **));
|
1996-12-29 07:05:29 +03:00
|
|
|
off_t remotesize __P((const char *, int));
|
|
|
|
time_t remotemodtime __P((const char *, int));
|
1994-08-25 07:27:56 +04:00
|
|
|
void removedir __P((int, char **));
|
|
|
|
void renamefile __P((int, char **));
|
|
|
|
void reset __P((int, char **));
|
1998-07-10 08:39:03 +04:00
|
|
|
void resetsockbufsize __P((void));
|
1994-08-25 07:27:56 +04:00
|
|
|
void restart __P((int, char **));
|
|
|
|
void rmthelp __P((int, char **));
|
|
|
|
void rmtstatus __P((int, char **));
|
1998-07-27 01:47:47 +04:00
|
|
|
int ruserpass __P((const char *, const char **, const char **,
|
|
|
|
const char **));
|
1996-11-28 06:12:28 +03:00
|
|
|
void sendrequest __P((const char *, const char *, const char *, int));
|
1994-08-25 07:27:56 +04:00
|
|
|
void setascii __P((int, char **));
|
|
|
|
void setbell __P((int, char **));
|
|
|
|
void setbinary __P((int, char **));
|
|
|
|
void setcase __P((int, char **));
|
|
|
|
void setcr __P((int, char **));
|
|
|
|
void setdebug __P((int, char **));
|
1997-01-19 17:19:02 +03:00
|
|
|
void setedit __P((int, char **));
|
1999-07-12 00:37:39 +04:00
|
|
|
void setepsv4 __P((int, char **));
|
1994-08-25 07:27:56 +04:00
|
|
|
void setform __P((int, char **));
|
|
|
|
void setftmode __P((int, char **));
|
1997-08-18 14:20:13 +04:00
|
|
|
void setgate __P((int, char **));
|
1994-08-25 07:27:56 +04:00
|
|
|
void setglob __P((int, char **));
|
|
|
|
void sethash __P((int, char **));
|
|
|
|
void setnmap __P((int, char **));
|
|
|
|
void setntrans __P((int, char **));
|
1994-08-25 08:27:41 +04:00
|
|
|
void setpassive __P((int, char **));
|
1994-08-25 07:27:56 +04:00
|
|
|
void setpeer __P((int, char **));
|
|
|
|
void setport __P((int, char **));
|
1996-11-28 06:12:28 +03:00
|
|
|
void setpreserve __P((int, char **));
|
1996-12-06 05:06:46 +03:00
|
|
|
void setprogress __P((int, char **));
|
1994-08-25 07:27:56 +04:00
|
|
|
void setprompt __P((int, char **));
|
[fear this; more ftp hacking from lukem :-]
features:
---------
* transfer rate throttling with the new `rate' command. syntax:
rate direction [max [incr]]
where direction is `all', `get' or `put'.
if max is not supplied, the current settings are displayed.
if max is supplied, then transfers in the given direction will
be throttled to this value.
if incr is supplied, the increment for the `on-the-fly' scaling
will be set to that, otherwise `1024' is used.
currently implemented for binary get, binary put, and url fetches.
not yet supported for ascii get or put, or local file copies.
* on-the-fly scaling of the throttle based on signals:
- SIGUSR1 raises the throttle rate by the increment for that direction
- SIGUSR2 lowers the throttle rate by the increment for that direction
* -T dir,max[,incr] option to set rate from the command line
* `k', `m', `g' suffix support for bytecounts in the `hash', `rate',
`rcvbuf' and `sndbuf' commands)
bug fixes and code mods:
------------------------
* fix up ftp_login() so that ruserpass() is always called, even for
command-line url fetches.
* implement strsuftoi(), which parses a given number into a int with
suffix support. replaces getsockbufsize()
* implement parserate(), which does the argv parsing for -T and rate
* save and restore errno in signal handlers (may not be necessary, but
it doesn't hurt)
notes:
------
the rate command has had reasonable testing, but I'd like feedback
if it doesn't do the right thing, especially from people on slower
(i.e, modem) links.
I haven't tested the rate throttle against a http server which does
`transfer-encoding: chunked' because I couldn't find a server to
test against.
1999-06-29 14:43:16 +04:00
|
|
|
void setrate __P((int, char **));
|
1994-08-25 07:27:56 +04:00
|
|
|
void setrunique __P((int, char **));
|
|
|
|
void setstruct __P((int, char **));
|
|
|
|
void setsunique __P((int, char **));
|
|
|
|
void settenex __P((int, char **));
|
|
|
|
void settrace __P((int, char **));
|
[Yet Another Huge Ftp Commit - hopefully the last for a while,
barring any more little things people want added ...]
New features:
* progressmeter is now asynchronous, so "stalled" transfers can be
detected. "- stalled -" is displayed instead of the ETA in this case.
When the xfer resumes, the time that the xfer was stalled for is
factored out of the ETA. It is debatable whether this is better than
not factoring it out, but I like it this way (I.e, if it stalls for 8
seconds and the ETA was 30 seconds, when it resumes the ETA will still
be 30 seconds).
* verbosity can be disabled on the command line (-V), so that in auto-fetch
mode the only lines displayed will be a description of the file, and
the progress bar (if possible)
* if the screen is resized (and detected via the SIGWINCH signal), the
progress bar will rescale automatically.
Bugs fixed:
* progress bar will not use the last character on the line, as this can
cause problems on some terminals
* screen dimensions (via ioctl(TIOCWINSZ)) should use stdout not stdin
* progressmeter() used some vars before initialising them
* ^D will quit now. [fixes bin/3162]
* use hstrerror() to generate error message for host name lookup failure.
* use getcwd instead of getwd (it should have been OK, but why tempt fate?)
* auto-fetch transfers will always return a positive exit value upon failure
or interruption, relative to the file's position in argv[].
* remote completion of / will work, without putting a leading "///".
This is actually a bug in ftpd(1), where "NLST /" prefixes all names
with "//", but fixing every ftpd(1) is not an option...
1997-02-01 13:44:54 +03:00
|
|
|
void setttywidth __P((int));
|
1994-08-25 07:27:56 +04:00
|
|
|
void settype __P((int, char **));
|
1998-07-10 08:39:03 +04:00
|
|
|
void setupsockbufsize __P((int));
|
1994-08-25 07:27:56 +04:00
|
|
|
void setverbose __P((int, char **));
|
|
|
|
void shell __P((int, char **));
|
|
|
|
void site __P((int, char **));
|
|
|
|
void sizecmd __P((int, char **));
|
1997-03-13 09:23:11 +03:00
|
|
|
char *slurpstring __P((void));
|
1998-07-10 08:39:03 +04:00
|
|
|
void sndbuf __P((int, char **));
|
1994-08-25 07:27:56 +04:00
|
|
|
void status __P((int, char **));
|
[fear this; more ftp hacking from lukem :-]
features:
---------
* transfer rate throttling with the new `rate' command. syntax:
rate direction [max [incr]]
where direction is `all', `get' or `put'.
if max is not supplied, the current settings are displayed.
if max is supplied, then transfers in the given direction will
be throttled to this value.
if incr is supplied, the increment for the `on-the-fly' scaling
will be set to that, otherwise `1024' is used.
currently implemented for binary get, binary put, and url fetches.
not yet supported for ascii get or put, or local file copies.
* on-the-fly scaling of the throttle based on signals:
- SIGUSR1 raises the throttle rate by the increment for that direction
- SIGUSR2 lowers the throttle rate by the increment for that direction
* -T dir,max[,incr] option to set rate from the command line
* `k', `m', `g' suffix support for bytecounts in the `hash', `rate',
`rcvbuf' and `sndbuf' commands)
bug fixes and code mods:
------------------------
* fix up ftp_login() so that ruserpass() is always called, even for
command-line url fetches.
* implement strsuftoi(), which parses a given number into a int with
suffix support. replaces getsockbufsize()
* implement parserate(), which does the argv parsing for -T and rate
* save and restore errno in signal handlers (may not be necessary, but
it doesn't hurt)
notes:
------
the rate command has had reasonable testing, but I'd like feedback
if it doesn't do the right thing, especially from people on slower
(i.e, modem) links.
I haven't tested the rate throttle against a http server which does
`transfer-encoding: chunked' because I couldn't find a server to
test against.
1999-06-29 14:43:16 +04:00
|
|
|
int strsuftoi __P((const char *));
|
1994-08-25 07:27:56 +04:00
|
|
|
void syst __P((int, char **));
|
1996-11-28 06:12:28 +03:00
|
|
|
int togglevar __P((int, char **, int *, const char *));
|
1997-03-13 09:23:11 +03:00
|
|
|
void usage __P((void));
|
1994-08-25 07:27:56 +04:00
|
|
|
void user __P((int, char **));
|
1998-07-10 08:39:03 +04:00
|
|
|
int xconnect __P((int, const struct sockaddr *, int));
|
|
|
|
int xlisten __P((int, int));
|
1998-08-03 05:49:25 +04:00
|
|
|
void *xmalloc __P((size_t));
|
|
|
|
char *xstrdup __P((const char *));
|
1998-08-08 10:46:01 +04:00
|
|
|
sig_t xsignal __P((int, void (func) __P((int))));
|
1994-08-25 07:27:56 +04:00
|
|
|
|
|
|
|
extern struct cmd cmdtab[];
|
1997-01-19 17:19:02 +03:00
|
|
|
extern FILE *cout;
|
1994-08-25 07:27:56 +04:00
|
|
|
extern int data;
|
|
|
|
extern char *home;
|
|
|
|
extern int proxy;
|
|
|
|
extern char reply_string[];
|
|
|
|
extern int NCMDS;
|
1997-01-19 17:19:02 +03:00
|
|
|
|
|
|
|
extern char *__progname; /* from crt0.o */
|
|
|
|
|