1: /*
   2:  * Copyright (c) 1983 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)ftp.h	5.2 (Berkeley) 5/30/85
   7:  */
   8: 
   9: /*
  10:  * Definitions for FTP
  11:  * See RFC-765
  12:  */
  13: 
  14: /*
  15:  * Reply codes.
  16:  */
  17: #define PRELIM      1   /* positive preliminary */
  18: #define COMPLETE    2   /* positive completion */
  19: #define CONTINUE    3   /* positive intermediate */
  20: #define TRANSIENT   4   /* transient negative completion */
  21: #define ERROR       5   /* permanent negative completion */
  22: 
  23: /*
  24:  * Type codes
  25:  */
  26: #define TYPE_A      1   /* ASCII */
  27: #define TYPE_E      2   /* EBCDIC */
  28: #define TYPE_I      3   /* image */
  29: #define TYPE_L      4   /* local byte size */
  30: 
  31: /*
  32:  * Form codes
  33:  */
  34: #define FORM_N      1   /* non-print */
  35: #define FORM_T      2   /* telnet format effectors */
  36: #define FORM_C      3   /* carriage control (ASA) */
  37: 
  38: /*
  39:  * Structure codes
  40:  */
  41: #define STRU_F      1   /* file (no record structure) */
  42: #define STRU_R      2   /* record structure */
  43: #define STRU_P      3   /* page structure */
  44: 
  45: /*
  46:  * Mode types
  47:  */
  48: #define MODE_S      1   /* stream */
  49: #define MODE_B      2   /* block */
  50: #define MODE_C      3   /* compressed */
  51: 
  52: /*
  53:  * Record Tokens
  54:  */
  55: #define REC_ESC     '\377'  /* Record-mode Escape */
  56: #define REC_EOR     '\001'  /* Record-mode End-of-Record */
  57: #define REC_EOF     '\002'  /* Record-mode End-of-File */
  58: 
  59: /*
  60:  * Block Header
  61:  */
  62: #define BLK_EOR     0x80    /* Block is End-of-Record */
  63: #define BLK_EOF     0x40    /* Block is End-of-File */
  64: #define BLK_ERRORS  0x20    /* Block is suspected of containing errors */
  65: #define BLK_RESTART 0x10    /* Block is Restart Marker */
  66: 
  67: #define BLK_BYTECOUNT   2   /* Bytes in this block */

Defined macros

BLK_BYTECOUNT defined in line 67; never used
BLK_EOF defined in line 63; never used
BLK_EOR defined in line 62; never used
BLK_ERRORS defined in line 64; never used
BLK_RESTART defined in line 65; never used
COMPLETE defined in line 18; used 6 times
CONTINUE defined in line 19; used 5 times
ERROR defined in line 21; used 2 times
FORM_C defined in line 36; used 1 times
FORM_N defined in line 34; used 6 times
FORM_T defined in line 35; used 1 times
MODE_B defined in line 49; used 1 times
MODE_C defined in line 50; used 1 times
MODE_S defined in line 48; used 3 times
PRELIM defined in line 17; used 10 times
REC_EOF defined in line 57; never used
REC_EOR defined in line 56; never used
REC_ESC defined in line 55; never used
STRU_F defined in line 41; used 3 times
STRU_P defined in line 43; used 1 times
STRU_R defined in line 42; used 1 times
TRANSIENT defined in line 20; never used
TYPE_E defined in line 27; used 3 times
TYPE_I defined in line 28; used 3 times
TYPE_L defined in line 29; used 4 times

Usage of this include

Last modified: 1985-06-19
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1142
Valid CSS Valid XHTML 1.0 Strict