/*
*/
/*
* Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2001-2003 Internet Software Consortium.
*
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: port_after.h.in,v 1.60 2008/02/28 05:34:17 marka Exp $ */
#ifndef port_after_h
#define port_after_h
#include <stdio.h>
#endif
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#endif /* HAVE_SYS_SELECT_H */
#ifdef REENABLE_SEND
#endif
#ifdef NEED_STRERROR
const char *isc_strerror(int);
#endif
/* HAS_INET6_STRUCTS and HAVE_SIN6_SCOPE_ID are defined by port_ipv6.h
* #define HAS_INET6_STRUCTS 1
* #define HAVE_SIN6_SCOPE_ID 1
*/
#include <port_ipv6.h>
#define HAVE_STRNDUP
#ifndef _POSIX_PATH_MAX
#endif
#ifndef PATH_MAX
#endif
/*
* We need to know the IPv6 address family number even on IPv4-only systems.
* Note that this is NOT a protocol constant, and that if the system has its
* own AF_INET6, different from ours below, all of BIND's libraries and
* has had this type added. The type number below is correct on most BSD-
* derived systems for which AF_INET6 is defined.
*/
#ifndef AF_INET6
#endif
#ifndef PF_INET6
#endif
#ifdef HAS_IN_ADDR6
/* Map to pre-RFC structure. */
#endif
#ifndef HAS_INET6_STRUCTS
/* Replace with structure from later rev of O/S if known. */
struct in6_addr {
};
#define IN6ADDR_ANY_INIT \
{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }}
#define IN6ADDR_LOOPBACK_INIT \
{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}
/* Replace with structure from later rev of O/S if known. */
struct sockaddr_in6 {
#ifdef HAVE_SA_LEN
#else
#endif
};
#endif /* HAS_INET6_STRUCTS */
#ifdef BROKEN_IN6ADDR_INIT_MACROS
#endif
#ifdef _AIX
#ifndef IN6ADDR_ANY_INIT
#define IN6ADDR_ANY_INIT {{{ 0, 0, 0, 0 }}}
#endif
#ifndef IN6ADDR_LOOPBACK_INIT
#if BYTE_ORDER == BIG_ENDIAN
#else
#endif
#endif
#endif
#ifndef IN6ADDR_ANY_INIT
#ifdef s6_addr
#define IN6ADDR_ANY_INIT \
{{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }}}
#else
#define IN6ADDR_ANY_INIT \
{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }}
#endif
#endif
#ifndef IN6ADDR_LOOPBACK_INIT
#ifdef s6_addr
#define IN6ADDR_LOOPBACK_INIT \
{{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}}
#else
#define IN6ADDR_LOOPBACK_INIT \
{{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}
#endif
#endif
#ifndef HAVE_SOCKADDR_STORAGE
#define __SS_ALLIGSIZE (sizeof (long))
struct sockaddr_storage {
#ifdef HAVE_SA_LEN
long __ss_align;
#else
long __ss_align;
#endif
};
#endif
#if !defined(HAS_INET6_STRUCTS) || defined(NEED_IN6ADDR_ANY)
extern const struct in6_addr in6addr_any;
#endif
/*
* IN6_ARE_ADDR_EQUAL, IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_V4COMPAT and
* IN6_IS_ADDR_V4MAPPED are broken in glibc 2.1.
*/
#ifdef __GLIBC__
#endif
#endif
#ifndef IN6_ARE_ADDR_EQUAL
#define IN6_ARE_ADDR_EQUAL(a,b) \
#endif
#ifndef IN6_IS_ADDR_UNSPECIFIED
#define IN6_IS_ADDR_UNSPECIFIED(a) \
#endif
#ifndef IN6_IS_ADDR_LOOPBACK
extern const struct in6_addr isc_in6addr_loopback;
#define IN6_IS_ADDR_LOOPBACK(a) \
#endif
#ifndef IN6_IS_ADDR_V4MAPPED
#define IN6_IS_ADDR_V4MAPPED(a) \
#endif
#ifndef IN6_IS_ADDR_SITELOCAL
#define IN6_IS_ADDR_SITELOCAL(a) \
#endif
#ifndef IN6_IS_ADDR_LINKLOCAL
#define IN6_IS_ADDR_LINKLOCAL(a) \
#endif
#ifndef IN6_IS_ADDR_MULTICAST
#endif
#ifndef __IPV6_ADDR_MC_SCOPE
#endif
#ifndef __IPV6_ADDR_SCOPE_SITELOCAL
#endif
#ifndef __IPV6_ADDR_SCOPE_ORGLOCAL
#endif
#ifndef IN6_IS_ADDR_MC_SITELOCAL
#define IN6_IS_ADDR_MC_SITELOCAL(a) \
(IN6_IS_ADDR_MULTICAST(a) && \
#endif
#ifndef IN6_IS_ADDR_MC_ORGLOCAL
#define IN6_IS_ADDR_MC_ORGLOCAL(a) \
(IN6_IS_ADDR_MULTICAST(a) && \
#endif
#ifndef INADDR_NONE
#endif
#ifndef MAXHOSTNAMELEN
#endif
#ifndef INET6_ADDRSTRLEN
/* sizeof("aaaa:bbbb:cccc:dddd:eeee:ffff:123.123.123.123") */
#endif
#ifndef MIN
#define MIN(x,y) (((x) <= (y)) ? (x) : (y))
#endif
#ifndef MAX
#define MAX(x,y) (((x) >= (y)) ? (x) : (y))
#endif
#ifdef NEED_DAEMON
#endif
#ifdef NEED_STRSEP
#endif
#ifndef ALIGN
#endif
#ifdef NEED_SETGROUPENT
int setgroupent(int stayopen);
#endif
#ifdef NEED_GETGROUPLIST
#endif
#ifdef POSIX_GETGRNAM_R
int
#endif
#ifdef NEED_GETGRNAM_R
int
#endif
#ifdef POSIX_GETGRGID_R
int
#endif
#ifdef NEED_GETGRGID_R
int
#endif
#ifdef NEED_GETGRENT_R
#endif
#ifdef NEED_SETGRENT_R
#endif
#ifdef NEED_ENDGRENT_R
#endif
#if defined(NEED_INNETGR_R) && defined(NGR_R_RETURN)
innetgr_r(const char *, const char *, const char *, const char *);
#endif
#ifdef NEED_SETNETGRENT_R
#ifdef NGR_R_SET_ARGS
#else
#endif
#endif
#ifdef NEED_ENDNETGRENT_R
#ifdef NGR_R_END_ARGS
#else
NGR_R_END_RETURN endnetgrent_r(void);
#endif
#endif
#ifdef POSIX_GETPWNAM_R
int
#endif
#ifdef NEED_GETPWNAM_R
int
#endif
#ifdef POSIX_GETPWUID_R
int
#endif
#ifdef NEED_GETPWUID_R
int
#endif
#ifdef NEED_SETPWENT_R
#ifdef PASS_R_ENT_ARGS
#else
PASS_R_SET_RETURN setpwent_r(void);
#endif
#endif
#ifdef NEED_SETPASSENT_R
#ifdef PASS_R_ENT_ARGS
#else
#endif
#endif
#ifdef NEED_GETPWENT_R
#endif
#ifdef NEED_ENDPWENT_R
void endpwent_r(void);
#endif
#ifdef NEED_SETPASSENT
int setpassent(int stayopen);
#endif
#ifdef NEED_GETTIMEOFDAY
#else
#endif
NGR_R_CONST char **domainp);
#ifdef NGR_R_ARGS
#endif
/* setnetgrent and endnetgrent are defined in sunw_port_after.h
#ifdef SETNETGRENT_ARGS
void setnetgrent(SETNETGRENT_ARGS);
#else
void setnetgrent(const char *netgroup);
#endif
void endnetgrent(void);
*/
#ifdef INNETGR_ARGS
int innetgr(INNETGR_ARGS);
#else
#endif
#ifdef NGR_R_SET_ARGS
#else
#endif
#ifdef NEED_STRTOUL
unsigned long strtoul(const char *, char **, int);
#endif
#ifdef NEED_SUN4PROTOS
#include <stdarg.h>
#ifndef __SIZE_TYPE__
#define __SIZE_TYPE__ int
#endif
struct sockaddr;
struct iovec;
struct timeval;
struct timezone;
int getsockname(int, struct sockaddr *, int *);
int getpeername(int, struct sockaddr *, int *);
int socket(int, int, int);
int send(int, const char *, int, int);
void bzero(char *, int);
int syslog(int, const char *, ... );
int printf(const char *, ...);
int scanf(const char *, ...);
int sscanf(const char *, const char *, ... );
int tolower(int);
int toupper(int);
int strcasecmp(const char *, const char *);
int strncasecmp(const char *, const char *, int);
#ifdef gettimeofday
#else
#endif
long strtol(const char*, char **, int);
int setsockopt(int, int, int, const char *, int);
void bcopy(char *, char *, int);
int listen(int, int);
int getsockopt(int, int, int, char *, int *);
int fchown(int, int, int);
int gethostname(char *, int);
int rename(const char *, const char *);
int sscanf(const char *, const char *, ...);
void perror(const char *);
/*
* 'gcc -ansi' changes the prototype for vsprintf().
* Use this prototype when 'gcc -ansi' is not in effect.
*/
#endif
#endif
/* Solaris-specific changes */
#include "sunw_port_after.h"
#endif /* port_after_h */