June 2025 | ||||||
Mo | Tu | We | Th | Fr | Sa | Su |
26 | 27 | 28 | 29 | 30 | 31 | 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 1 | 2 | 3 | 4 | 5 | 6 |
001: /* 002: * Copyright (c) 1983, 1989, 1993 003: * The Regents of the University of California. All rights reserved. 004: * 005: * Redistribution and use in source and binary forms, with or without 006: * modification, are permitted provided that the following conditions 007: * are met: 008: * 1. Redistributions of source code must retain the above copyright 009: * notice, this list of conditions and the following disclaimer. 010: * 2. Redistributions in binary form must reproduce the above copyright 011: * notice, this list of conditions and the following disclaimer in the 012: * documentation and/or other materials provided with the distribution. 013: * 4. Neither the name of the University nor the names of its contributors 014: * may be used to endorse or promote products derived from this software 015: * without specific prior written permission. 016: * 017: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 018: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 019: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 020: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 021: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 022: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 023: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 024: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 025: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 026: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 027: * SUCH DAMAGE. 028: * 029: * @(#)ftp.h 8.1 (Berkeley) 6/2/93 030: */ 031: 032: #ifndef _ARPA_FTP_H 033: #define _ARPA_FTP_H 1 034: 035: /* Definitions for FTP; see RFC-765. */ 036: 037: /* 038: * Reply codes. 039: */ 040: #define PRELIM 1 /* positive preliminary */ 041: #define COMPLETE 2 /* positive completion */ 042: #define CONTINUE 3 /* positive intermediate */ 043: #define TRANSIENT 4 /* transient negative completion */ 044: #define ERROR 5 /* permanent negative completion */ 045: 046: /* 047: * Type codes 048: */ 049: #define TYPE_A 1 /* ASCII */ 050: #define TYPE_E 2 /* EBCDIC */ 051: #define TYPE_I 3 /* image */ 052: #define TYPE_L 4 /* local byte size */ 053: 054: #ifdef FTP_NAMES 055: char *typenames[] = {"0", "ASCII", "EBCDIC", "Image", "Local" }; 056: #endif 057: 058: /* 059: * Form codes 060: */ 061: #define FORM_N 1 /* non-print */ 062: #define FORM_T 2 /* telnet format effectors */ 063: #define FORM_C 3 /* carriage control (ASA) */ 064: #ifdef FTP_NAMES 065: char *formnames[] = {"0", "Nonprint", "Telnet", "Carriage-control" }; 066: #endif 067: 068: /* 069: * Structure codes 070: */ 071: #define STRU_F 1 /* file (no record structure) */ 072: #define STRU_R 2 /* record structure */ 073: #define STRU_P 3 /* page structure */ 074: #ifdef FTP_NAMES 075: char *strunames[] = {"0", "File", "Record", "Page" }; 076: #endif 077: 078: /* 079: * Mode types 080: */ 081: #define MODE_S 1 /* stream */ 082: #define MODE_B 2 /* block */ 083: #define MODE_C 3 /* compressed */ 084: #ifdef FTP_NAMES 085: char *modenames[] = {"0", "Stream", "Block", "Compressed" }; 086: #endif 087: 088: /* 089: * Record Tokens 090: */ 091: #define REC_ESC '\377' /* Record-mode Escape */ 092: #define REC_EOR '\001' /* Record-mode End-of-Record */ 093: #define REC_EOF '\002' /* Record-mode End-of-File */ 094: 095: /* 096: * Block Header 097: */ 098: #define BLK_EOR 0x80 /* Block is End-of-Record */ 099: #define BLK_EOF 0x40 /* Block is End-of-File */ 100: #define BLK_ERRORS 0x20 /* Block is suspected of containing errors */ 101: #define BLK_RESTART 0x10 /* Block is Restart Marker */ 102: 103: #define BLK_BYTECOUNT 2 /* Bytes in this block */ 104: 105: #endif /* arpa/ftp.h */ 106: