diff options
author | bluhm <> | 2019-11-22 15:59:53 +0000 |
---|---|---|
committer | bluhm <> | 2019-11-22 15:59:53 +0000 |
commit | b2bdbc04fb540e09593ae35ff3336dc3b378f73a (patch) | |
tree | 0b4653232548242b962f182a56d148a1a4d0b669 /src/regress/lib/libc/sys/t_write.c | |
parent | 31d2d72847eddaad8498eaa0129b72d27f6f9aee (diff) | |
download | openbsd-b2bdbc04fb540e09593ae35ff3336dc3b378f73a.tar.gz openbsd-b2bdbc04fb540e09593ae35ff3336dc3b378f73a.tar.bz2 openbsd-b2bdbc04fb540e09593ae35ff3336dc3b378f73a.zip |
Sync tests with current NetBSD. Enable t_mkfifo test.
from Moritz Buhl
Diffstat (limited to 'src/regress/lib/libc/sys/t_write.c')
-rw-r--r-- | src/regress/lib/libc/sys/t_write.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libc/sys/t_write.c b/src/regress/lib/libc/sys/t_write.c index d22f32383a..f05edb5bed 100644 --- a/src/regress/lib/libc/sys/t_write.c +++ b/src/regress/lib/libc/sys/t_write.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* $OpenBSD: t_write.c,v 1.1.1.1 2019/11/19 19:57:04 bluhm Exp $ */ | 1 | /* $OpenBSD: t_write.c,v 1.2 2019/11/22 15:59:53 bluhm Exp $ */ |
2 | /* $NetBSD: t_write.c,v 1.6 2017/07/09 22:18:43 christos Exp $ */ | 2 | /* $NetBSD: t_write.c,v 1.7 2019/07/16 17:29:18 martin Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
5 | * Copyright (c) 2001, 2008 The NetBSD Foundation, Inc. | 5 | * Copyright (c) 2001, 2008 The NetBSD Foundation, Inc. |
@@ -32,7 +32,7 @@ | |||
32 | #include <sys/cdefs.h> | 32 | #include <sys/cdefs.h> |
33 | __COPYRIGHT("@(#) Copyright (c) 2008\ | 33 | __COPYRIGHT("@(#) Copyright (c) 2008\ |
34 | The NetBSD Foundation, inc. All rights reserved."); | 34 | The NetBSD Foundation, inc. All rights reserved."); |
35 | __RCSID("$NetBSD: t_write.c,v 1.6 2017/07/09 22:18:43 christos Exp $"); | 35 | __RCSID("$NetBSD: t_write.c,v 1.7 2019/07/16 17:29:18 martin Exp $"); |
36 | 36 | ||
37 | #include <sys/uio.h> | 37 | #include <sys/uio.h> |
38 | #include <sys/mman.h> | 38 | #include <sys/mman.h> |
@@ -176,7 +176,7 @@ ATF_TC_BODY(write_ret, tc) | |||
176 | size_t i, j; | 176 | size_t i, j; |
177 | int fd; | 177 | int fd; |
178 | 178 | ||
179 | fd = open(path, O_WRONLY | O_CREAT); | 179 | fd = open(path, O_WRONLY | O_CREAT, 0600); |
180 | ATF_REQUIRE(fd >= 0); | 180 | ATF_REQUIRE(fd >= 0); |
181 | 181 | ||
182 | (void)memset(buf, 'x', sizeof(buf)); | 182 | (void)memset(buf, 'x', sizeof(buf)); |