summaryrefslogtreecommitdiff
path: root/devel/opencvs/files/patch-atomicio.h
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2008-11-01 18:43:36 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2008-11-01 18:43:36 +0000
commit69d5c43463408ce19a8c80ee45ee299bee1e8289 (patch)
treef14b00301afcf2f280ad35d2391f4542f4644f1e /devel/opencvs/files/patch-atomicio.h
parentUse 127.0.0.1 for incoming communication socket (internally-used (diff)
OpenCVS is a FREE implementation of the Concurrent Versions System, the most
popular open source revision control software. It can be used as both client and server for repositories and provides granular access control over data stored in the repository. It aims to be as compatible as possible with other CVS implementations, except when particular features reduce the overall security of the system. WWW: http://www.opencvs.org/ This port was requested by rdivacky@, who created the dist patches for OpenCVS.
Notes
Notes: svn path=/head/; revision=222279
Diffstat (limited to 'devel/opencvs/files/patch-atomicio.h')
-rw-r--r--devel/opencvs/files/patch-atomicio.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/opencvs/files/patch-atomicio.h b/devel/opencvs/files/patch-atomicio.h
new file mode 100644
index 000000000000..31ab6bc2575e
--- /dev/null
+++ b/devel/opencvs/files/patch-atomicio.h
@@ -0,0 +1,20 @@
+--- 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 $ */
+
+ /*
+ * 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);
+
+ #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 */