# 2.11BSD#431 - /usr/include/arpa/ftp.h

##### Variables

    formnames         X
    modenames         X
    strunames         X
    typenames         X

##### Macros

    BLK_BYTECOUNT     X
    BLK_EOF           X
    BLK_EOR           X
    BLK_ERRORS        X
    BLK_RESTART       X
    COMPLETE          X
    CONTINUE          X
    ERROR             X
    FORM_C            X
    FORM_N            X
    FORM_T            X
    MODE_B            X
    MODE_C            X
    MODE_S            X
    PRELIM            X
    REC_EOF           X
    REC_EOR           X
    REC_ESC           X
    STRU_F            X
    STRU_P            X
    STRU_R            X
    TRANSIENT         X
    TYPE_A            X
    TYPE_E            X
    TYPE_I            X
    TYPE_L            X

       1: /*
       2:  * Copyright (c) 1983, 1989 Regents of the University of California.
       3:  * All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms are permitted
       6:  * provided that the above copyright notice and this paragraph are
       7:  * duplicated in all such forms and that any documentation,
       8:  * advertising materials, and other materials related to such
       9:  * distribution and use acknowledge that the software was developed
      10:  * by the University of California, Berkeley.  The name of the
      11:  * University may not be used to endorse or promote products derived
      12:  * from this software without specific prior written permission.
      13:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
      14:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
      15:  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
      16:  *
      17:  *	@(#)ftp.h	5.4 (Berkeley) 2/21/89
      18:  */
      19:
      20: /*
      21:  * Definitions for FTP
      22:  * See RFC-765
      23:  */
      24:
      25: /*
      26:  * Reply codes.
      27:  */
      28: #define PRELIM      1   /* positive preliminary */
      29: #define COMPLETE    2   /* positive completion */
      30: #define CONTINUE    3   /* positive intermediate */
      31: #define TRANSIENT   4   /* transient negative completion */
      32: #define ERROR       5   /* permanent negative completion */
      33:
      34: /*
      35:  * Type codes
      36:  */
      37: #define TYPE_A      1   /* ASCII */
      38: #define TYPE_E      2   /* EBCDIC */
      39: #define TYPE_I      3   /* image */
      40: #define TYPE_L      4   /* local byte size */
      41:
      42: #ifdef FTP_NAMES
      43: char *typenames[] =  {"0", "ASCII", "EBCDIC", "Image", "Local" };
      44: #endif
      45:
      46: /*
      47:  * Form codes
      48:  */
      49: #define FORM_N      1   /* non-print */
      50: #define FORM_T      2   /* telnet format effectors */
      51: #define FORM_C      3   /* carriage control (ASA) */
      52: #ifdef FTP_NAMES
      53: char *formnames[] =  {"0", "Nonprint", "Telnet", "Carriage-control" };
      54: #endif
      55:
      56: /*
      57:  * Structure codes
      58:  */
      59: #define STRU_F      1   /* file (no record structure) */
      60: #define STRU_R      2   /* record structure */
      61: #define STRU_P      3   /* page structure */
      62: #ifdef FTP_NAMES
      63: char *strunames[] =  {"0", "File", "Record", "Page" };
      64: #endif
      65:
      66: /*
      67:  * Mode types
      68:  */
      69: #define MODE_S      1   /* stream */
      70: #define MODE_B      2   /* block */
      71: #define MODE_C      3   /* compressed */
      72: #ifdef FTP_NAMES
      73: char *modenames[] =  {"0", "Stream", "Block", "Compressed" };
      74: #endif
      75:
      76: /*
      77:  * Record Tokens
      78:  */
      79: #define REC_ESC     '\377'  /* Record-mode Escape */
      80: #define REC_EOR     '\001'  /* Record-mode End-of-Record */
      81: #define REC_EOF     '\002'  /* Record-mode End-of-File */
      82:
      83: /*
      84:  * Block Header
      85:  */
      86: #define BLK_EOR     0x80    /* Block is End-of-Record */
      87: #define BLK_EOF     0x40    /* Block is End-of-File */
      88: #define BLK_ERRORS  0x20    /* Block is suspected of containing errors */
      89: #define BLK_RESTART 0x10    /* Block is Restart Marker */
      90:
      91: #define BLK_BYTECOUNT   2   /* Bytes in this block */

#### Defined variables

formnames defined in line 53; used 1 times

- in /usr/src/libexec/ftpd/ftpd.c line 944

modenames defined in line 73; used 1 times

- in /usr/src/libexec/ftpd/ftpd.c line 952

strunames defined in line 63; used 1 times

- in /usr/src/libexec/ftpd/ftpd.c line 952

typenames defined in line 43; used 1 times

- in /usr/src/libexec/ftpd/ftpd.c line 942

#### Defined macros

BLK_BYTECOUNT defined in line 91; never used
BLK_EOF defined in line 87; never used
BLK_EOR defined in line 86; never used
BLK_ERRORS defined in line 88; never used
BLK_RESTART defined in line 89; never used
COMPLETE defined in line 29; used 9 times

- in /usr/src/ucb/ftp/cmds.c line 116, 203, 584, 1309, 2152
- in /usr/src/ucb/ftp/ftp.c line 241, 1149, 1342, 1371

CONTINUE defined in line 30; used 7 times

- in /usr/src/ucb/ftp/cmds.c line 1118, 1294-1299(2)
- in /usr/src/ucb/ftp/ftp.c line 231-236(2), 549, 800

ERROR defined in line 32; used 7 times

- in /usr/src/ucb/ftp/cmds.c line 980, 1331, 1358, 1385, 2009
- in /usr/src/ucb/ftp/ftp.c line 1069, 1144

FORM_C defined in line 51; used 1 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 538

FORM_N defined in line 49; used 6 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 136, 530, 545, 555
- in /usr/src/libexec/ftpd/ftpd.c line 239
- in /usr/src/ucb/ftp/main.c line 107

FORM_T defined in line 50; used 1 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 534

MODE_B defined in line 70; used 1 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 604

MODE_C defined in line 71; used 1 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 608

MODE_S defined in line 69; used 3 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 600
- in /usr/src/libexec/ftpd/ftpd.c line 241
- in /usr/src/ucb/ftp/main.c line 108

PRELIM defined in line 28; used 12 times

- in /usr/src/ucb/ftp/cmds.c line 1419-1420(2), 1455-1456(2)
- in /usr/src/ucb/ftp/ftp.c line 559, 568, 804, 825, 1394, 1418, 1453, 1528

REC_EOF defined in line 81; never used
REC_EOR defined in line 80; never used
REC_ESC defined in line 79; never used
STRU_F defined in line 59; used 3 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 586
- in /usr/src/libexec/ftpd/ftpd.c line 240
- in /usr/src/ucb/ftp/main.c line 109

STRU_P defined in line 61; used 1 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 594

STRU_R defined in line 60; used 1 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 590

TRANSIENT defined in line 31; never used
TYPE_A defined in line 37; used 14 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 544-549(2)
- in /usr/src/libexec/ftpd/ftpd.c line 238, 531, 582, 690, 724, 943, 1346, 1381-1384(2)
- in /usr/src/ucb/ftp/cmds.c line 155
- in /usr/src/ucb/ftp/ftp.c line 791
- in /usr/src/ucb/ftp/main.c line 106

TYPE_E defined in line 38; used 4 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 554-559(2)
- in /usr/src/libexec/ftpd/ftpd.c line 943
- in /usr/src/ucb/ftp/cmds.c line 158

TYPE_I defined in line 39; used 4 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 564
- in /usr/src/ucb/ftp/cmds.c line 156-157(2)
- in /usr/src/ucb/ftp/ftp.c line 791

TYPE_L defined in line 40; used 5 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 568-573(2), 579
- in /usr/src/libexec/ftpd/ftpd.c line 945
- in /usr/src/ucb/ftp/cmds.c line 159

#### Usage of this include

ftp.h used 5 times

- in /usr/src/libexec/ftpd/ftpcmd.y line 36
- in /usr/src/libexec/ftpd/ftpd.c line 40
- in /usr/src/ucb/ftp/cmds.c line 30
- in /usr/src/ucb/ftp/ftp.c line 30
- in /usr/src/ucb/ftp/main.c line 34

Last modified: 1989-02-22 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1590 |