aboutsummaryrefslogtreecommitdiffstats
path: root/syscall.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-04-05 06:26:24 +0000
committerAndrew Tridgell <tridge@samba.org>1998-04-05 06:26:24 +0000
commit1b2d733af23599b2cc173c8a275b895760f66258 (patch)
tree2e2b87a44eb886b1e818886be2899b31d2a37c6a /syscall.c
parent366345fe05a44b2d08aedb1c8e4b6d7ce1aedeeb (diff)
downloadandroid_external_rsync-1b2d733af23599b2cc173c8a275b895760f66258.tar.gz
android_external_rsync-1b2d733af23599b2cc173c8a275b895760f66258.tar.bz2
android_external_rsync-1b2d733af23599b2cc173c8a275b895760f66258.zip
a couple more system calls wrapped in syscall.c
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/syscall.c b/syscall.c
index 1893be61..31528590 100644
--- a/syscall.c
+++ b/syscall.c
@@ -77,3 +77,21 @@ int do_chmod(const char *path, mode_t mode)
return chmod(path, mode);
}
#endif
+
+int do_rename(char *fname1, char *fname2)
+{
+ if (dry_run) return 0;
+ return rename(fname1, fname2);
+}
+
+int do_mkdir(char *fname, mode_t mode)
+{
+ if (dry_run) return 0;
+ return mkdir(fname, mode);
+}
+
+char *do_mktemp(char *template)
+{
+ if (dry_run) return NULL;
+ return mktemp(template);
+}