Home
last modified time | relevance | path

Searched refs:O_CREAT (Results 1 – 15 of 15) sorted by relevance

/bionic/tools/versioner/tests/fortify_inline/headers/
Dfcntl.h7 #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/
Dflags.c61 o = O_CREAT | O_TRUNC; in __sflags()
67 o = O_CREAT | O_APPEND; in __sflags()
87 if (o & O_CREAT) in __sflags()
Dmktemp.c72 flags |= O_CREAT | O_EXCL | O_RDWR; in mktemp_internal()
/bionic/libc/bionic/
Dopen.cpp48 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/
Dfcntl.h28 #ifndef O_CREAT
29 #define O_CREAT 00000100 macro
81 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
/bionic/tests/
Dclang_fortify_tests.cpp291 EXPECT_FORTIFY_DEATH(open(target, O_CREAT)); in FORTIFY_TEST()
295 EXPECT_FORTIFY_DEATH(open64(target, O_CREAT)); in FORTIFY_TEST()
299 EXPECT_FORTIFY_DEATH(openat(dirfd, target, O_CREAT)); in FORTIFY_TEST()
303 EXPECT_FORTIFY_DEATH(openat64(dirfd, target, O_CREAT)); in FORTIFY_TEST()
Dftw_test.cpp48 ASSERT_NE(-1, fd = open(path, O_CREAT|O_TRUNC, 0666)); in MakeTree()
Dstdlib_test.cpp392 O_CREAT | O_TRUNC | O_WRONLY, 0644)); in TEST()
Dfortify_test.cpp1021 int flags = O_CREAT; // Fool the compiler. in TEST_F()
/bionic/tests/headers/posix/
Dfcntl_h.c57 MACRO(O_CREAT); in fcntl_h()
/bionic/libc/include/bits/fortify/
Dfcntl.h46 #define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE)
/bionic/libc/malloc_debug/
DRecordData.cpp138 open(dump_file_.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, 0755); in Dump()
Dmalloc_debug.cpp1006 int fd = open(file_name, O_RDWR | O_CREAT | O_NOFOLLOW | O_TRUNC | O_CLOEXEC, 0644); in debug_dump_heap()
/bionic/libc/system_properties/
Dprop_area.cpp56 const int fd = open(filename, O_RDWR | O_CREAT | O_NOFOLLOW | O_CLOEXEC | O_EXCL, 0444); in map_prop_area_rw()
/bionic/docs/
Dstatus.md336 cover other issues. It can now detect, for example, passing `O_CREAT`