| 1 |
/* |
| 2 |
Copyright (C) 1995-2026 Free Software Foundation, Inc. |
| 3 |
|
| 4 |
This file is part of GNU Inetutils. |
| 5 |
|
| 6 |
GNU Inetutils is free software: you can redistribute it and/or modify |
| 7 |
it under the terms of the GNU General Public License as published by |
| 8 |
the Free Software Foundation, either version 3 of the License, or (at |
| 9 |
your option) any later version. |
| 10 |
|
| 11 |
GNU Inetutils is distributed in the hope that it will be useful, but |
| 12 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
General Public License for more details. |
| 15 |
|
| 16 |
You should have received a copy of the GNU General Public License |
| 17 |
along with this program. If not, see `http://www.gnu.org/licenses/'. */ |
| 18 |
|
| 19 |
/* |
| 20 |
* Copyright (c) 1994 |
| 21 |
* The Regents of the University of California. All rights reserved. |
| 22 |
* |
| 23 |
* Redistribution and use in source and binary forms, with or without |
| 24 |
* modification, are permitted provided that the following conditions |
| 25 |
* are met: |
| 26 |
* 1. Redistributions of source code must retain the above copyright |
| 27 |
* notice, this list of conditions and the following disclaimer. |
| 28 |
* 2. Redistributions in binary form must reproduce the above copyright |
| 29 |
* notice, this list of conditions and the following disclaimer in the |
| 30 |
* documentation and/or other materials provided with the distribution. |
| 31 |
* 3. Neither the name of the University nor the names of its contributors |
| 32 |
* may be used to endorse or promote products derived from this software |
| 33 |
* without specific prior written permission. |
| 34 |
* |
| 35 |
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
| 36 |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 37 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 38 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
| 39 |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 40 |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 41 |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 42 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 43 |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 44 |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 45 |
* SUCH DAMAGE. |
| 46 |
*/ |
| 47 |
|
| 48 |
struct timeval; |
| 49 |
struct fd_set; |
| 50 |
struct timespec; |
| 51 |
|
| 52 |
void abort_remote (FILE *); |
| 53 |
void abortpt (int sig); |
| 54 |
void abortrecv (int sig); |
| 55 |
void abortsend (int sig); |
| 56 |
void account (int, char **); |
| 57 |
int another (int *, char ***, const char *); |
| 58 |
void blkfree (char **); |
| 59 |
void cd (int, char **); |
| 60 |
void cdup (int, char **); |
| 61 |
void changetype (int, int); |
| 62 |
void cmdabort (int sig); |
| 63 |
void cmdscanner (int); |
| 64 |
int command (const char *fmt, ...); |
| 65 |
int confirm (char *, char *); |
| 66 |
FILE *dataconn (char *); |
| 67 |
void delete (int, char **); |
| 68 |
void disconnect (int, char **); |
| 69 |
void do_chmod (int, char **); |
| 70 |
void do_umask (int, char **); |
| 71 |
void domacro (int, char **); |
| 72 |
char *domap (char *); |
| 73 |
void doproxy (int, char **); |
| 74 |
char *dotrans (char *); |
| 75 |
void fatal (char *); |
| 76 |
void get (int, char **); |
| 77 |
struct cmd *getcmd (char *); |
| 78 |
int getit (int, char **, int, char *); |
| 79 |
int getreply (int); |
| 80 |
char *globulize (char *); |
| 81 |
char *gunique (char *); |
| 82 |
void help (int, char **); |
| 83 |
char *hookup (char *, in_port_t); |
| 84 |
void site_idle (int, char **); |
| 85 |
int initconn (void); |
| 86 |
void intr (int sig); |
| 87 |
void lcd (int, char **); |
| 88 |
int login (char *); |
| 89 |
void lostpeer (int sig); |
| 90 |
void lpwd (int, char **); |
| 91 |
void ls (int, char **); |
| 92 |
void mabort (int); |
| 93 |
void macdef (int, char **); |
| 94 |
void makeargv (void); |
| 95 |
void makedir (int, char **); |
| 96 |
void mdelete (int, char **); |
| 97 |
void mget (int, char **); |
| 98 |
void mls (int, char **); |
| 99 |
void modtime (int, char **); |
| 100 |
void mput (int, char **); |
| 101 |
char *onoff (int); |
| 102 |
void newer (int, char **); |
| 103 |
void proxabort (int sig); |
| 104 |
void proxtrans (char *, char *, char *); |
| 105 |
void psabort (int sig); |
| 106 |
void pswitch (int); |
| 107 |
void ptransfer (char *, long long, struct timespec *, struct timespec *); |
| 108 |
void put (int, char **); |
| 109 |
void pwd (int, char **); |
| 110 |
void quit (int, char **); |
| 111 |
void quote (int, char **); |
| 112 |
void quote1 (char *, int, char **); |
| 113 |
void recvrequest (char *, char *, char *, char *, int); |
| 114 |
void reget (int, char **); |
| 115 |
char *remglob (char **, int); |
| 116 |
void removedir (int, char **); |
| 117 |
void renamefile (int, char **); |
| 118 |
void reset (int, char **); |
| 119 |
void restart (int, char **); |
| 120 |
void rmthelp (int, char **); |
| 121 |
void rmtstatus (int, char **); |
| 122 |
int remote_userpass (char *, char **, char **, char **); |
| 123 |
void sendrequest (char *, char *, char *, int); |
| 124 |
void setascii (int, char **); |
| 125 |
void setbell (int, char **); |
| 126 |
void setbinary (int, char **); |
| 127 |
void setcase (int, char **); |
| 128 |
void setcr (int, char **); |
| 129 |
void setdebug (int, char **); |
| 130 |
void setepsv4 (int, char **); |
| 131 |
void setform (int, char **); |
| 132 |
void setftmode (int, char **); |
| 133 |
void setglob (int, char **); |
| 134 |
void sethash (int, char **); |
| 135 |
void setipany (int, char **); |
| 136 |
void setipv4 (int, char **); |
| 137 |
void setipv6 (int, char **); |
| 138 |
void setnmap (int, char **); |
| 139 |
void setntrans (int, char **); |
| 140 |
void setpassive (int, char **); |
| 141 |
void setpeer (int, char **); |
| 142 |
void setport (int, char **); |
| 143 |
void setprompt (int, char **); |
| 144 |
void setrunique (int, char **); |
| 145 |
void setstruct (int, char **); |
| 146 |
void setsunique (int, char **); |
| 147 |
void settenex (int, char **); |
| 148 |
void settrace (int, char **); |
| 149 |
void settype (int, char **); |
| 150 |
void setverbose (int, char **); |
| 151 |
void shell (int, char **); |
| 152 |
void site (int, char **); |
| 153 |
void sizecmd (int, char **); |
| 154 |
void status (int, char **); |
| 155 |
void syst (int, char **); |
| 156 |
void user (int, char **); |
| 157 |
|
| 158 |
extern jmp_buf abortprox; |
| 159 |
extern int abrtflag; |
| 160 |
extern FILE *cout; |
| 161 |
extern int data; |
| 162 |
extern char *home; |
| 163 |
extern jmp_buf jabort; |
| 164 |
extern int proxy; |
| 165 |
extern char reply_string[]; |
| 166 |
extern off_t restart_point; |
| 167 |
extern int NCMDS; |