summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/replace/replace.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-07-10 15:29:31 +1000
committerAndrew Tridgell <tridge@samba.org>2007-07-10 15:29:31 +1000
commit32de198fd3d59033418ac0e05baaf16b17f5ce46 (patch)
treebabe495cedfde02580f50931a50c5e6ef93929e8 /ctdb/lib/replace/replace.c
parent9fe446f2315a23f635113a62d7e79e2fedda09e5 (diff)
downloadsamba-32de198fd3d59033418ac0e05baaf16b17f5ce46.tar.gz
samba-32de198fd3d59033418ac0e05baaf16b17f5ce46.tar.xz
samba-32de198fd3d59033418ac0e05baaf16b17f5ce46.zip
update lib/replace from samba4
(This used to be ctdb commit f0555484105668c01c21f56322992e752e831109)
Diffstat (limited to 'ctdb/lib/replace/replace.c')
-rw-r--r--ctdb/lib/replace/replace.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/ctdb/lib/replace/replace.c b/ctdb/lib/replace/replace.c
index 87e73d001c..cec158be31 100644
--- a/ctdb/lib/replace/replace.c
+++ b/ctdb/lib/replace/replace.c
@@ -10,7 +10,7 @@
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
+ version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -18,8 +18,7 @@
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include "replace.h"
@@ -438,6 +437,10 @@ char *rep_mkdtemp(char *template)
}
#endif
+/*****************************************************************
+ Watch out: this is not thread safe.
+*****************************************************************/
+
#ifndef HAVE_PREAD
ssize_t rep_pread(int __fd, void *__buf, size_t __nbytes, off_t __offset)
{
@@ -448,6 +451,10 @@ ssize_t rep_pread(int __fd, void *__buf, size_t __nbytes, off_t __offset)
}
#endif
+/*****************************************************************
+ Watch out: this is not thread safe.
+*****************************************************************/
+
#ifndef HAVE_PWRITE
ssize_t rep_pwrite(int __fd, const void *__buf, size_t __nbytes, off_t __offset)
{