Searched refs:O_TMPFILE (Results 1 – 9 of 9) sorted by relevance
/bionic/libc/bionic/ |
D | open.cpp | 48 return ((flags & O_CREAT) == O_CREAT) || ((flags & O_TMPFILE) == O_TMPFILE); in needs_mode()
|
D | tmpfile.cpp | 94 int fd = open(tmpdir, O_TMPFILE | O_RDWR, S_IRUSR | S_IWUSR); in tmpfile()
|
/bionic/libc/include/bits/fortify/ |
D | fcntl.h | 46 #define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE)
|
/bionic/tests/ |
D | clang_fortify_tests.cpp | 267 EXPECT_FORTIFY_DEATH(open(target, O_TMPFILE)); in FORTIFY_TEST() 271 EXPECT_FORTIFY_DEATH(open64(target, O_TMPFILE)); in FORTIFY_TEST() 275 EXPECT_FORTIFY_DEATH(openat(dirfd, target, O_TMPFILE)); in FORTIFY_TEST() 279 EXPECT_FORTIFY_DEATH(openat64(dirfd, target, O_TMPFILE)); in FORTIFY_TEST()
|
D | fcntl_test.cpp | 327 int fd = open(dir.path, O_TMPFILE | O_RDWR, perms); in TEST() 353 fd = open(dir.path, O_TMPFILE | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); in TEST()
|
D | fortify_test.cpp | 1029 int flags = O_TMPFILE; // Fool the compiler. in TEST_F()
|
D | dlext_test.cpp | 923 open(GetTestLibRoot().c_str(), O_TMPFILE | O_CLOEXEC | O_RDWR | O_EXCL, 0)); in TEST()
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | fcntl.h | 68 #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY) macro
|
/bionic/docs/ |
D | clang_fortify_anatomy.md | 415 #define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE) 430 "'open' called with O_CREAT or O_TMPFILE, but missing mode"))) { 505 "'open' called with O_CREAT or O_TMPFILE, but missing mode"))) { 523 if (needs_mode(flags)) __fortify_fatal("open: called with O_CREAT/O_TMPFILE but no mode");
|