From c7183ce0d919f3a90ff71b54a8bd31e7849baf2f Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sun, 6 Dec 2009 06:51:40 +0000 Subject: [PATCH] New. --- testsuites/libtests/POSIX/readv.c | 21 +++++++++++++++++++++ testsuites/libtests/POSIX/writev.c | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 testsuites/libtests/POSIX/readv.c create mode 100644 testsuites/libtests/POSIX/writev.c 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 + +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 + +int +main (void) +{ + struct iovec iov; + int count = 4; + ssize_t ret; + + ret = writev (0, &iov, count); + + return ret; +}