summaryrefslogtreecommitdiff
path: root/devel/opencvs/files/patch-atomicio.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/opencvs/files/patch-atomicio.h')
-rw-r--r--devel/opencvs/files/patch-atomicio.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/devel/opencvs/files/patch-atomicio.h b/devel/opencvs/files/patch-atomicio.h
index 31ab6bc2575e..e1b929cc197d 100644
--- a/devel/opencvs/files/patch-atomicio.h
+++ b/devel/opencvs/files/patch-atomicio.h
@@ -1,20 +1,21 @@
---- atomicio.h 17 Sep 2007 10:07:21 -0000 1.1
-+++ atomicio.h 17 Oct 2008 08:51:45 -0000
-@@ -1,4 +1,4 @@
--/* $OpenBSD: atomicio.h,v 1.1 2007/09/17 10:07:21 tobias Exp $ */
-+/* $OpenBSD: atomicio.h,v 1.10 2006/08/03 03:34:41 deraadt Exp $ */
+--- atomicio.h.orig 2007-09-17 12:07:21.000000000 +0200
++++ atomicio.h 2010-06-08 20:35:43.000000000 +0200
+@@ -28,6 +28,7 @@
+
+ #ifndef _ATOMICIO_H
+ #define _ATOMICIO_H
++#include <sys/socket.h>
/*
- * Copyright (c) 2006 Damien Miller. All rights reserved.
-@@ -35,5 +35,11 @@
- size_t atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t);
+ * Ensure all of data on socket comes through. f==read || f==vwrite
+@@ -36,4 +37,10 @@ size_t atomicio(ssize_t (*)(int, void *,
#define vwrite (ssize_t (*)(int, void *, size_t))write
-+
+
+/*
+ * ensure all of data on socket comes through. f==readv || f==writev
+ */
+size_t atomiciov(ssize_t (*)(int, const struct iovec *, int),
+ int, const struct iovec *, int);
-
++
#endif /* _ATOMICIO_H */