initial illumos port

This commit is contained in:
Peter Tribble
2014-03-21 16:37:00 -07:00
committed by Jon Trulson
parent 3c14b8b5ce
commit 468d576030
48 changed files with 117 additions and 71 deletions

View File

@@ -332,7 +332,7 @@ static const _DtCvSegmentI BlankTableCell =
_DtCvCONTAINER, /* type */
-1, /* link_idx */
{ /* container info */
{ NULL }, /* id */
NULL, /* id */
NULL, /* justify_char */
_DtCvDYNAMIC, /* type */
_DtCvBORDER_NONE, /* border */

View File

@@ -77,7 +77,7 @@ int SUNWDtHelpdlopen()
_DtSvcProcessLock();
pmySUNWProcList = (SUNWHelpProcList *)malloc(sizeof(SUNWHelpProcList));
libDtHelpHandle = dlopen("libDtHelp.so.1", RTLD_LAZY | RTLD_GLOBAL);
libDtHelpHandle = dlopen("libDtHelp.so.2.1", RTLD_LAZY | RTLD_GLOBAL);
if (libDtHelpHandle == NULL) {
char *my_err_msg;

View File

@@ -30,7 +30,7 @@ INCLUDES = -I.
#ifdef SharedDtSvcReqs
#ifdef SunArchitecture
REQUIREDLIBS = SharedDtSvcReqs -L/opt/SUNWspro/SC4.0/lib -Bstatic -lC
REQUIREDLIBS = SharedDtSvcReqs -lC -lCrun
SHLIBLDFLAGS = -G
#else
REQUIREDLIBS = SharedDtSvcReqs

View File

@@ -62,7 +62,7 @@
#if !(defined(apollo) && defined(__bsd)) && !defined(CSRG_BASED)
#if defined(__STDC__)
#if !defined(linux) && !defined(__osf__) && !defined(_XFUNCS_H_)
#if !defined(linux) && !defined(__osf__) && !defined(_XFUNCS_H_) && !defined(sun)
extern void bcopy(char *b1, char *b2, int length);
extern int bcmp(char *b1, char *b2, int length);
extern void bzero(char *b, int length);

View File

@@ -75,7 +75,7 @@ extern "C"
#ifdef __cplusplus
char *strtokx(char *&ptr, const char *sep);
# if !defined(__osf__) && !defined(linux) && !defined(CSRG_BASED)
# if !defined(__osf__) && !defined(linux) && !defined(sun) && !defined(CSRG_BASED)
char **strsep(const char *str, const char *sep,
boolean whsp = TRUE, int *num = NULL);
# if !defined(__osf__)
@@ -85,7 +85,7 @@ extern "C"
#else /* __STDC__ */
char *strtokx(char **ptr, const char *sep);
# if !defined(linux) && !defined(CSRG_BASED)
# if !defined(linux) && !defined(sun) && !defined(CSRG_BASED)
char **strsep(const char *str, const char *sep,
boolean whsp, int *num);
#endif

View File

@@ -38,7 +38,7 @@
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED)
#include <unistd.h>
#else
#if !defined(USL) && !defined(__uxp__)
#if !defined(USL) && !defined(__uxp__) && !defined(sun)
#include <osfcn.h>
#endif
#endif

View File

@@ -38,7 +38,7 @@
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED)
#include <unistd.h>
#else
#if !defined(USL) && !defined(__uxp__)
#if !defined(USL) && !defined(__uxp__) && !defined(sun)
#include <osfcn.h>
#endif
#endif

View File

@@ -58,7 +58,7 @@ typedef int Bool;
extern char *ProgramName;
#if !defined(linux) && !defined(CSRG_BASED)
#if !defined(linux) && !defined(CSRG_BASED) && !defined(sun)
extern char *malloc(), *realloc();
#endif
int process_command(), auth_initialize(), auth_finalize();

View File

@@ -38,6 +38,9 @@
#define _DB_SERVER_GLOBALS_H
#include <limits.h>
#if !defined(NGROUPS)
#define NGROUPS NGROUPS_MAX
#endif
#if defined(OPT_GARBAGE_THREADS)
#include <synch.h>

View File

@@ -37,10 +37,10 @@
#include <stdlib.h>
#include <sys/param.h>
#include <sys/stat.h>
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED)
#if defined(__osf__) || defined(linux) || defined(sun) || defined(CSRG_BASED)
#include <unistd.h>
#else
#if !defined(USL) && !defined(__uxp__)
#if !defined(USL) && !defined(__uxp__) && !defined(sun)
#include <osfcn.h>
#endif
#endif

View File

@@ -33,7 +33,7 @@
*/
#include <errno.h>
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED)
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED) || defined(sun)
#include <unistd.h>
#else
#ifndef USL

View File

@@ -32,7 +32,7 @@
*
*/
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED)
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED) || defined(sun)
#include <unistd.h>
#else
#if defined (USL) || defined(__uxp__)

View File

@@ -45,7 +45,7 @@ INCLUDES = -I.
#ifdef SharedTtReqs
#ifdef SunArchitecture
REQUIREDLIBS = SharedTtReqs -L/opt/SUNWspro/SC4.0/lib -Bstatic -lC
REQUIREDLIBS = SharedTtReqs -lC -lCrun
SHLIBLDFLAGS = -G
#else
REQUIREDLIBS = SharedTtReqs

View File

@@ -1284,7 +1284,7 @@ print(const _Tt_ostream &os) const
os << "otype:\t\t" << _otype << "\n";
}
if (! _sender.is_null()) {
os << "sender:\t\t[" << _uid << "/" << _gid << "] ";
os << "sender:\t\t[" << (unsigned long)_uid << "/" << (unsigned long)_gid << "] ";
_sender->print( os );
}
if (_sender_ptype.len() > 0) {

View File

@@ -48,7 +48,7 @@ extern "C" in_addr_t inet_addr(const char *);
#ifdef __osf__
#include <unistd.h>
#else
#if !defined(USL) && !defined(__uxp__) && !defined(linux) && !defined(CSRG_BASED)
#if !defined(USL) && !defined(__uxp__) && !defined(linux) && !defined(CSRG_BASED) && !defined(sun)
#include <osfcn.h>
#endif
#endif /* __osf */

View File

@@ -37,7 +37,7 @@
#ifdef __osf__
#include <unistd.h>
#else
#if !defined (USL) && !defined(__uxp__) && !defined(linux) && !defined(CSRG_BASED)
#if !defined (USL) && !defined(__uxp__) && !defined(linux) && !defined(CSRG_BASED) && !defined(sun)
#include <osfcn.h>
#endif
#endif /* __osf__ */

View File

@@ -55,7 +55,7 @@ class _Tt_xdr_size_stream : public _Tt_allocated {
#ifdef __DECCXX
XDR::xdr_ops ops;
#else
struct XDR::xdr_ops ops;
struct xdr_ops ops;
#endif
};