port_before.h revision 6a1c6faa6f0834799d7de3e77fac2ec32d923f9a
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef SUNW_OPTIONS
#include "conf/sunoptions.h"
#endif
#define __EXTENSIONS__
/* #define SVR4 */
#ifdef WANT_IRS_NIS
#endif
#define SIG_FN void
#define ISC_SOCKLEN_T int
#include "os_version.h"
#else
#define HAS_PTHREADS
#endif
#if defined(HAS_PTHREADS) && defined(_REENTRANT)
#define DO_PTHREADS
#endif
#define GROUP_R_RETURN struct group *
#define GROUP_R_SET_RETURN void
#define GROUP_R_END_RETURN void
#define GROUP_R_OK gptr
#define GROUP_R_BAD NULL
int *ngroups
#define HOST_R_RETURN struct hostent *
#define HOST_R_SET_RETURN void
#define HOST_R_END_RETURN void
#define HOST_R_END_RESULT(x) /*empty*/
#define HOST_R_BAD NULL
#define NET_R_RETURN struct netent *
#define NET_R_SET_RETURN void
#define NET_R_END_RETURN void
#define NET_R_END_RESULT(x) /*empty*/
#define NET_R_COPY_ARGS NET_R_ARGS
#define NGR_R_RETURN int
#define NGR_R_SET_RETURN void
#define NGR_R_END_RETURN void
#ifdef ORIGINAL_ISC_CODE
#else
#define NGR_R_END_RESULT(x) /*empty*/
#endif
#define NGR_R_COPY_ARGS NGR_R_ARGS
#define NGR_R_OK 1
#define NGR_R_BAD (0)
#define PROTO_R_RETURN struct protoent *
#define PROTO_R_SET_RETURN void
#define PROTO_R_END_RETURN void
#define PROTO_R_END_RESULT(x) /*empty*/
#define PROTO_R_COPY_ARGS PROTO_R_ARGS
#define PROTO_R_OK pptr
#define PROTO_R_BAD NULL
#define PASS_R_RETURN struct passwd *
#define PASS_R_SET_RETURN void
#define PASS_R_END_RETURN void
#define PASS_R_COPY_ARGS PASS_R_ARGS
#define PASS_R_BAD NULL
#define SERV_R_RETURN struct servent *
#define SERV_R_SET_RETURN void
#define SERV_R_END_RETURN void
#define SERV_R_END_RESULT(x) /*empty*/
#define SERV_R_COPY_ARGS SERV_R_ARGS
#define SERV_R_BAD NULL
#define BSD_COMP
#include <limits.h> /* _POSIX_PATH_MAX */
#ifdef __GNUC__
#else
#endif
#ifdef SUNW_SYNONYMS
#include "synonyms.h"
#endif
/*
* Remove compiler warnings without modifying ISC source by including
* various headers here, mostly to get function prototypes.
*/
#include <string.h>
#include <strings.h>
#include <unistd.h>
#define HAS_INET6_STRUCTS
#define H_ERRNO_IS_FUNCTION