summaryrefslogtreecommitdiff
path: root/src/libposixplz
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-07-21 07:28:05 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-07-21 07:28:05 +0000
commit0a181fc1b38a62e583f13ccc1550f7ffc8f5896b (patch)
tree3317e6a0288817585f26e7a4140efdf76b6f6768 /src/libposixplz
parentf09ad31e00c22086863b95d3b6cb8eeadfdcdef7 (diff)
downloadskalibs-0a181fc1b38a62e583f13ccc1550f7ffc8f5896b.tar.xz
Add unlink_void, change dir_close, prepare for 2.7.0.0
Diffstat (limited to 'src/libposixplz')
-rw-r--r--src/libposixplz/unlink_void.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libposixplz/unlink_void.c b/src/libposixplz/unlink_void.c
new file mode 100644
index 0000000..472bd6a
--- /dev/null
+++ b/src/libposixplz/unlink_void.c
@@ -0,0 +1,12 @@
+/* ISC license. */
+
+#include <unistd.h>
+#include <errno.h>
+#include <skalibs/posixplz.h>
+
+void unlink_void (char const *file)
+{
+ int e = errno ;
+ unlink(file) ;
+ errno = e ;
+}