summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-12-06 06:51:40 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-12-06 06:51:40 +0000
commitc7183ce0d919f3a90ff71b54a8bd31e7849baf2f (patch)
treeacaa2397acf2e50b0280e3769e01b118d1dbcd3a /testsuites/libtests/POSIX
parent2009-12-04 Fernando Nicodemos <fgnicodemos@terra.com.br> (diff)
downloadrtems-c7183ce0d919f3a90ff71b54a8bd31e7849baf2f.tar.bz2
New.
Diffstat (limited to 'testsuites/libtests/POSIX')
-rw-r--r--testsuites/libtests/POSIX/readv.c21
-rw-r--r--testsuites/libtests/POSIX/writev.c21
2 files changed, 42 insertions, 0 deletions
diff --git a/testsuites/libtests/POSIX/readv.c b/testsuites/libtests/POSIX/readv.c
new file mode 100644
index 0000000000..785a24cfef
--- /dev/null
+++ b/testsuites/libtests/POSIX/readv.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 = readv (0, &iov, count);
+
+ return ret;
+}
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;
+}