Searched refs:O_CREAT (Results 1 – 16 of 16) sorted by relevance
/bionic/tools/versioner/tests/fortify_inline/headers/ |
D | fcntl.h | 7 #define O_CREAT 00000100 macro 15 __attribute__((enable_if(!(flags & O_CREAT), ""))) { in open() 23 __attribute__((enable_if(flags & O_CREAT, ""))) { in open()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | flags.c | 61 o = O_CREAT | O_TRUNC; in __sflags() 67 o = O_CREAT | O_APPEND; in __sflags() 87 if (o & O_CREAT) in __sflags()
|
D | mktemp.c | 72 flags |= O_CREAT | O_EXCL | O_RDWR; in mktemp_internal()
|
/bionic/libc/bionic/ |
D | open.cpp | 48 return ((flags & O_CREAT) == O_CREAT) || ((flags & O_TMPFILE) == O_TMPFILE); in needs_mode() 52 return open(pathname, O_CREAT | O_TRUNC | O_WRONLY, mode); in creat()
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | fcntl.h | 16 #ifndef O_CREAT 17 #define O_CREAT 00000100 macro
|
/bionic/tests/ |
D | clang_fortify_tests.cpp | 265 EXPECT_FORTIFY_DEATH(open(target, O_CREAT)); in FORTIFY_TEST() 269 EXPECT_FORTIFY_DEATH(open64(target, O_CREAT)); in FORTIFY_TEST() 273 EXPECT_FORTIFY_DEATH(openat(dirfd, target, O_CREAT)); in FORTIFY_TEST() 277 EXPECT_FORTIFY_DEATH(openat64(dirfd, target, O_CREAT)); in FORTIFY_TEST()
|
D | ftw_test.cpp | 50 ASSERT_NE(-1, fd = open(path, O_CREAT|O_TRUNC, 0666)); in MakeTree()
|
D | stdlib_test.cpp | 394 O_CREAT | O_TRUNC | O_WRONLY, 0644)); in TEST()
|
D | fortify_test.cpp | 1024 int flags = O_CREAT; // Fool the compiler. in TEST_F()
|
/bionic/tests/headers/posix/ |
D | fcntl_h.c | 57 MACRO(O_CREAT); in fcntl_h()
|
/bionic/libc/include/bits/fortify/ |
D | fcntl.h | 46 #define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE)
|
/bionic/libc/malloc_debug/ |
D | RecordData.cpp | 142 open(dump_file_.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, 0755); in WriteEntries()
|
D | malloc_debug.cpp | 1164 int fd = open(file_name, O_RDWR | O_CREAT | O_NOFOLLOW | O_TRUNC | O_CLOEXEC, 0644); in debug_dump_heap()
|
/bionic/docs/ |
D | clang_fortify_anatomy.md | 30 - Missing arguments to functions (e.g., `open()` with `O_CREAT`, but no mode 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"))) { 444 "'open' has superfluous mode bits; missing O_CREAT?") { 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"); 539 "'open' has superfluous mode bits; missing O_CREAT?") {
|
D | status.md | 401 detect, for example, passing `O_CREAT` to open(2) without specifying a mode. It
|
/bionic/libc/system_properties/ |
D | prop_area.cpp | 60 const int fd = open(filename, O_RDWR | O_CREAT | O_NOFOLLOW | O_CLOEXEC | O_EXCL, 0444); in map_prop_area_rw()
|