]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - rt/tst-aio5.c
Remove __get_clockfreq
[thirdparty/glibc.git] / rt / tst-aio5.c
index 612798a1ec2f3e588892e39fb8a5db9be06d7796..29b06313c95c611a4b170ffdd6023463b1a0632b 100644 (file)
@@ -1,5 +1,5 @@
 /* Test for completion thread handling.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
 
 #include <aio.h>
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-
-/* We might need a bit longer timeout.  */
-#define TIMEOUT 10 /* sec */
+#include <errno.h>
 
 #define MY_SIVAL 27
 
@@ -96,6 +93,11 @@ do_test (int argc, char *argv[])
   /* First use aio_write.  */
   if (aio_write (arr[0]) < 0)
     {
+      if (errno == ENOSYS)
+       {
+         puts ("no aio support in this configuration");
+         return 0;
+       }
       printf ("aio_write failed: %m\n");
       return 1;
     }