just a stub for now
[rsync/rsync.git] / syscall.c
index 3152859..c6fd354 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -95,3 +95,51 @@ char *do_mktemp(char *template)
        if (dry_run) return NULL;
        return mktemp(template);
 }
+
+int do_stat(const char *fname, STRUCT_STAT *st)
+{
+#if HAVE_OFF64_T
+       return stat64(fname, st);
+#else
+       return stat(fname, st);
+#endif
+}
+
+#if SUPPORT_LINKS
+int do_lstat(const char *fname, STRUCT_STAT *st)
+{
+#if HAVE_OFF64_T
+       return lstat64(fname, st);
+#else
+       return lstat(fname, st);
+#endif
+}
+#endif
+
+int do_fstat(int fd, STRUCT_STAT *st)
+{
+#if HAVE_OFF64_T
+       return fstat64(fd, st);
+#else
+       return fstat(fd, st);
+#endif
+}
+
+OFF_T do_lseek(int fd, OFF_T offset, int whence)
+{
+#if HAVE_OFF64_T
+       off64_t lseek64();
+       return lseek64(fd, offset, whence);
+#else
+       return lseek(fd, offset, whence);
+#endif
+}
+
+char *d_name(struct dirent *di)
+{
+#if HAVE_BROKEN_READDIR
+       return (di->d_name - 2);
+#else
+       return di->d_name;
+#endif
+}