diff options
author | Zack Weinberg <zackw@panix.com> | 2017-06-08 15:39:03 -0400 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2017-06-08 15:39:03 -0400 |
commit | 5046dbb4a7eba5eccfd258f92f4735c9ffc8d069 (patch) | |
tree | 4470480d904b65cf14ca524f96f79eca818c3eaf /rt/tst-aio8.c | |
parent | 199fc19d3aaaf57944ef036e15904febe877fc93 (diff) | |
download | glibc-5046dbb4a7eba5eccfd258f92f4735c9ffc8d069.tar glibc-5046dbb4a7eba5eccfd258f92f4735c9ffc8d069.tar.gz glibc-5046dbb4a7eba5eccfd258f92f4735c9ffc8d069.tar.bz2 glibc-5046dbb4a7eba5eccfd258f92f4735c9ffc8d069.zip |
Prepare for radical source tree reorganization.zack/build-layout-experiment
All top-level files and directories are moved into a temporary storage
directory, REORG.TODO, except for files that will certainly still
exist in their current form at top level when we're done (COPYING,
COPYING.LIB, LICENSES, NEWS, README), all old ChangeLog files (which
are moved to the new directory OldChangeLogs, instead), and the
generated file INSTALL (which is just deleted; in the new order, there
will be no generated files checked into version control).
Diffstat (limited to 'rt/tst-aio8.c')
-rw-r--r-- | rt/tst-aio8.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/rt/tst-aio8.c b/rt/tst-aio8.c deleted file mode 100644 index b03639dabd..0000000000 --- a/rt/tst-aio8.c +++ /dev/null @@ -1,39 +0,0 @@ -#include <aio.h> -#include <errno.h> -#include <fcntl.h> -#include <stdio.h> -#include <string.h> -#include <unistd.h> - -static int -do_test (void) -{ - int fd = open ("/dev/full", O_RDWR); - if (fd == -1) - { - puts ("could not open /dev/full"); - return 0; - } - - struct aiocb req; - req.aio_fildes = fd; - req.aio_lio_opcode = LIO_WRITE; - req.aio_reqprio = 0; - req.aio_buf = (void *) "hello"; - req.aio_nbytes = 5; - req.aio_offset = 0; - req.aio_sigevent.sigev_notify = SIGEV_NONE; - - struct aiocb *list[1]; - list[0] = &req; - - int r = lio_listio (LIO_WAIT, list, 1, NULL); - int e = errno; - - printf ("r = %d, e = %d (%s)\n", r, e, strerror (e)); - - return r != -1 || e != EIO; -} - -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" |