[PATCH 1/2] Revert "Remove 'Readv' interface"

Keith Packard keithp at keithp.com
Sun Nov 3 03:27:14 CET 2013


This reverts commit 9e8d99c2e27f2c8acbbfb5b760649aa1bfad665e.

libFS still uses this API...
---
 Xtrans.c | 7 +++++++
 Xtrans.h | 6 ++++++
 2 files changed, 13 insertions(+)

diff --git a/Xtrans.c b/Xtrans.c
index 7c7967f..be9a057 100644
--- a/Xtrans.c
+++ b/Xtrans.c
@@ -866,6 +866,13 @@ TRANS(Write) (XtransConnInfo ciptr, char *buf, int size)
 }
 
 int
+TRANS(Readv) (XtransConnInfo ciptr, struct iovec *buf, int size)
+
+{
+    return ciptr->transptr->Readv (ciptr, buf, size);
+}
+
+int
 TRANS(Writev) (XtransConnInfo ciptr, struct iovec *buf, int size)
 
 {
diff --git a/Xtrans.h b/Xtrans.h
index 53b8b62..69accd7 100644
--- a/Xtrans.h
+++ b/Xtrans.h
@@ -344,6 +344,12 @@ int TRANS(Write)(
     int			/* size */
 );
 
+int TRANS(Readv)(
+    XtransConnInfo,	/* ciptr */
+    struct iovec *,	/* buf */
+    int			/* size */
+);
+
 int TRANS(Writev)(
     XtransConnInfo,	/* ciptr */
     struct iovec *,	/* buf */
-- 
1.8.4.2



More information about the xorg-devel mailing list