2 * Copyright (c) 1994 The Regents of the University of California.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement:
15 * This product includes software developed by the University of
16 * California, Berkeley and its contributors.
17 * 4. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * @(#)extern.h 8.3 (Berkeley) 10/9/94
40 #ifdef TIME_WITH_SYS_TIME
43 #elif defined(HAVE_SYS_TIME_H)
48 #ifdef HAVE_SYS_SELECT_H
49 #include <sys/select.h>
52 void abort_remote (FILE *);
55 void account (int, char **);
56 int another (int *, char ***, char *);
57 void blkfree (char **);
58 void cd (int, char **);
59 void cdup (int, char **);
60 void changetype (int, int);
62 void cmdscanner (int);
63 int command (char *fmt
, ...);
64 int confirm (char *, char *);
65 FILE *dataconn (char *);
66 void delete (int, char **);
67 void disconnect (int, char **);
68 void do_chmod (int, char **);
69 void do_umask (int, char **);
70 void domacro (int, char **);
72 void doproxy (int, char **);
73 char *dotrans (char *);
74 int empty (fd_set
*, int);
76 void get (int, char **);
77 struct cmd
*getcmd (char *);
78 int getit (int, char **, int, char *);
80 int globulize (char **);
81 char *gunique (char *);
82 void help (int, char **);
83 char *hookup (char *, int);
84 void ftp_idle (int, char **);
87 void lcd (int, char **);
89 RETSIGTYPE
lostpeer (int);
90 void ls (int, char **);
91 void macdef (int, char **);
93 void makedir (int, char **);
94 void mdelete (int, char **);
95 void mget (int, char **);
96 void mls (int, char **);
97 void modtime (int, char **);
98 void mput (int, char **);
100 void newer (int, char **);
101 void proxtrans (char *, char *, char *);
104 void ptransfer (char *, long, struct timeval
*, struct timeval
*);
105 void put (int, char **);
106 void pwd (int, char **);
107 void quit (int, char **);
108 void quote (int, char **);
109 void quote1 (char *, int, char **);
110 void recvrequest (char *, char *, char *, char *, int, int);
111 void reget (int, char **);
112 char *remglob (char **, int);
113 void removedir (int, char **);
114 void renamefile (int, char **);
115 void reset (int, char **);
116 void restart (int, char **);
117 void rmthelp (int, char **);
118 void rmtstatus (int, char **);
119 int ruserpass (char *, char **, char **, char **);
120 void sendrequest (char *, char *, char *, int);
121 void setascii (int, char **);
122 void setbell (int, char **);
123 void setbinary (int, char **);
124 void setcase (int, char **);
125 void setcr (int, char **);
126 void setdebug (int, char **);
127 void setform (int, char **);
128 void setftmode (int, char **);
129 void setglob (int, char **);
130 void sethash (int, char **);
131 void setnmap (int, char **);
132 void setntrans (int, char **);
133 void setpassive (int, char **);
134 void setpeer (int, char **);
135 void setport (int, char **);
136 void setprompt (int, char **);
137 void setrunique (int, char **);
138 void setstruct (int, char **);
139 void setsunique (int, char **);
140 void settenex (int, char **);
141 void settrace (int, char **);
142 void settype (int, char **);
143 void setverbose (int, char **);
144 void shell (int, char **);
145 void site (int, char **);
146 void sizecmd (int, char **);
147 char *slurpstring (void);
148 void status (int, char **);
149 void syst (int, char **);
150 void tvsub (struct timeval
*, struct timeval
*, struct timeval
*);
151 void user (int, char **);
153 extern jmp_buf abortprox
;
155 extern struct cmd cmdtab
[];
159 extern jmp_buf jabort
;
161 extern char reply_string
[];
162 extern off_t restart_point
;
165 extern char username
[32];
166 extern char myhostname
[];
167 extern char *mydomain
;