summaryrefslogtreecommitdiff
path: root/lib/replace/replace.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-01 04:02:47 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-01 04:02:47 +0100
commit31fa08dcbdc643ec738474c0be471e77925f76fc (patch)
treec4337b4bd77a31f4f593d8c94bbd15b796123117 /lib/replace/replace.h
parent5a56c0adf2c63602b819d052644cb14caf732438 (diff)
parent7b186c48d365ae8eda81ae9a0af100d2214bee32 (diff)
downloadsamba-31fa08dcbdc643ec738474c0be471e77925f76fc.tar.gz
samba-31fa08dcbdc643ec738474c0be471e77925f76fc.tar.bz2
samba-31fa08dcbdc643ec738474c0be471e77925f76fc.zip
Merge branch 'master' of /home/jelmer/samba3
Conflicts: lib/replace/README lib/replace/libreplace.m4 lib/replace/replace.c source3/include/proto.h source3/lib/system.c
Diffstat (limited to 'lib/replace/replace.h')
-rw-r--r--lib/replace/replace.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index 70b29722bf..8483d934d8 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -215,6 +215,41 @@ int rep_seteuid(uid_t);
int rep_setegid(gid_t);
#endif
+#ifndef HAVE_CHOWN
+#define chown rep_chown
+int rep_chown(const char *path, uid_t uid, gid_t gid);
+#endif
+
+#ifndef HAVE_CHROOT
+#define chroot rep_chroot
+int rep_chroot(const char *dirname);
+#endif
+
+#ifndef HAVE_LINK
+#define link rep_link
+int rep_link(const char *oldpath, const char *newpath);
+#endif
+
+#ifndef HAVE_READLINK
+#define readlink rep_readlink
+int rep_readlink(const char *path, char *buf, size_t bufsize);
+#endif
+
+#ifndef HAVE_SYMLINK
+#define symlink rep_symlink
+int rep_symlink(const char *oldpath, const char *newpath);
+#endif
+
+#ifndef HAVE_REALPATH
+#define realpath rep_realpath
+char *rep_realpath(const char *path, char *resolved_path);
+#endif
+
+#ifndef HAVE_LCHOWN
+#define lchown rep_lchown
+int rep_lchown(const char *fname,uid_t uid,gid_t gid);
+#endif
+
#ifndef HAVE_SETLINEBUF
#define setlinebuf rep_setlinebuf
void rep_setlinebuf(FILE *);