Added VG_(rename) (untested), and made VG_(bbs_done) visible to skins, both at
the request of Josef Weidendorfer for his KCachegrind stuff.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1231 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_mylibc.c b/coregrind/vg_mylibc.c
index abb5db3..c94224d 100644
--- a/coregrind/vg_mylibc.c
+++ b/coregrind/vg_mylibc.c
@@ -1087,16 +1087,21 @@
 {
    Int res;
    res = vg_do_syscall2(__NR_stat, (UInt)file_name, (UInt)buf);
-   return
-      VG_(is_kerror)(res) ? (-1) : 0;
+   return VG_(is_kerror)(res) ? (-1) : 0;
+}
+
+Int VG_(rename) ( Char* old_name, Char* new_name )
+{
+   Int res;
+   res = vg_do_syscall2(__NR_rename, (UInt)old_name, (UInt)new_name);
+   return 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;
+   return VG_(is_kerror)(res) ? (-1) : 0;
 }
 
 /* Misc functions looking for a proper home. */