don't declare h_errno
[unix-history] / usr / src / include / arpa / ftp.h
CommitLineData
bb0cfa24
DF
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) %G%
7 */
8
f160e4e6
SL
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 */