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