diff options
author | Marc G. Fournier <scrappy@hub.org> | 1996-07-09 06:22:35 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1996-07-09 06:22:35 +0000 |
commit | d31084e9d1118b25fd16580d9d8c2924b5740dff (patch) | |
tree | 3179e66307d54df9c7b966543550e601eb55e668 /src/backend/port/hpux/port.c | |
download | postgresql-PG95-1_01.tar.gz postgresql-PG95-1_01.zip |
Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01
Diffstat (limited to 'src/backend/port/hpux/port.c')
-rw-r--r-- | src/backend/port/hpux/port.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/backend/port/hpux/port.c b/src/backend/port/hpux/port.c new file mode 100644 index 00000000000..eccf3dc5c12 --- /dev/null +++ b/src/backend/port/hpux/port.c @@ -0,0 +1,47 @@ +/*------------------------------------------------------------------------- + * + * port.c-- + * port-specific routines for HP-UX + * + * Copyright (c) 1994, Regents of the University of California + * + * + * IDENTIFICATION + * $Header: /cvsroot/pgsql/src/backend/port/hpux/Attic/port.c,v 1.1.1.1 1996/07/09 06:21:43 scrappy Exp $ + * + * NOTES + * For the most part, this file gets around some non-POSIX calls + * in POSTGRES. + * + *------------------------------------------------------------------------- + */ +#include <unistd.h> /* for rand()/srand() prototypes */ +#include <math.h> /* for pow() prototype */ +#include <sys/syscall.h> /* for syscall #defines */ + +#include "c.h" + +void +init_address_fixup() +{ + /* + * On PA-RISC, unaligned access fixup is handled by the compiler, + * not by the kernel. + */ +} + +long +random() +{ + return(lrand48()); +} + +void srandom(int seed) +{ + srand48((long int) seed); +} + +getrusage(int who, struct rusage *ru) +{ + return(syscall(SYS_GETRUSAGE, who, ru)); +} |