DEFCFLAGS="$DEFOPT"
;;
- *HP-UX*.09.*)
- DEFCFLAGS="$DEFOPT"
- DEFLIBS="-lz"
- OSNAME="HPUX 9.x"
- ;;
- *HP-UX*.10.*)
- DEFCFLAGS="$DEFOPT"
- DEFLIBS="-lz"
- OSNAME="HPUX 10.x"
- ;;
esac
echo " "
# endif
#endif
-
-#ifdef __hpux
-#define HPUX
-#endif
-
-
-#if defined(HPUX )|| defined(AIX)
-#include <time.h>
-#ifdef AIX
#include <sys/time.h>
-#endif
-#else
-#include <sys/time.h>
-#endif
#if !defined(DEBUGMODE)
# define MyFree(x) if ((x) != NULL) free(x)
#ifndef HAVE_RELIABLE_SIGNALS
(void) signal (SIGALRM, dummy);
(void) signal (SIGPIPE, dummy);
-#ifndef HPUX /* Only 9k/800 series require this, but don't know how to.. */
#ifdef SIGWINCH
(void) signal (SIGWINCH, dummy);
#endif
-#endif
#else
#ifdef POSIX_SIGNALS
struct sigaction act;
#include <sys/file.h>
#include <pwd.h>
#include <sys/time.h>
-#ifdef HPUX
-#define _KERNEL /* HPUX has the world's worst headers... */
-#endif
#include <sys/resource.h>
-#ifdef HPUX
-#undef _KERNEL
-#endif
#include <errno.h>
#include "h.h"
wait.tv_sec = MIN (delay2, delay);
wait.tv_usec = usec;
-#ifdef HPUX
- nfds = select (FD_SETSIZE, (int *) &read_set, (int *) &write_set,
- 0, &wait);
-#else
nfds = select (FD_SETSIZE, &read_set, &write_set, 0, &wait);
-#endif
if (nfds == -1 && errno == EINTR)
return -1;
else if (nfds >= 0)
#include "whowas.h"
#include "hash.h"
#include <sys/file.h>
-#ifdef HPUX
-#include <fcntl.h>
-#endif
#if !defined(ULTRIX) && !defined(SGI) && !defined(sequent) && \
!defined(__convex__)
#include <sys/param.h>
#endif
-#ifdef HPUX
-#include <sys/syscall.h>
-#define getrusage(a,b) syscall(SYS_GETRUSAGE, a, b)
-#endif
#ifdef GETRUSAGE_2
#ifdef SOL20
#include <sys/time.h>
#ifdef PCS
#include <time.h>
#endif
-#ifdef HPUX
-#include <unistd.h>
-#ifdef DYNIXPTX
-#include <sys/types.h>
-#include <time.h>
-#endif
-#endif
#include "h.h"
#ifndef ssize_t
#define hzz HZ
#else
int hzz = 1;
-#ifdef HPUX
- hzz = (int) sysconf (_SC_CLK_TCK);
-#endif
#endif
#endif
int hzz = 1, ticpermin;
int umin, smin, usec, ssec;
-#ifdef HPUX
- hzz = sysconf (_SC_CLK_TCK);
-#endif
ticpermin = hzz * 60;
umin = tmsbuf.tms_utime / ticpermin;
#if defined(PCS) || defined(AIX) || defined(SVR3)
#include <time.h>
#endif
-#ifdef HPUX
-#include <unistd.h>
-#endif
#ifdef DYNIXPTX
#include <sys/types.h>
#include <time.h>