summaryrefslogtreecommitdiff
path: root/db2/os/os_unlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'db2/os/os_unlink.c')
-rw-r--r--db2/os/os_unlink.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/db2/os/os_unlink.c b/db2/os/os_unlink.c
new file mode 100644
index 0000000000..473ce77d39
--- /dev/null
+++ b/db2/os/os_unlink.c
@@ -0,0 +1,34 @@
+/*-
+ * See the file LICENSE for redistribution information.
+ *
+ * Copyright (c) 1997
+ * Sleepycat Software. All rights reserved.
+ */
+
+#include "config.h"
+
+#ifndef lint
+static const char sccsid[] = "@(#)os_unlink.c 10.4 (Sleepycat) 10/28/97";
+#endif /* not lint */
+
+#ifndef NO_SYSTEM_INCLUDES
+#include <sys/types.h>
+
+#include <errno.h>
+#include <unistd.h>
+#endif
+
+#include "db_int.h"
+
+/*
+ * __db_unlink --
+ * Remove a file.
+ *
+ * PUBLIC: int __db_unlink __P((const char *));
+ */
+int
+__db_unlink(path)
+ const char *path;
+{
+ return (__os_unlink(path) == -1 ? errno : 0);
+}