#include <EUSCompat.h>
#include <stdio.h>
#include <sys/stat.h>
+#if !defined(CSRG_BASED)
#include <sys/sysmacros.h>
+#endif
#include <sys/param.h> /* MAXPATHLEN defined here */
#ifdef SVR4
#include <sys/utsname.h> /* SYS_NMLN */
#define STANDARD 2
#define MAYBE 3
+#ifdef SVR4
extern long timezone;
+#endif
%}
_Xltimeparams localtime_buf;
_Xgtimeparams gmtime_buf;
+#ifdef SVR4
/* Fix for QAR 31607 */
tzset();
if (getenv("TZ") == NULL){
putenv(tzptr);
tzset();
}
+#endif
t = now();
tm = *_XLocaltime(&t, localtime_buf);
#include <string.h>
#include <pwd.h>
#include <time.h>
+#if !defined(CSRG_BASED)
#include <values.h>
+#endif
#ifdef SunOS
#include <sys/systeminfo.h>
#endif
#include <string.h>
#include <pwd.h>
#include <time.h>
+#if !defined(CSRG_BASED)
#include <values.h>
+#endif
#ifdef SunOS
#include <sys/systeminfo.h>
#endif
#include <string.h>
#include <pwd.h>
#include <time.h>
+#if !defined(CSRG_BASED)
#include <values.h>
+#endif
#ifdef SunOS
#include <sys/systeminfo.h>
#endif
#include <sys/time.h>
#include <sys/signal.h>
#include <rpc/rpc.h>
+#if defined(CSRG_BASED)
+#define MAXINT INT_MAX
+#else
#include <values.h>
+#endif
#include <string.h>
#include <pwd.h>
#ifdef SUNOS
_DtCm_rtable_gmtoff_4_svc(void *args, struct svc_req *svcrq)
{
static long gmtoff;
+#if !defined(CSRG_BASED)
extern long timezone;
+#else
+ struct tm *t;
+#endif
if (debug)
fprintf(stderr, "_DtCm_rtable_gmtoff_4_svc called\n");
+#if defined(CSRG_BASED)
+ t = localtime(time(NULL));
+ gmtoff = t->tm_gmtoff;
+#else
gmtoff = timezone;
+#endif
return(&gmtoff);
}
if (udp_transp == (SVCXPRT *)-1) {
udp_transp = svcudp_create(standalone ? RPC_ANYSOCK : 0
-#if defined(_AIX) || defined(hpV4) || defined(__osf__) || defined(linux)
+#if defined(_AIX) || defined(hpV4) || defined(__osf__) || defined(linux) || \
+ defined(CSRG_BASED)
);
#else
,0,0);
#include <string.h>
#include <pwd.h>
#include <time.h>
+#if !defined(CSRG_BASED)
#include <values.h>
+#endif
#ifdef SunOS
#include <sys/systeminfo.h>
#endif
#include <string.h>
#include <pwd.h>
#include <time.h>
+#if defined(CSRG_BASED)
+#include <sys/limits.h>
+#define MAXINT INT_MAX
+#else
#include <values.h>
+#endif
#ifdef SunOS
#include <sys/systeminfo.h>
#endif