diff options
Diffstat (limited to 'io/tst-openat.c')
-rw-r--r-- | io/tst-openat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io/tst-openat.c b/io/tst-openat.c index 741b8d0ad2..2ce89e3db1 100644 --- a/io/tst-openat.c +++ b/io/tst-openat.c @@ -6,6 +6,7 @@ #include <string.h> #include <unistd.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); /* Before closing the file, try using this file descriptor to open another file. This must fail. */ |