#include <arpa/ftp.h>

arpa/ftp.h

Definitions for FTP; see RFC-765.
26 macros

macroPRELIM

Reply codes.
#define PRELIM 1
positive preliminary

macroCOMPLETE

#define COMPLETE 2
positive completion

macroCONTINUE

#define CONTINUE 3
positive intermediate

macroTRANSIENT

#define TRANSIENT 4
transient negative completion

macroERROR

#define ERROR 5
permanent negative completion

macroTYPE_A

Type codes
#define TYPE_A 1
ASCII

macroTYPE_E

#define TYPE_E 2
EBCDIC

macroTYPE_I

#define TYPE_I 3
image

macroTYPE_L

#define TYPE_L 4
local byte size

macroFORM_N

Form codes
#define FORM_N 1
non-print

macroFORM_T

#define FORM_T 2
telnet format effectors

macroFORM_C

#define FORM_C 3
carriage control (ASA)

macroSTRU_F

Structure codes
#define STRU_F 1
file (no record structure)

macroSTRU_R

#define STRU_R 2
record structure

macroSTRU_P

#define STRU_P 3
page structure

macroMODE_S

Mode types
#define MODE_S 1
stream

macroMODE_B

#define MODE_B 2
block

macroMODE_C

#define MODE_C 3
compressed

macroREC_ESC

Record Tokens
#define REC_ESC '\377'
Record-mode Escape

macroREC_EOR

#define REC_EOR '\001'
Record-mode End-of-Record

macroREC_EOF

#define REC_EOF '\002'
Record-mode End-of-File

macroBLK_EOR

Block Header
#define BLK_EOR 0x80
Block is End-of-Record

macroBLK_EOF

#define BLK_EOF 0x40
Block is End-of-File

macroBLK_ERRORS

#define BLK_ERRORS 0x20
Block is suspected of containing errors

macroBLK_RESTART

#define BLK_RESTART 0x10
Block is Restart Marker

macroBLK_BYTECOUNT

#define BLK_BYTECOUNT 2
Bytes in this block