+++ /dev/null
-/*\r
- * Copyright (c) 1983, 1989, 1993\r
- * The Regents of the University of California. All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- * 3. All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- * This product includes software developed by the University of\r
- * California, Berkeley and its contributors.\r
- * 4. Neither the name of the University nor the names of its contributors\r
- * may be used to endorse or promote products derived from this software\r
- * without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * @(#)ftp.h 8.1 (Berkeley) 6/2/93\r
- */\r
-\r
-#ifndef _ARPA_FTP_H_\r
-#define _ARPA_FTP_H_\r
-\r
-/* Definitions for FTP; see RFC-765. */\r
-\r
-/*\r
- * Reply codes.\r
- */\r
-#define PRELIM 1 /* positive preliminary */\r
-#define COMPLETE 2 /* positive completion */\r
-#define CONTINUE 3 /* positive intermediate */\r
-#define TRANSIENT 4 /* transient negative completion */\r
-#define ERROR 5 /* permanent negative completion */\r
-\r
-/*\r
- * Type codes\r
- */\r
-#define TYPE_A 1 /* ASCII */\r
-#define TYPE_E 2 /* EBCDIC */\r
-#define TYPE_I 3 /* image */\r
-#define TYPE_L 4 /* local byte size */\r
-\r
-#ifdef FTP_NAMES\r
-char *typenames[] = {"0", "ASCII", "EBCDIC", "Image", "Local" };\r
-#endif\r
-\r
-/*\r
- * Form codes\r
- */\r
-#define FORM_N 1 /* non-print */\r
-#define FORM_T 2 /* telnet format effectors */\r
-#define FORM_C 3 /* carriage control (ASA) */\r
-#ifdef FTP_NAMES\r
-char *formnames[] = {"0", "Nonprint", "Telnet", "Carriage-control" };\r
-#endif\r
-\r
-/*\r
- * Structure codes\r
- */\r
-#define STRU_F 1 /* file (no record structure) */\r
-#define STRU_R 2 /* record structure */\r
-#define STRU_P 3 /* page structure */\r
-#ifdef FTP_NAMES\r
-char *strunames[] = {"0", "File", "Record", "Page" };\r
-#endif\r
-\r
-/*\r
- * Mode types\r
- */\r
-#define MODE_S 1 /* stream */\r
-#define MODE_B 2 /* block */\r
-#define MODE_C 3 /* compressed */\r
-#ifdef FTP_NAMES\r
-char *modenames[] = {"0", "Stream", "Block", "Compressed" };\r
-#endif\r
-\r
-/*\r
- * Record Tokens\r
- */\r
-#define REC_ESC '\377' /* Record-mode Escape */\r
-#define REC_EOR '\001' /* Record-mode End-of-Record */\r
-#define REC_EOF '\002' /* Record-mode End-of-File */\r
-\r
-/*\r
- * Block Header\r
- */\r
-#define BLK_EOR 0x80 /* Block is End-of-Record */\r
-#define BLK_EOF 0x40 /* Block is End-of-File */\r
-#define BLK_ERRORS 0x20 /* Block is suspected of containing errors */\r
-#define BLK_RESTART 0x10 /* Block is Restart Marker */\r
-\r
-#define BLK_BYTECOUNT 2 /* Bytes in this block */\r
-\r
-#endif /* !_FTP_H_ */\r