Home
last modified time | relevance | path

Searched refs:O_TMPFILE (Results 1 – 9 of 9) sorted by relevance

/bionic/libc/bionic/
Dopen.cpp48 return ((flags & O_CREAT) == O_CREAT) || ((flags & O_TMPFILE) == O_TMPFILE); in needs_mode()
Dtmpfile.cpp94 int fd = open(tmpdir, O_TMPFILE | O_RDWR, S_IRUSR | S_IWUSR); in tmpfile()
/bionic/libc/include/bits/fortify/
Dfcntl.h46 #define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE)
/bionic/tests/
Dclang_fortify_tests.cpp267 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()
Dfcntl_test.cpp327 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()
Dfortify_test.cpp1029 int flags = O_TMPFILE; // Fool the compiler. in TEST_F()
Ddlext_test.cpp923 open(GetTestLibRoot().c_str(), O_TMPFILE | O_CLOEXEC | O_RDWR | O_EXCL, 0)); in TEST()
/bionic/libc/kernel/uapi/asm-generic/
Dfcntl.h68 #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY) macro
/bionic/docs/
Dclang_fortify_anatomy.md415 #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");