aboutsummaryrefslogtreecommitdiff
path: root/src/backend/port/nextstep/port.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-05-01 22:11:12 +0300
committerPeter Eisentraut <peter_e@gmx.net>2012-05-01 22:11:12 +0300
commitf2f9439fbfba378cb64cd6e5a046e0184cd542c6 (patch)
treee3988f7261fa523aaf0b79f0c0d25dc14b5bdd06 /src/backend/port/nextstep/port.c
parent4266509c577b089627930af39f1dcd2d06b493e9 (diff)
downloadpostgresql-f2f9439fbfba378cb64cd6e5a046e0184cd542c6.tar.gz
postgresql-f2f9439fbfba378cb64cd6e5a046e0184cd542c6.zip
Remove dead ports
Remove the following ports: - dgux - nextstep - sunos4 - svr4 - ultrix4 - univel These are obsolete and not worth rescuing. In most cases, there is circumstantial evidence that they wouldn't work anymore anyway.
Diffstat (limited to 'src/backend/port/nextstep/port.c')
-rw-r--r--src/backend/port/nextstep/port.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/src/backend/port/nextstep/port.c b/src/backend/port/nextstep/port.c
deleted file mode 100644
index f81a83a17a0..00000000000
--- a/src/backend/port/nextstep/port.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * src/backend/port/nextstep/port.c
- */
-#include "postgres.h"
-
-#ifndef _POSIX_SOURCE
-#include "libc.h"
-#else
-#include <unistd.h>
-#endif
-
-#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;
-}
-
-#ifndef _POSIX_SOURCE
-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);
-}
-
-#endif