[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.21

1.21    ! millert     1: /*     $OpenBSD: extern.h,v 1.20 2000/06/21 19:22:54 itojun 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.
                     45:  * 3. All advertising materials mentioning features or use of this software
                     46:  *    must display the following acknowledgement:
                     47:  *     This product includes software developed by the University of
                     48:  *     California, Berkeley and its contributors.
                     49:  * 4. Neither the name of the University nor the names of its contributors
                     50:  *    may be used to endorse or promote products derived from this software
                     51:  *    without specific prior written permission.
                     52:  *
                     53:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     54:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     55:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     56:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     57:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     58:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     59:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     60:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     61:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     62:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     63:  * SUCH DAMAGE.
                     64:  *
                     65:  *     @(#)extern.h    8.3 (Berkeley) 10/9/94
                     66:  */
                     67:
1.18      art        68: #include <sys/types.h>
1.1       deraadt    69:
1.21    ! millert    70: void    abort_remote(FILE *);
        !            71: void    abortpt(int);
        !            72: void    abortrecv(int);
        !            73: void    abortsend(int);
        !            74: void   account(int, char **);
        !            75: void   alarmtimer(int);
        !            76: int    another(int *, char ***, const char *);
        !            77: int    auto_fetch(int, char **, char *);
        !            78: void   blkfree(char **);
        !            79: void   cd(int, char **);
        !            80: void   cdup(int, char **);
        !            81: void   changetype(int, int);
        !            82: void   cmdabort(int);
        !            83: void   cmdscanner(int);
        !            84: int    command(const char *, ...);
1.10      millert    85: #ifndef SMALL
1.21    ! millert    86: unsigned char complete(EditLine *, int);
        !            87: void   controlediting(void);
1.10      millert    88: #endif /* !SMALL */
1.21    ! millert    89: int    confirm(const char *, const char *);
        !            90: FILE   *dataconn(const char *);
        !            91: void   delete(int, char **);
        !            92: void   disconnect(int, char **);
        !            93: void   do_chmod(int, char **);
        !            94: void   do_umask(int, char **);
        !            95: void   domacro(int, char **);
        !            96: char   *domap(char *);
        !            97: void   doproxy(int, char **);
        !            98: char   *dotrans(char *);
        !            99: int     empty(fd_set *, int);
        !           100: int    foregroundproc(void);
        !           101: void   get(int, char **);
        !           102: struct cmd *getcmd(const char *);
        !           103: int    getit(int, char **, int, const char *);
        !           104: int    getreply(int);
        !           105: int    globulize(char **);
        !           106: char   *gunique(const char *);
        !           107: void   help(int, char **);
        !           108: char   *hookup(char *, char *);
        !           109: void   idle(int, char **);
        !           110: int     initconn(void);
        !           111: void   intr(void);
        !           112: int    isurl(const char *);
        !           113: void   list_vertical(StringList *);
        !           114: void   lcd(int, char **);
        !           115: int    login(const char *, char *, char *);
        !           116: void   lostpeer(void);
        !           117: void   lpwd(int, char **);
        !           118: void   ls(int, char **);
        !           119: void   mabort(int);
        !           120: void   macdef(int, char **);
        !           121: void   makeargv(void);
        !           122: void   makedir(int, char **);
        !           123: void   mdelete(int, char **);
        !           124: void   mget(int, char **);
        !           125: void   mls(int, char **);
        !           126: void   modtime(int, char **);
        !           127: void   mput(int, char **);
        !           128: char   *onoff(int);
        !           129: void   newer(int, char **);
        !           130: void   page(int, char **);
        !           131: void    progressmeter(int);
        !           132: char   *prompt(void);
        !           133: void   proxabort(int);
        !           134: void    proxtrans(const char *, const char *, const char *);
        !           135: void    psabort(int);
        !           136: void   psummary(int);
        !           137: void    pswitch(int);
        !           138: void    ptransfer(int);
        !           139: void   put(int, char **);
        !           140: void   pwd(int, char **);
        !           141: void   quit(int, char **);
        !           142: void   quote(int, char **);
        !           143: void   quote1(const char *, int, char **);
1.6       millert   144: void    recvrequest __P((const char *, const char *, const char *,
1.16      millert   145:            const char *, int, int));
1.21    ! millert   146: void   reget(int, char **);
        !           147: char   *remglob(char **, int, char **);
        !           148: off_t  remotesize(const char *, int);
        !           149: time_t remotemodtime(const char *, int);
        !           150: void   removedir(int, char **);
        !           151: void   renamefile(int, char **);
        !           152: void    reset(int, char **);
        !           153: void   restart(int, char **);
        !           154: void   rmthelp(int, char **);
        !           155: void   rmtstatus(int, char **);
        !           156: int    ruserpass(const char *, char **, char **, char **);
        !           157: void    sendrequest(const char *, const char *, const char *, int);
        !           158: void   setascii(int, char **);
        !           159: void   setbell(int, char **);
        !           160: void   setbinary(int, char **);
        !           161: void   setcase(int, char **);
        !           162: void   setcr(int, char **);
        !           163: void   setdebug(int, char **);
        !           164: void   setedit(int, char **);
        !           165: void   setepsv4(int, char **);
        !           166: void   setform(int, char **);
        !           167: void   setftmode(int, char **);
        !           168: void   setgate(int, char **);
        !           169: void   setglob(int, char **);
        !           170: void   sethash(int, char **);
        !           171: void   setnmap(int, char **);
        !           172: void   setntrans(int, char **);
        !           173: void   setpassive(int, char **);
        !           174: void   setpeer(int, char **);
        !           175: void   setport(int, char **);
        !           176: void   setpreserve(int, char **);
        !           177: void   setprogress(int, char **);
        !           178: void   setprompt(int, char **);
        !           179: void   setrunique(int, char **);
        !           180: void   setstruct(int, char **);
        !           181: void   setsunique(int, char **);
        !           182: void   settenex(int, char **);
        !           183: void   settrace(int, char **);
        !           184: void   setttywidth(int);
        !           185: void   settype(int, char **);
        !           186: void   setverbose(int, char **);
        !           187: void   shell(int, char **);
        !           188: void   site(int, char **);
        !           189: void   sizecmd(int, char **);
        !           190: char   *slurpstring(void);
        !           191: void   status(int, char **);
        !           192: void   syst(int, char **);
        !           193: int    togglevar(int, char **, int *, const char *);
        !           194: void   usage(void);
        !           195: void   user(int, char **);
1.6       millert   196:
1.1       deraadt   197:
                    198: extern jmp_buf abortprox;
                    199: extern int     abrtflag;
                    200: extern struct  cmd cmdtab[];
1.6       millert   201: extern FILE    *cout;
1.1       deraadt   202: extern int     data;
                    203: extern char    *home;
                    204: extern jmp_buf jabort;
                    205: extern int     proxy;
                    206: extern char    reply_string[];
                    207: extern off_t   restart_point;
                    208: extern int     NCMDS;
1.6       millert   209:
                    210: extern char *__progname;               /* from crt0.o */
                    211: