[SCM] Samba Shared Repository - branch master updated -
release-4-0-0alpha6-88-g7fc7ee9
Stefan Metzmacher
metze at samba.org
Thu Jan 22 11:40:09 GMT 2009
The branch, master has been updated
via 7fc7ee9331d0539359ad88c527f59d5fdf212209 (commit)
from c5e242b1a39f0bb26c8c922f25cf7b072e5e834c (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 7fc7ee9331d0539359ad88c527f59d5fdf212209
Author: Stefan Metzmacher <metze at samba.org>
Date: Thu Jan 22 11:52:54 2009 +0100
lib/replace: add defines to let the callers find out if pwrite and pread are thread/fork safe
metze
-----------------------------------------------------------------------
Summary of changes:
lib/replace/replace.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index c3b0604..688a746 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -434,11 +434,17 @@ char *rep_mkdtemp(char *template);
#ifndef HAVE_PREAD
#define pread rep_pread
ssize_t rep_pread(int __fd, void *__buf, size_t __nbytes, off_t __offset);
+#define LIBREPLACE_PREAD_REPLACED 1
+#else
+#define LIBREPLACE_PREAD_NOT_REPLACED 1
#endif
#ifndef HAVE_PWRITE
#define pwrite rep_pwrite
ssize_t rep_pwrite(int __fd, const void *__buf, size_t __nbytes, off_t __offset);
+#define LIBREPLACE_PWRITE_REPLACED 1
+#else
+#define LIBREPLACE_PWRITE_NOT_REPLACED 1
#endif
#if !defined(HAVE_INET_NTOA) || defined(REPLACE_INET_NTOA)
--
Samba Shared Repository
More information about the samba-cvs
mailing list