diff options
Diffstat (limited to 'src/extern.h')
-rw-r--r-- | src/extern.h | 45 |
1 files changed, 20 insertions, 25 deletions
diff --git a/src/extern.h b/src/extern.h index f2b802ac5b0c..9b6c6458c2ec 100644 --- a/src/extern.h +++ b/src/extern.h @@ -1,7 +1,8 @@ -/* $NetBSD: extern.h,v 1.67 2005/05/14 15:26:43 lukem Exp $ */ +/* $NetBSD: extern.h,v 1.12 2009/11/15 10:12:37 lukem Exp $ */ +/* from NetBSD: extern.h,v 1.77 2009/07/13 19:05:41 roy Exp */ /*- - * Copyright (c) 1996-2005 The NetBSD Foundation, Inc. + * Copyright (c) 1996-2009 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation @@ -15,13 +16,6 @@ * 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 NetBSD - * Foundation, Inc. and its contributors. - * 4. Neither the name of The NetBSD Foundation 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 NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED @@ -118,7 +112,7 @@ void cmdabort(int); void cmdtimeout(int); void cmdscanner(void); int command(const char *, ...) - __attribute__((__format__(__printf__, 1, 2))); + ; #ifndef NO_EDITCOMPLETE unsigned char complete(EditLine *, int); void controlediting(void); @@ -141,6 +135,7 @@ int ftp_login(const char *, const char *, const char *); void get(int, char **); struct cmd *getcmd(const char *); int getit(int, char **, int, const char *); +int get_line(FILE *, char *, size_t, const char **); struct option *getoption(const char *); char *getoptionvalue(const char *); void getremoteinfo(void); @@ -148,7 +143,7 @@ int getreply(int); char *globulize(const char *); char *gunique(const char *); void help(int, char **); -char *hookup(char *, char *); +char *hookup(const char *, const char *); void idlecmd(int, char **); int initconn(void); void intr(int); @@ -159,22 +154,19 @@ void lostpeer(int); void lpage(int, char **); void lpwd(int, char **); void ls(int, char **); -void mabort(void); void macdef(int, char **); void makeargv(void); void makedir(int, char **); void mdelete(int, char **); void mget(int, char **); -void mintr(int); void mls(int, char **); void mlst(int, char **); void modtime(int, char **); void mput(int, char **); -char *onoff(int); +const char *onoff(int); void opts(int, char **); void newer(int, char **); void page(int, char **); -int parseport(const char *, int); int parserate(int, char **, int); char *prompt(void); void proxabort(int); @@ -189,18 +181,18 @@ void quote1(const char *, int, char **); void recvrequest(const char *, const char *, const char *, const char *, int, int); void reget(int, char **); -char *remglob(char **, int, char **); +char *remglob(char **, int, const char **); time_t remotemodtime(const char *, int); off_t remotesize(const char *, int); void removedir(int, char **); void renamefile(int, char **); void reset(int, char **); void restart(int, char **); +const char *rfc2822time(const struct tm *); void rmthelp(int, char **); void rmtstatus(int, char **); char *rprompt(void); -int ruserpass(const char *, const char **, const char **, - const char **); +int ruserpass(const char *, char **, char **, char **); void sendrequest(const char *, const char *, const char *, int); void setascii(int, char **); void setbell(int, char **); @@ -210,6 +202,8 @@ void setcr(int, char **); void setdebug(int, char **); void setedit(int, char **); void setepsv4(int, char **); +void setepsv6(int, char **); +void setepsv(int, char **); void setform(int, char **); void setftmode(int, char **); void setgate(int, char **); @@ -235,6 +229,7 @@ void settype(int, char **); void setupsockbufsize(int); void setverbose(int, char **); void setxferbuf(int, char **); +void set_option(const char *, const char *, int); void shell(int, char **); void site(int, char **); void sizecmd(int, char **); @@ -248,10 +243,10 @@ void updatelocalcwd(void); void updateremotecwd(void); void usage(void); void user(int, char **); -int xconnect(int, const struct sockaddr *, socklen_t); -int xlisten(int, int); -int xpoll(struct pollfd *, int, int); -void *xmalloc(size_t); -StringList *xsl_init(void); -void xsl_add(StringList *, char *); -char *xstrdup(const char *); +int ftp_connect(int, const struct sockaddr *, socklen_t); +int ftp_listen(int, int); +int ftp_poll(struct pollfd *, int, int); +void *ftp_malloc(size_t); +StringList *ftp_sl_init(void); +void ftp_sl_add(StringList *, char *); +char *ftp_strdup(const char *); |