Lines Matching refs:target
248 const char target[] = "/dev/null"; in FORTIFY_TEST() local
265 EXPECT_FORTIFY_DEATH(open(target, O_CREAT)); in FORTIFY_TEST()
267 EXPECT_FORTIFY_DEATH(open(target, O_TMPFILE)); in FORTIFY_TEST()
269 EXPECT_FORTIFY_DEATH(open64(target, O_CREAT)); in FORTIFY_TEST()
271 EXPECT_FORTIFY_DEATH(open64(target, O_TMPFILE)); in FORTIFY_TEST()
273 EXPECT_FORTIFY_DEATH(openat(dirfd, target, O_CREAT)); in FORTIFY_TEST()
275 EXPECT_FORTIFY_DEATH(openat(dirfd, target, O_TMPFILE)); in FORTIFY_TEST()
277 EXPECT_FORTIFY_DEATH(openat64(dirfd, target, O_CREAT)); in FORTIFY_TEST()
279 EXPECT_FORTIFY_DEATH(openat64(dirfd, target, O_TMPFILE)); in FORTIFY_TEST()
282 EXPECT_NO_DEATH(open(target, O_RDONLY, 0777)); in FORTIFY_TEST()
284 EXPECT_NO_DEATH(open64(target, O_RDONLY, 0777)); in FORTIFY_TEST()
286 EXPECT_NO_DEATH(openat(dirfd, target, O_RDONLY, 0777)); in FORTIFY_TEST()
288 EXPECT_NO_DEATH(openat64(dirfd, target, O_RDONLY, 0777)); in FORTIFY_TEST()