epoc32/include/libc/arpa/ftp.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
     1.1 --- a/epoc32/include/libc/arpa/ftp.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/libc/arpa/ftp.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,134 @@
     1.4 -ftp.h
     1.5 +/* FTP.H
     1.6 + * 
     1.7 + * Portions copyright (c) 1993-1999 Symbian Ltd.  All rights reserved.
     1.8 + */
     1.9 +
    1.10 +/** @file
    1.11 +@publishedAll
    1.12 +@released
    1.13 +*/
    1.14 +
    1.15 +/*
    1.16 + * Copyright (c) 1983, 1989, 1993
    1.17 + *	The Regents of the University of California.  All rights reserved.
    1.18 + *
    1.19 + * Redistribution and use in source and binary forms, with or without
    1.20 + * modification, are permitted provided that the following conditions
    1.21 + * are met:
    1.22 + * 1. Redistributions of source code must retain the above copyright
    1.23 + *    notice, this list of conditions and the following disclaimer.
    1.24 + * 2. Redistributions in binary form must reproduce the above copyright
    1.25 + *    notice, this list of conditions and the following disclaimer in the
    1.26 + *    documentation and/or other materials provided with the distribution.
    1.27 + * 3. All advertising materials mentioning features or use of this software
    1.28 + *    must display the following acknowledgement:
    1.29 + *	This product includes software developed by the University of
    1.30 + *	California, Berkeley and its contributors.
    1.31 + * 4. Neither the name of the University nor the names of its contributors
    1.32 + *    may be used to endorse or promote products derived from this software
    1.33 + *    without specific prior written permission.
    1.34 + *
    1.35 + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    1.36 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.37 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.38 + * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    1.39 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    1.40 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    1.41 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    1.42 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    1.43 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    1.44 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.45 + * SUCH DAMAGE.
    1.46 + *
    1.47 + *	@(#)ftp.h	8.1 (Berkeley) 6/2/93
    1.48 + */
    1.49 +
    1.50 +#ifndef _ARPA_FTP_H_
    1.51 +#define	_ARPA_FTP_H_
    1.52 +
    1.53 +/* Definitions for FTP; see RFC-765. */
    1.54 +
    1.55 +/**
    1.56 +Reply codes.
    1.57 +*/
    1.58 +
    1.59 +/** positive preliminary 
    1.60 +*/
    1.61 +#define PRELIM		1	
    1.62 +
    1.63 +/** positive completion 
    1.64 +*/
    1.65 +#define COMPLETE	2	
    1.66 +
    1.67 +/** positive intermediate 
    1.68 +*/
    1.69 +#define CONTINUE	3	
    1.70 +
    1.71 +/** transient negative completion 
    1.72 +*/
    1.73 +#define TRANSIENT	4	
    1.74 +
    1.75 +/** permanent negative completion 
    1.76 +*/
    1.77 +#define ERROR		5	
    1.78 +
    1.79 +/**
    1.80 +Type codes
    1.81 +*/
    1.82 +
    1.83 +#define	TYPE_A		1	/* ASCII */
    1.84 +#define	TYPE_E		2	/* EBCDIC */
    1.85 +#define	TYPE_I		3	/* image */
    1.86 +#define	TYPE_L		4	/* local byte size */
    1.87 +#ifdef FTP_NAMES
    1.88 +char *typenames[] =  {"0", "ASCII", "EBCDIC", "Image", "Local" };
    1.89 +#endif
    1.90 +
    1.91 +/**
    1.92 +Form codes
    1.93 +*/
    1.94 +#define	FORM_N		1	/* non-print */
    1.95 +#define	FORM_T		2	/* telnet format effectors */
    1.96 +#define	FORM_C		3	/* carriage control (ASA) */
    1.97 +#ifdef FTP_NAMES
    1.98 +char *formnames[] =  {"0", "Nonprint", "Telnet", "Carriage-control" };
    1.99 +#endif
   1.100 +
   1.101 +/**
   1.102 +Structure codes
   1.103 +*/
   1.104 +#define	STRU_F		1	/* file (no record structure) */
   1.105 +#define	STRU_R		2	/* record structure */
   1.106 +#define	STRU_P		3	/* page structure */
   1.107 +#ifdef FTP_NAMES
   1.108 +char *strunames[] =  {"0", "File", "Record", "Page" };
   1.109 +#endif
   1.110 +
   1.111 +/**
   1.112 +Mode types
   1.113 +*/
   1.114 +#define	MODE_S		1	/* stream */
   1.115 +#define	MODE_B		2	/* block */
   1.116 +#define	MODE_C		3	/* compressed */
   1.117 +#ifdef FTP_NAMES
   1.118 +char *modenames[] =  {"0", "Stream", "Block", "Compressed" };
   1.119 +#endif
   1.120 +
   1.121 +/**
   1.122 +Record Tokens
   1.123 +*/
   1.124 +#define	REC_ESC		'\377'	/* Record-mode Escape */
   1.125 +#define	REC_EOR		'\001'	/* Record-mode End-of-Record */
   1.126 +#define REC_EOF		'\002'	/* Record-mode End-of-File */
   1.127 +
   1.128 +/**
   1.129 +Block Header
   1.130 +*/
   1.131 +#define	BLK_EOR		0x80	/* Block is End-of-Record */
   1.132 +#define	BLK_EOF		0x40	/* Block is End-of-File */
   1.133 +#define BLK_ERRORS	0x20	/* Block is suspected of containing errors */
   1.134 +#define	BLK_RESTART	0x10	/* Block is Restart Marker */
   1.135 +
   1.136 +#define	BLK_BYTECOUNT	2	/* Bytes in this block */
   1.137 +
   1.138 +#endif /* !_FTP_H_ */