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
197c7f54
Commit
197c7f54
authored
Jan 26, 1997
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More removals for next/nextstep. Fix IPC lib for them.
parent
1836ce2c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
165 deletions
+3
-165
src/Makefile.global
src/Makefile.global
+3
-3
src/backend/port/next/Makefile.inc
src/backend/port/next/Makefile.inc
+0
-14
src/backend/port/next/externs.c
src/backend/port/next/externs.c
+0
-43
src/backend/port/next/load.c
src/backend/port/next/load.c
+0
-73
src/backend/port/next/machine.h
src/backend/port/next/machine.h
+0
-6
src/backend/port/next/port-protos.h
src/backend/port/next/port-protos.h
+0
-26
No files found.
src/Makefile.global
View file @
197c7f54
...
...
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.10
1 1997/01/25 19:25:05 scrappy
Exp $
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.10
2 1997/01/26 20:21:43 momjian
Exp $
#
# NOTES
# Essentially all Postgres make files include this file and use the
...
...
@@ -704,10 +704,10 @@ DLSUFFIX= .o
endif
#---------------------------------------------------------------------------
ifeq
($(PORTNAME), nextstep)
LDADD_BE
+=
-l
ipc
LDADD_BE
+=
-l
IPC
AROPT
=
rc
DLSUFFIX
=
.o
endif
...
...
src/backend/port/next/Makefile.inc
deleted
100644 → 0
View file @
1836ce2c
#-------------------------------------------------------------------------
#
# Makefile.inc--
# Makefile for port/next (NeXTStep 3.3 specific stuff)
#
#-------------------------------------------------------------------------
CFLAGS
+=
-DUSE_POSIX_TIME
-DNO_EMPTY_STMTS
SUBSRCS
+=
load.c externs.c
HEADERS
+=
machine.h port-protos.h
LDADD
+=
-lIPC
src/backend/port/next/externs.c
deleted
100644 → 0
View file @
1836ce2c
#include <libc.h>
#include <sys/signal.h>
void
putenv
(
char
*
name
)
{
extern
char
**
environ
;
static
int
was_mallocated
=
0
;
int
size
;
/* Compute the size of environ array including the final NULL */
for
(
size
=
1
;
environ
[
size
++
];)
/* nothing */
;
if
(
!
was_mallocated
)
{
char
**
tmp
=
environ
;
int
i
;
was_mallocated
=
1
;
environ
=
malloc
(
size
*
sizeof
(
char
*
));
for
(
i
=
0
;
i
<
size
;
i
++
)
environ
[
i
]
=
tmp
[
i
];
}
environ
=
realloc
(
environ
,
(
size
+
1
)
*
sizeof
(
char
*
));
environ
[
size
-
1
]
=
strcpy
(
malloc
(
strlen
(
name
)
+
1
),
name
);
environ
[
size
]
=
NULL
;
}
int
sigaddset
(
int
*
set
,
int
signo
)
{
*
set
|=
sigmask
(
signo
);
return
*
set
;
}
int
sigemptyset
(
int
*
set
)
{
return
(
*
set
=
0
);
}
char
*
getcwd
(
char
*
buf
,
size_t
size
)
{
return
getwd
(
buf
);
}
src/backend/port/next/load.c
deleted
100644 → 0
View file @
1836ce2c
#include <mach-o/rld.h>
#include <streams/streams.h>
#include <stdlib.h>
static
char
*
lastError
=
NULL
;
static
NXStream
*
OpenError
()
{
return
NXOpenMemory
(
NULL
,
0
,
NX_WRITEONLY
);
}
static
void
CloseError
(
NXStream
*
s
)
{
if
(
s
)
NXCloseMemory
(
s
,
NX_FREEBUFFER
);
}
static
void
TransferError
(
NXStream
*
s
)
{
char
*
buffer
;
int
len
,
maxlen
;
if
(
lastError
)
free
(
lastError
);
NXGetMemoryBuffer
(
s
,
&
buffer
,
&
len
,
&
maxlen
);
lastError
=
malloc
(
len
+
1
);
strcpy
(
lastError
,
buffer
);
}
void
*
next_dlopen
(
char
*
name
)
{
int
rld_success
;
NXStream
*
errorStream
;
char
*
result
=
NULL
;
char
**
p
;
errorStream
=
OpenError
();
p
=
calloc
(
2
,
sizeof
(
void
*
));
p
[
0
]
=
name
;
rld_success
=
rld_load
(
errorStream
,
NULL
,
p
,
NULL
);
free
(
p
);
if
(
!
rld_success
)
{
TransferError
(
errorStream
);
result
=
(
char
*
)
1
;
}
CloseError
(
errorStream
);
return
result
;
}
int
next_dlclose
(
void
*
handle
)
{
return
0
;
}
void
*
next_dlsym
(
void
*
handle
,
char
*
symbol
)
{
NXStream
*
errorStream
=
OpenError
();
char
symbuf
[
1024
];
unsigned
long
symref
=
0
;
sprintf
(
symbuf
,
"_%s"
,
symbol
);
if
(
!
rld_lookup
(
errorStream
,
symbuf
,
&
symref
))
TransferError
(
errorStream
);
CloseError
(
errorStream
);
return
(
void
*
)
symref
;
}
char
*
next_dlerror
(
void
)
{
return
lastError
;
}
src/backend/port/next/machine.h
deleted
100644 → 0
View file @
1836ce2c
#ifndef MACHINE_H
#define MACHINE_H
#define BLCKSZ 8192
#endif
src/backend/port/next/port-protos.h
deleted
100644 → 0
View file @
1836ce2c
/*-------------------------------------------------------------------------
*
* port-protos.h--
* port-specific prototypes for NeXT
*
*-------------------------------------------------------------------------
*/
#ifndef PORT_PROTOS_H
#define PORT_PROTOS_H
#include "fmgr.h"
/* for func_ptr */
#include "utils/dynamic_loader.h"
void
*
next_dlopen
(
char
*
name
);
int
next_dlclose
(
void
*
handle
);
void
*
next_dlsym
(
void
*
handle
,
char
*
symbol
);
char
*
next_dlerror
(
void
);
#define pg_dlopen(f) next_dlopen
#define pg_dlsym next_dlsym
#define pg_dlclose next_dlclose
#define pg_dlerror next_dlerror
/* port.c */
#endif
/* PORT_PROTOS_H */
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