summaryrefslogtreecommitdiff
path: root/src/libunixonacid/atomic_rm_rf.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-08-13 12:02:12 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-08-13 12:02:12 +0000
commit65d71ab4b780a5d18a8146eb4567eb8a9105f4fe (patch)
tree93dae694b1fd6917176711e467f4f3efab16d1e9 /src/libunixonacid/atomic_rm_rf.c
parent01dc2086a7b722133ce6d1582e4226942d590cb0 (diff)
downloadskalibs-65d71ab4b780a5d18a8146eb4567eb8a9105f4fe.tar.xz
Add atomic_rm_rf and atomic_rm_rf_tmp
Diffstat (limited to 'src/libunixonacid/atomic_rm_rf.c')
-rw-r--r--src/libunixonacid/atomic_rm_rf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libunixonacid/atomic_rm_rf.c b/src/libunixonacid/atomic_rm_rf.c
new file mode 100644
index 0000000..b7f157b
--- /dev/null
+++ b/src/libunixonacid/atomic_rm_rf.c
@@ -0,0 +1,9 @@
+/* ISC license. */
+
+#include <skalibs/skamisc.h>
+#include <skalibs/unix-transactional.h>
+
+int atomic_rm_rf (char const *filename)
+{
+ return atomic_rm_rf_tmp(filename, &satmp) ;
+}