about summary refs log tree commit diff
path: root/nptl/tst-join5.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-02-06 12:21:38 -0800
committerRoland McGrath <roland@hack.frob.com>2015-02-06 12:21:38 -0800
commitca0e0675a7d203cfd047fd9f3137b6713defef84 (patch)
treeb2759c5a4bb7d4c21d2d29425b9dca1fcf6586c6 /nptl/tst-join5.c
parent8c28bbc6d989575388ac42e00ee852fc3666bb5f (diff)
downloadglibc-ca0e0675a7d203cfd047fd9f3137b6713defef84.tar.gz
glibc-ca0e0675a7d203cfd047fd9f3137b6713defef84.tar.xz
glibc-ca0e0675a7d203cfd047fd9f3137b6713defef84.zip
Clean up nptl/tst-join5 use of nanosleep.
Diffstat (limited to 'nptl/tst-join5.c')
-rw-r--r--nptl/tst-join5.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/nptl/tst-join5.c b/nptl/tst-join5.c
index e83f8958c0..b45d210629 100644
--- a/nptl/tst-join5.c
+++ b/nptl/tst-join5.c
@@ -22,15 +22,15 @@
 #include <stdlib.h>
 #include <time.h>
 #include <unistd.h>
-#include <sys/syscall.h>
 
 
-#define wait_code()							      \
-  do {									      \
-    struct timespec ts = { .tv_sec = 0, .tv_nsec = 200000000 };		      \
-    while (syscall (__NR_nanosleep, &ts, &ts) < 0)			      \
-      /* nothing */;							      \
-  } while (0)
+static void
+wait_code (void)
+{
+  struct timespec ts = { .tv_sec = 0, .tv_nsec = 200000000 };
+  while (nanosleep (&ts, &ts) < 0)
+    ;
+}
 
 
 #ifdef WAIT_IN_CHILD