Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d5e21e09
Commit
d5e21e09
authored
Jul 27, 1997
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HPUX 10 patches from Vladimir Turin
parent
3ac9d2ff
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
12 deletions
+30
-12
src/backend/port/hpux/port-protos.h
src/backend/port/hpux/port-protos.h
+2
-2
src/backend/port/hpux/port.c
src/backend/port/hpux/port.c
+2
-2
src/include/port/hpux.h
src/include/port/hpux.h
+14
-0
src/makefiles/Makefile.hpux
src/makefiles/Makefile.hpux
+12
-8
No files found.
src/backend/port/hpux/port-protos.h
View file @
d5e21e09
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: port-protos.h,v 1.
1.1.1 1996/07/09 06:21:43 scrappy
Exp $
* $Id: port-protos.h,v 1.
2 1997/07/27 18:51:57 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -28,7 +28,7 @@ extern int init_address_fixup(void);
...
@@ -28,7 +28,7 @@ extern int init_address_fixup(void);
extern
double
rint
(
double
x
);
extern
double
rint
(
double
x
);
extern
double
cbrt
(
double
x
);
extern
double
cbrt
(
double
x
);
extern
long
random
(
void
);
extern
long
random
(
void
);
extern
void
srandom
(
int
seed
);
extern
void
srandom
(
unsigned
seed
);
extern
int
getrusage
(
int
who
,
struct
rusage
*
ru
);
extern
int
getrusage
(
int
who
,
struct
rusage
*
ru
);
#endif
/* PORT_PROTOS_H */
#endif
/* PORT_PROTOS_H */
src/backend/port/hpux/port.c
View file @
d5e21e09
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/hpux/Attic/port.c,v 1.
1.1.1 1996/07/09 06:21:43 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/port/hpux/Attic/port.c,v 1.
2 1997/07/27 18:52:05 momjian
Exp $
*
*
* NOTES
* NOTES
* For the most part, this file gets around some non-POSIX calls
* For the most part, this file gets around some non-POSIX calls
...
@@ -36,7 +36,7 @@ random()
...
@@ -36,7 +36,7 @@ random()
return
(
lrand48
());
return
(
lrand48
());
}
}
void
srandom
(
int
seed
)
void
srandom
(
unsigned
seed
)
{
{
srand48
((
long
int
)
seed
);
srand48
((
long
int
)
seed
);
}
}
...
...
src/include/port/hpux.h
View file @
d5e21e09
...
@@ -2,3 +2,17 @@
...
@@ -2,3 +2,17 @@
# define USE_POSIX_TIME
# define USE_POSIX_TIME
# define HAS_TEST_AND_SET
# define HAS_TEST_AND_SET
typedef
struct
{
int
sem
[
4
];
}
slock_t
;
typedef
struct
{
int
sem
[
4
];
}
slock_t
;
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef PDP_ENDIAN
#define PDP_ENDIAN 3412
#endif
#ifndef BYTE_ORDER
#define BYTE_ORDER BIG_ENDIAN
#endif
src/makefiles/Makefile.hpux
View file @
d5e21e09
#HPUX_VERS:= $(shell uname -r)
#HPUX_MAJOR= ${HPUX_VERS:R:E}
#HPUX_MINOR= ${HPUX_VERS:E}
#ifdef ENFORCE_ALIGNMENT
#ifdef ENFORCE_ALIGNMENT
# CFLAGS
_BE
= -DNOFIXADE
# CFLAGS
+
= -DNOFIXADE
#else
#else
# HPUX_VERS:= $(shell uname -r)
# HPUX_MAJOR= ${HPUX_VERS:R:E}
# HPUX_MINOR= ${HPUX_VERS:E}
# ifeq ($(HPUX_MAJOR), 08)
# ifeq ($(HPUX_MAJOR), 08)
# CFLAGS
_BE
+= +u -DHP_S500_ALIGN
# CFLAGS+= +u -DHP_S500_ALIGN
# LDFLAGS
_BE
+= +u
# LDFLAGS+= +u
# else
# else
# ifeq ($(HPUX_MAJOR), 09)
# ifeq ($(HPUX_MAJOR), 09)
# ifeq ($(CC), cc)
# ifeq ($(CC), cc)
# CFLAGS
_BE
+= +u4
# CFLAGS+= +u4
# LDFLAGS
_BE
+= +u4
# LDFLAGS+= +u4
# endif
# endif
# endif
# endif
# endif
# endif
#endif
#endif
# HP-UX 10 has a select() in libcurses, so we need to get the libc version first
#ifeq ($(HPUX_MAJOR), 10)
# LDFLAGS:= -lc $(LDFLAGS)
#endif
%.sl
:
%.o
%.sl
:
%.o
$(LD)
-b
-o
$@
$<
$(LD)
-b
-o
$@
$<
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment