[BACK]Return to extern.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Annotation of src/usr.bin/ftp/extern.h, Revision 1.46

1.46    ! deraadt     1: /*     $OpenBSD: extern.h,v 1.45 2016/09/27 12:32:26 fcambus Exp $     */
1.16      millert     2: /*     $NetBSD: extern.h,v 1.17 1997/08/18 10:20:19 lukem Exp $        */
1.1       deraadt     3:
1.19      itojun      4: /*
                      5:  * Copyright (C) 1997 and 1998 WIDE Project.
                      6:  * All rights reserved.
                      7:  *
                      8:  * Redistribution and use in source and binary forms, with or without
                      9:  * modification, are permitted provided that the following conditions
                     10:  * are met:
                     11:  * 1. Redistributions of source code must retain the above copyright
                     12:  *    notice, this list of conditions and the following disclaimer.
                     13:  * 2. Redistributions in binary form must reproduce the above copyright
                     14:  *    notice, this list of conditions and the following disclaimer in the
                     15:  *    documentation and/or other materials provided with the distribution.
                     16:  * 3. Neither the name of the project nor the names of its contributors
                     17:  *    may be used to endorse or promote products derived from this software
                     18:  *    without specific prior written permission.
                     19:  *
                     20:  * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
                     21:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     22:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     23:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
                     24:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     25:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     26:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     27:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     28:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     29:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     30:  * SUCH DAMAGE.
                     31:  */
                     32:
1.1       deraadt    33: /*-
                     34:  * Copyright (c) 1994 The Regents of the University of California.
                     35:  * All rights reserved.
                     36:  *
                     37:  * Redistribution and use in source and binary forms, with or without
                     38:  * modification, are permitted provided that the following conditions
                     39:  * are met:
                     40:  * 1. Redistributions of source code must retain the above copyright
                     41:  *    notice, this list of conditions and the following disclaimer.
                     42:  * 2. Redistributions in binary form must reproduce the above copyright
                     43:  *    notice, this list of conditions and the following disclaimer in the
                     44:  *    documentation and/or other materials provided with the distribution.
1.25      millert    45:  * 3. Neither the name of the University nor the names of its contributors
1.1       deraadt    46:  *    may be used to endorse or promote products derived from this software
                     47:  *    without specific prior written permission.
                     48:  *
                     49:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     50:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     51:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     52:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     53:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     54:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     55:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     56:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     57:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     58:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     59:  * SUCH DAMAGE.
                     60:  *
                     61:  *     @(#)extern.h    8.3 (Berkeley) 10/9/94
                     62:  */
                     63:
1.18      art        64: #include <sys/types.h>
1.1       deraadt    65:
1.39      martynas   66: void   abort_remote(FILE *);
                     67: void   abortpt(int);
                     68: void   abortrecv(int);
1.21      millert    69: void   alarmtimer(int);
                     70: int    another(int *, char ***, const char *);
                     71: int    auto_fetch(int, char **, char *);
                     72: void   blkfree(char **);
                     73: void   cdup(int, char **);
                     74: void   cmdabort(int);
                     75: void   cmdscanner(int);
                     76: int    command(const char *, ...);
1.35      martynas   77: int    confirm(const char *, const char *);
1.44      millert    78: int    connect_wait(int);
1.21      millert    79: FILE   *dataconn(const char *);
                     80: int    foregroundproc(void);
1.28      otto       81: int    fileindir(const char *, const char *);
1.21      millert    82: struct cmd *getcmd(const char *);
                     83: int    getreply(int);
                     84: int    globulize(char **);
                     85: char   *gunique(const char *);
                     86: void   help(int, char **);
                     87: char   *hookup(char *, char *);
1.39      martynas   88: int    initconn(void);
1.21      millert    89: void   intr(void);
                     90: int    isurl(const char *);
1.24      fgsch      91: int    ftp_login(const char *, char *, char *);
1.21      millert    92: void   lostpeer(void);
                     93: void   makeargv(void);
1.39      martynas   94: void   progressmeter(int, const char *);
1.21      millert    95: char   *prompt(void);
1.39      martynas   96: void   proxtrans(const char *, const char *, const char *);
                     97: void   psabort(int);
1.21      millert    98: void   psummary(int);
1.39      martynas   99: void   pswitch(int);
                    100: void   ptransfer(int);
                    101: void   recvrequest(const char *, const char *, const char *,
1.22      millert   102:            const char *, int, int);
1.21      millert   103: char   *remglob(char **, int, char **);
                    104: off_t  remotesize(const char *, int);
                    105: time_t remotemodtime(const char *, int);
1.39      martynas  106: void   reset(int, char **);
1.21      millert   107: void   rmthelp(int, char **);
                    108: void   sethash(int, char **);
                    109: void   setpeer(int, char **);
                    110: void   setttywidth(int);
                    111: char   *slurpstring(void);
                    112: void   usage(void);
1.29      pyr       113:
1.46    ! deraadt   114: void   cookie_get(const char *, const char *, int, char **);
        !           115: void   cookie_load(void);
        !           116:
1.29      pyr       117: #ifndef SMALL
1.39      martynas  118: void   abortsend(int);
                    119: unsigned char complete(EditLine *, int);
                    120: void   controlediting(void);
                    121: void   domacro(int, char **);
                    122: void   list_vertical(StringList *);
1.35      martynas  123: void   parse_list(char **, char *);
1.39      martynas  124: char   *remglob2(char **, int, char **, FILE **ftemp, char *type);
                    125: int    ruserpass(const char *, char **, char **, char **);
                    126: void   sendrequest(const char *, const char *, const char *, int);
1.34      martynas  127: #endif /* !SMALL */
1.6       millert   128:
1.1       deraadt   129: extern jmp_buf abortprox;
                    130: extern int     abrtflag;
1.6       millert   131: extern FILE    *cout;
1.1       deraadt   132: extern int     data;
                    133: extern char    *home;
                    134: extern jmp_buf jabort;
1.23      deraadt   135: extern int     family;
1.1       deraadt   136: extern int     proxy;
                    137: extern char    reply_string[];
                    138: extern off_t   restart_point;
1.39      martynas  139: extern int     keep_alive_timeout;
1.41      halex     140: extern int     pipeout;
1.42      deraadt   141: extern char    *action;
1.39      martynas  142:
                    143: #ifndef SMALL
1.1       deraadt   144: extern int     NCMDS;
1.39      martynas  145: #endif /* !SMALL */
1.6       millert   146:
                    147: extern char *__progname;               /* from crt0.o */
                    148: