aboutsummaryrefslogtreecommitdiff
path: root/io/tst-fstatat.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/tst-fstatat.c')
-rw-r--r--io/tst-fstatat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/io/tst-fstatat.c b/io/tst-fstatat.c
index 4766bb2e71..6a60024b63 100644
--- a/io/tst-fstatat.c
+++ b/io/tst-fstatat.c
@@ -6,6 +6,7 @@
#include <unistd.h>
#include <sys/stat.h>
+#include <support/xunistd.h>
static void prepare (void);
#define PREPARE(argc, argv) prepare ()
@@ -94,7 +95,7 @@ do_test (void)
puts ("file creation failed");
return 1;
}
- write (fd, "hello", 5);
+ xwrite (fd, "hello", 5);
puts ("file created");
struct stat64 st1;