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

1.33    ! martynas    1: /*     $OpenBSD: extern.h,v 1.32 2008/06/16 12:03:51 martynas 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.21      millert    66: void    abort_remote(FILE *);
                     67: void    abortpt(int);
                     68: void    abortrecv(int);
                     69: void    abortsend(int);
                     70: void   account(int, char **);
                     71: void   alarmtimer(int);
                     72: int    another(int *, char ***, const char *);
                     73: int    auto_fetch(int, char **, char *);
                     74: void   blkfree(char **);
                     75: void   cd(int, char **);
                     76: void   cdup(int, char **);
                     77: void   changetype(int, int);
                     78: void   cmdabort(int);
                     79: void   cmdscanner(int);
                     80: int    command(const char *, ...);
1.10      millert    81: #ifndef SMALL
1.21      millert    82: unsigned char complete(EditLine *, int);
                     83: void   controlediting(void);
1.10      millert    84: #endif /* !SMALL */
1.32      martynas   85: int    confirm(const char *, const char *, int);
1.21      millert    86: FILE   *dataconn(const char *);
1.27      deraadt    87: void   deletecmd(int, char **);
1.21      millert    88: void   disconnect(int, char **);
                     89: void   do_chmod(int, char **);
                     90: void   do_umask(int, char **);
                     91: void   domacro(int, char **);
                     92: char   *domap(char *);
                     93: void   doproxy(int, char **);
                     94: char   *dotrans(char *);
                     95: int    foregroundproc(void);
1.28      otto       96: int    fileindir(const char *, const char *);
1.21      millert    97: void   get(int, char **);
                     98: struct cmd *getcmd(const char *);
                     99: int    getit(int, char **, int, const char *);
                    100: int    getreply(int);
                    101: int    globulize(char **);
                    102: char   *gunique(const char *);
                    103: void   help(int, char **);
                    104: char   *hookup(char *, char *);
                    105: void   idle(int, char **);
                    106: int     initconn(void);
                    107: void   intr(void);
                    108: int    isurl(const char *);
                    109: void   list_vertical(StringList *);
                    110: void   lcd(int, char **);
1.24      fgsch     111: int    ftp_login(const char *, char *, char *);
1.21      millert   112: void   lostpeer(void);
                    113: void   lpwd(int, char **);
                    114: void   ls(int, char **);
                    115: void   mabort(int);
                    116: void   macdef(int, char **);
                    117: void   makeargv(void);
                    118: void   makedir(int, char **);
                    119: void   mdelete(int, char **);
                    120: void   mget(int, char **);
                    121: void   mls(int, char **);
                    122: void   modtime(int, char **);
                    123: void   mput(int, char **);
                    124: char   *onoff(int);
                    125: void   newer(int, char **);
                    126: void   page(int, char **);
                    127: void    progressmeter(int);
                    128: char   *prompt(void);
                    129: void   proxabort(int);
                    130: void    proxtrans(const char *, const char *, const char *);
                    131: void    psabort(int);
                    132: void   psummary(int);
                    133: void    pswitch(int);
                    134: void    ptransfer(int);
                    135: void   put(int, char **);
1.33    ! martynas  136: void   putit(int, char **, int);
1.21      millert   137: void   pwd(int, char **);
                    138: void   quit(int, char **);
                    139: void   quote(int, char **);
                    140: void   quote1(const char *, int, char **);
1.22      millert   141: void    recvrequest(const char *, const char *, const char *,
                    142:            const char *, int, int);
1.21      millert   143: void   reget(int, char **);
                    144: char   *remglob(char **, int, char **);
                    145: off_t  remotesize(const char *, int);
                    146: time_t remotemodtime(const char *, int);
                    147: void   removedir(int, char **);
                    148: void   renamefile(int, char **);
1.33    ! martynas  149: void   reput(int, char **);
1.21      millert   150: void    reset(int, char **);
                    151: void   restart(int, char **);
                    152: void   rmthelp(int, char **);
                    153: void   rmtstatus(int, char **);
                    154: void    sendrequest(const char *, const char *, const char *, int);
                    155: void   setascii(int, char **);
                    156: void   setbell(int, char **);
                    157: void   setbinary(int, char **);
                    158: void   setcase(int, char **);
                    159: void   setcr(int, char **);
                    160: void   setdebug(int, char **);
                    161: void   setedit(int, char **);
                    162: void   setepsv4(int, char **);
                    163: void   setform(int, char **);
                    164: void   setftmode(int, char **);
                    165: void   setgate(int, char **);
                    166: void   setglob(int, char **);
                    167: void   sethash(int, char **);
                    168: void   setnmap(int, char **);
                    169: void   setntrans(int, char **);
                    170: void   setpassive(int, char **);
                    171: void   setpeer(int, char **);
                    172: void   setport(int, char **);
                    173: void   setpreserve(int, char **);
                    174: void   setprogress(int, char **);
                    175: void   setprompt(int, char **);
                    176: void   setrunique(int, char **);
                    177: void   setstruct(int, char **);
                    178: void   setsunique(int, char **);
                    179: void   settenex(int, char **);
                    180: void   settrace(int, char **);
                    181: void   setttywidth(int);
                    182: void   settype(int, char **);
                    183: void   setverbose(int, char **);
                    184: void   shell(int, char **);
                    185: void   site(int, char **);
                    186: void   sizecmd(int, char **);
                    187: char   *slurpstring(void);
                    188: void   status(int, char **);
                    189: void   syst(int, char **);
                    190: int    togglevar(int, char **, int *, const char *);
                    191: void   usage(void);
                    192: void   user(int, char **);
1.29      pyr       193:
                    194: #ifndef SMALL
                    195: int    ruserpass(const char *, char **, char **, char **);
1.30      pyr       196: void   cookie_load(void);
                    197: void   cookie_get(const char *, const char *, int, char **);
1.29      pyr       198: #endif
1.6       millert   199:
1.1       deraadt   200:
                    201: extern jmp_buf abortprox;
                    202: extern int     abrtflag;
                    203: extern struct  cmd cmdtab[];
1.6       millert   204: extern FILE    *cout;
1.1       deraadt   205: extern int     data;
                    206: extern char    *home;
                    207: extern jmp_buf jabort;
1.23      deraadt   208: extern int     family;
1.1       deraadt   209: extern int     proxy;
                    210: extern char    reply_string[];
                    211: extern off_t   restart_point;
                    212: extern int     NCMDS;
1.31      espie     213: extern int     keep_alive_timeout;
1.6       millert   214:
                    215: extern char *__progname;               /* from crt0.o */
                    216: