Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
81cda65f
Commit
81cda65f
authored
28 years ago
by
Marc G. Fournier
Browse files
Options
Downloads
Patches
Plain Diff
Add a MIPS/NetBSD port...
parent
b7559f94
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/backend/port/BSD44_derived/dl.c
+12
-0
12 additions, 0 deletions
src/backend/port/BSD44_derived/dl.c
src/include/storage/ipc.h
+8
-1
8 additions, 1 deletion
src/include/storage/ipc.h
src/mk/port/postgres.mk.BSD44_derived
+5
-1
5 additions, 1 deletion
src/mk/port/postgres.mk.BSD44_derived
with
25 additions
and
2 deletions
src/backend/port/BSD44_derived/dl.c
+
12
−
0
View file @
81cda65f
...
...
@@ -58,17 +58,26 @@ BSD44_derived_dlerror(void)
void
*
BSD44_derived_dlopen
(
char
*
file
,
int
num
)
{
#ifdef __mips__
(
void
)
sprintf
(
error_message
,
"dlopen (%s) not supported"
,
file
);
return
NULL
;
#else
void
*
vp
;
if
((
vp
=
dlopen
(
file
,
num
))
==
(
void
*
)
NULL
)
{
(
void
)
sprintf
(
error_message
,
"dlopen (%s) failed"
,
file
);
}
return
(
vp
);
#endif
}
void
*
BSD44_derived_dlsym
(
void
*
handle
,
char
*
name
)
{
#ifdef __mips__
(
void
)
sprintf
(
error_message
,
"dlsym (%s) failed"
,
name
);
return
NULL
;
#else
void
*
vp
;
char
buf
[
BUFSIZ
];
...
...
@@ -80,10 +89,13 @@ BSD44_derived_dlsym(void *handle, char *name)
(
void
)
sprintf
(
error_message
,
"dlsym (%s) failed"
,
name
);
}
return
(
vp
);
#endif
}
void
BSD44_derived_dlclose
(
void
*
handle
)
{
#ifndef __mips__
dlclose
(
handle
);
#endif
}
This diff is collapsed.
Click to expand it.
src/include/storage/ipc.h
+
8
−
1
View file @
81cda65f
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: ipc.h,v 1.
2
1996/10/
02 20:40:1
7 scrappy Exp $
* $Id: ipc.h,v 1.
3
1996/10/
11 03:56:2
7 scrappy Exp $
*
* NOTES
* This file is very architecture-specific. This stuff should actually
...
...
@@ -29,6 +29,9 @@
* Many architectures have support for user-level spinlocks (i.e., an
* atomic test-and-set instruction). However, we have only written
* spinlock code for the architectures listed.
* NB: for operating systems like NetBSD (covered by BSD44_derived),
* we may in fact have different architectures, thus make the tests
* based on portnames somewhat misleading.
*/
#if defined(PORTNAME_aix) || \
defined(PORTNAME_alpha) || \
...
...
@@ -45,6 +48,10 @@
#define HAS_TEST_AND_SET
#endif
#if defined(PORTNAME_BSD44_derived) && defined(__mips__)
#undef HAS_TEST_AND_SET
#endif
#if defined(HAS_TEST_AND_SET)
#if defined(PORTNAME_aix)
...
...
This diff is collapsed.
Click to expand it.
src/mk/port/postgres.mk.BSD44_derived
+
5
−
1
View file @
81cda65f
...
...
@@ -6,7 +6,7 @@
#
# Copyright (c) 1994-5, Regents of the University of California
#
# $Id: postgres.mk.BSD44_derived,v 1.
2
1996/
07/25 07:28:12
scrappy Exp $
# $Id: postgres.mk.BSD44_derived,v 1.
3
1996/
10/11 03:56:41
scrappy Exp $
#
#-------------------------------------------------------------------------
ifndef MK_PORT
...
...
@@ -29,7 +29,11 @@ LDADD+= -L/usr/local/lib -lfl
#
CFLAGS_SL = -fpic -DPIC
ifeq ($(HOSTTYPE), mips)
#SLSUFF= .so
else
SLSUFF= .so
endif
%.so: %.o
$(LD) -x -r -o $(objdir)/$(<F).obj $(objdir)/$(<F)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment