summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'base/gp_unifs.c')
-rw-r--r--base/gp_unifs.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/base/gp_unifs.c b/base/gp_unifs.c
index 70752634..dea5c6da 100644
--- a/base/gp_unifs.c
+++ b/base/gp_unifs.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2019 Artifex Software, Inc.
+/* Copyright (C) 2001-2020 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -139,7 +139,7 @@ gp_open_scratch_file_impl(const gs_memory_t *mem,
emprintf1(mem, "**** Could not open temporary file %s\n", fname);
if (remove)
- unlink(fname);
+ unlink(fname); /* unlink, not gp_unlink here. */
return fp;
#endif
@@ -156,6 +156,18 @@ gp_fopen_impl(gs_memory_t *mem, const char *fname, const char *mode)
#endif
}
+int
+gp_unlink_impl(gs_memory_t *mem, const char *fname)
+{
+ return unlink(fname);
+}
+
+int
+gp_rename_impl(gs_memory_t *mem, const char *from, const char *to)
+{
+ return rename(from, to);
+}
+
int gp_stat_impl(const gs_memory_t *mem, const char *path, struct stat *buf)
{
return stat(path, buf);