11 int fd
= open ("/dev/full", O_RDWR
);
14 puts ("could not open /dev/full");
20 req
.aio_lio_opcode
= LIO_WRITE
;
22 req
.aio_buf
= (void *) "hello";
25 req
.aio_sigevent
.sigev_notify
= SIGEV_NONE
;
27 struct aiocb
*list
[1];
30 int r
= lio_listio (LIO_WAIT
, list
, 1, NULL
);
33 printf ("r = %d, e = %d (%s)\n", r
, e
, strerror (e
));
35 return r
!= -1 || e
!= EIO
;
38 #define TEST_FUNCTION do_test ()
39 #include "../test-skeleton.c"