summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX/writev.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests/POSIX/writev.c')
-rw-r--r--testsuites/libtests/POSIX/writev.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuites/libtests/POSIX/writev.c b/testsuites/libtests/POSIX/writev.c
new file mode 100644
index 0000000000..aeaa39e9a0
--- /dev/null
+++ b/testsuites/libtests/POSIX/writev.c
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf Corsépius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <sys/uio.h>
+
+int
+main (void)
+{
+ struct iovec iov;
+ int count = 4;
+ ssize_t ret;
+
+ ret = writev (0, &iov, count);
+
+ return ret;
+}