1.1 --- a/epoc32/include/libc/arpa/inet.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/libc/arpa/inet.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,105 @@
1.4 -inet.h
1.5 +/* INET.H
1.6 + *
1.7 + * Portions copyright (c) 1993-2006 Symbian Software 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, 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 + * Portions Copyright (c) 1993 by Digital Equipment Corporation.
1.48 + *
1.49 + * Permission to use, copy, modify, and distribute this software for any
1.50 + * purpose with or without fee is hereby granted, provided that the above
1.51 + * copyright notice and this permission notice appear in all copies, and that
1.52 + * the name of Digital Equipment Corporation not be used in advertising or
1.53 + * publicity pertaining to distribution of the document or software without
1.54 + * specific, written prior permission.
1.55 + *
1.56 + * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
1.57 + * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
1.58 + * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
1.59 + * CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
1.60 + * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
1.61 + * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
1.62 + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
1.63 + * SOFTWARE.
1.64 + *
1.65 + * @(#)inet.h 8.1 (Berkeley) 6/2/93
1.66 + * From: inet.h,v 8.6 1996/08/08 06:54:29 vixie Exp
1.67 + * $Id: inet.h,v 1.9 1997/05/07 20:00:19 eivind Exp $
1.68 + */
1.69 +
1.70 +#ifndef _ARPA_INET_H_
1.71 +#define _ARPA_INET_H_
1.72 +
1.73 +#ifdef __cplusplus
1.74 +extern "C" {
1.75 +#endif
1.76 +
1.77 +#include <_ansi.h>
1.78 +/** External definitions for functions in inet(3), addr2ascii(3)
1.79 +*/
1.80 +
1.81 +#include <sys/types.h>
1.82 +
1.83 +struct in_addr;
1.84 +
1.85 +IMPORT_C unsigned long inet_addr (const char *);
1.86 +IMPORT_C int inet_aton (const char *, struct in_addr *);
1.87 +IMPORT_C unsigned long inet_lnaof (struct in_addr);
1.88 +IMPORT_C struct in_addr inet_makeaddr (u_long , u_long);
1.89 +IMPORT_C unsigned long inet_netof (struct in_addr);
1.90 +#define inet_network inet_addr
1.91 +
1.92 +#ifndef _REENT_ONLY
1.93 +IMPORT_C char *inet_ntoa (struct in_addr);
1.94 +#endif /* _REENT_ONLY */
1.95 +
1.96 +int ascii2addr (int, const char *, void *);
1.97 +char *addr2ascii (int, const void *, int, char *);
1.98 +char *inet_net_ntop (int, const void *, int, char *, size_t);
1.99 +int inet_net_pton (int, const char *, void *, size_t);
1.100 +char * inet_neta (u_long, char *, size_t);
1.101 +int inet_pton (int, const char *, void *);
1.102 +const char *inet_ntop (int, const void *, char *, size_t);
1.103 +u_int inet_nsap_addr (const char *, u_char *, int);
1.104 +char *inet_nsap_ntoa (int, const u_char *, char *);
1.105 +
1.106 +#ifdef __cplusplus
1.107 +}
1.108 +#endif
1.109 +#endif /* !_INET_H_ */