summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2018-09-05 12:54:46 +0100
committerChris Liddell <chris.liddell@artifex.com>2018-09-06 17:14:28 +0100
commit37c1547e61e758cdd17c3dcb0504e2f5988004c3 (patch)
tree1c1c6585e3b4e31a2956997cd6f4b52961c9ceb4
parent164b6cb355900d0faea7468b4eafb3154aa90f6a (diff)
downloadghostpdl-37c1547e61e758cdd17c3dcb0504e2f5988004c3.tar.gz
Delete legacy code source file, and references to it
-rw-r--r--base/gp_sysv.c65
-rw-r--r--base/unix-aux.mak10
-rw-r--r--doc/Develop.htm1
-rw-r--r--doc/Source.htm5
-rw-r--r--windows/ghostscript.vcproj4
-rw-r--r--windows/ghostscript_rt.vcxproj1
6 files changed, 0 insertions, 86 deletions
diff --git a/base/gp_sysv.c b/base/gp_sysv.c
deleted file mode 100644
index 8112cf710..000000000
--- a/base/gp_sysv.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/* Copyright (C) 2001-2018 Artifex Software, Inc.
- All Rights Reserved.
-
- This software is provided AS-IS with no warranty, either express or
- implied.
-
- This software is distributed under license and may not be copied,
- modified or distributed except as expressly authorized under the terms
- of the license contained in the file LICENSE in this distribution.
-
- Refer to licensing information at http://www.artifex.com or contact
- Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
- CA 94945, U.S.A., +1(415)492-9861, for further information.
-*/
-
-
-/* System V Unix-specific routines for Ghostscript */
-
-/* This file contains a couple of standard Unix library procedures */
-/* that a few System V platforms don't provide. */
-/* Note that this file is NOT used for SVR4 platforms. */
-#include <errno.h>
-#include "stdio_.h"
-#include "time_.h"
-#include <sys/types.h>
-#include <sys/times.h>
-#include <sys/stat.h>
-#include <sys/param.h>
-
-/* rename */
-int
-rename(const char *a, const char *b)
-{
- if (access(a, 0) == -1)
- return (-1);
- unlink(b);
- if (link(a, b) == -1)
- return (-1);
- if (unlink(a) == -1) {
- unlink(b); /* ??? */
- return (-1);
- }
- return (0);
-}
-
-/* gettimeofday */
-#ifndef HZ
-# define HZ 100 /* see sys/param.h */
-#endif
-int
-gettimeofday(struct timeval *tvp, struct timezone *tzp)
-{
- struct tms tms;
- static long offset = 0;
- long ticks;
-
- if (!offset) {
- time(&offset);
- offset -= (times(&tms) / HZ);
- }
- ticks = times(&tms);
- tvp->tv_sec = ticks / HZ + offset;
- tvp->tv_usec = (ticks % HZ) * (1000 * 1000 / HZ);
- return 0;
-}
diff --git a/base/unix-aux.mak b/base/unix-aux.mak
index 5bf72e954..261ce45a3 100644
--- a/base/unix-aux.mak
+++ b/base/unix-aux.mak
@@ -54,16 +54,6 @@ $(AUX)gp_stdia.$(OBJ): $(GLSRC)gp_stdia.c $(AK)\
$(stdio__h) $(time__h) $(unistd__h) $(gx_h) $(gp_h) $(UNIX_AUX_MAK) $(MAKEDIRS)
$(GLCCAUX) $(AUXO_)gp_stdia.$(OBJ) $(C_) $(GLSRC)gp_stdia.c
-# System V platforms other than SVR4, which lack some system calls,
-# but have pipes.
-sysv__=$(GLOBJ)gp_getnv.$(OBJ) $(GLOBJ)gp_upapr.$(OBJ) $(GLOBJ)gp_unix.$(OBJ) $(GLOBJ)gp_unifs.$(OBJ) $(GLOBJ)gp_unifn.$(OBJ) $(GLOBJ)gp_sysv.$(OBJ) $(GLOBJ)gp_nxpsprn.$(OBJ)
-$(GLGEN)sysv_.dev: $(sysv__) $(GLD)nosync.dev $(UNIX_AUX_MAK) $(MAKEDIRS)
- $(SETMOD) $(GLGEN)sysv_ $(sysv__) -include $(GLD)nosync
-
-$(GLOBJ)gp_sysv.$(OBJ): $(GLSRC)gp_sysv.c $(stdio__h) $(time__h) $(AK)\
- $(UNIX_AUX_MAK) $(MAKEDIRS)
- $(GLCC) $(GLO_)gp_sysv.$(OBJ) $(C_) $(GLSRC)gp_sysv.c
-
# -------------------------- Auxiliary programs --------------------------- #
$(ECHOGS_XE): $(GLSRC)echogs.c $(AK) $(stdpre_h) $(UNIX_AUX_MAK) $(MAKEDIRS)
diff --git a/doc/Develop.htm b/doc/Develop.htm
index 336e7f500..d12dcb4f4 100644
--- a/doc/Develop.htm
+++ b/doc/Develop.htm
@@ -4250,7 +4250,6 @@ Platform-specific implementation files:
<a href="../base/gp_os9.c">base/gp_os9.c</a>,
<a href="../base/gp_stdia.c">base/gp_stdia.c</a>,
<a href="../base/gp_stdin.c">base/gp_stdin.c</a>,
-<a href="../base/gp_sysv.c">base/gp_sysv.c</a>,
<a href="../base/gp_unifn.c">base/gp_unifn.c</a>,
<a href="../base/gp_unifs.c">base/gp_unifs.c</a>,
<a href="../base/gp_unix.c">base/gp_unix.c</a>,
diff --git a/doc/Source.htm b/doc/Source.htm
index 2d73f07fb..e53823899 100644
--- a/doc/Source.htm
+++ b/doc/Source.htm
@@ -346,11 +346,6 @@ The platform-specific implementations of the
<td>Unix and QNX</td>
</tr>
<tr>
- <td><code>gp_sysv.c</code></td>
- <td>&nbsp;</td>
- <td>System V Unix</td>
- </tr>
-<tr>
<td><code>gp_vms.c</code></td>
<td>&nbsp;</td>
<td>VMS</td>
diff --git a/windows/ghostscript.vcproj b/windows/ghostscript.vcproj
index 9bc2e6824..3ddc1db61 100644
--- a/windows/ghostscript.vcproj
+++ b/windows/ghostscript.vcproj
@@ -1942,10 +1942,6 @@
>
</File>
<File
- RelativePath="..\base\gp_sysv.c"
- >
- </File>
- <File
RelativePath="..\base\gp_unifn.c"
>
</File>
diff --git a/windows/ghostscript_rt.vcxproj b/windows/ghostscript_rt.vcxproj
index 330f8a1ea..1aac5e2f8 100644
--- a/windows/ghostscript_rt.vcxproj
+++ b/windows/ghostscript_rt.vcxproj
@@ -460,7 +460,6 @@
<ClCompile Include="..\base\gp_stdia.c" />
<ClCompile Include="..\base\gp_stdin.c" />
<ClCompile Include="..\base\gp_strdl.c" />
- <ClCompile Include="..\base\gp_sysv.c" />
<ClCompile Include="..\base\gp_unifn.c" />
<ClCompile Include="..\base\gp_unifs.c" />
<ClCompile Include="..\base\gp_unix.c" />