Added (untested) system call VG_(unlink)().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1177 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_mylibc.c b/coregrind/vg_mylibc.c
index c6c158c..abb5db3 100644
--- a/coregrind/vg_mylibc.c
+++ b/coregrind/vg_mylibc.c
@@ -1091,6 +1091,14 @@
VG_(is_kerror)(res) ? (-1) : 0;
}
+Int VG_(unlink) ( Char* file_name )
+{
+ Int res;
+ res = vg_do_syscall1(__NR_unlink, (UInt)file_name);
+ return
+ VG_(is_kerror)(res) ? (-1) : 0;
+}
+
/* Misc functions looking for a proper home. */
/* We do getenv without libc's help by snooping around in