OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [common/] [v2_0/] [include/] [arpa/] [ftp.h] - Diff between revs 27 and 174

Only display areas with differences | Details | Blame | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.