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

/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dflags.c61 o = O_CREAT | O_TRUNC;
67 o = O_CREAT | O_APPEND;
87 if (o & O_CREAT)
H A Dmktemp.c72 flags |= O_CREAT | O_EXCL | O_RDWR;
/bionic/libc/bionic/
H A Dopen.cpp47 return open(pathname, O_CREAT | O_TRUNC | O_WRONLY, mode);
54 if ((flags & O_CREAT) != 0) {
66 if (__predict_false((flags & O_CREAT) != 0)) {
67 __fortify_fatal("open(O_CREAT): called without specifying a mode");
76 if ((flags & O_CREAT) != 0) {
88 if ((flags & O_CREAT) != 0) {
89 __fortify_fatal("openat(O_CREAT): called without specifying a mode");
H A Dsystem_properties.cpp216 const int fd = open(filename, O_RDWR | O_CREAT | O_NOFOLLOW | O_CLOEXEC | O_EXCL, 0444);
/bionic/libc/kernel/uapi/asm-generic/
H A Dfcntl.h27 #ifndef O_CREAT
29 #define O_CREAT 00000100 macro
94 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
/bionic/libc/versioner-dependencies/common/kernel_uapi/asm-generic/
H A Dfcntl.h27 #ifndef O_CREAT
29 #define O_CREAT 00000100 macro
94 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
/bionic/libc/include/
H A Dfcntl.h108 #define __open_too_few_args_error "called with O_CREAT, but missing mode"
118 __enable_if(flags & O_CREAT, __open_too_few_args_error)
141 __enable_if(flags & O_CREAT, __open_too_few_args_error)
170 if ((flags & O_CREAT) && __builtin_va_arg_pack_len() == 0) {
189 if ((flags & O_CREAT) && __builtin_va_arg_pack_len() == 0) {
/bionic/libc/kernel/uapi/asm-mips/asm/
H A Dfcntl.h26 #define O_CREAT 0x0100 macro
/bionic/libc/versioner-dependencies/common/kernel_uapi/asm-mips/asm/
H A Dfcntl.h26 #define O_CREAT 0x0100 macro
/bionic/libc/versioner-dependencies/mips/kernel_uapi_asm-mips/asm/
H A Dfcntl.h26 #define O_CREAT 0x0100 macro
/bionic/libc/versioner-dependencies/mips64/kernel_uapi_asm-mips/asm/
H A Dfcntl.h26 #define O_CREAT 0x0100 macro
/bionic/tools/versioner/current/
H A Dfcntl.h108 #define __open_too_few_args_error "called with O_CREAT, but missing mode"
118 __enable_if(flags & O_CREAT, __open_too_few_args_error)
141 __enable_if(flags & O_CREAT, __open_too_few_args_error)
170 if ((flags & O_CREAT) && __builtin_va_arg_pack_len() == 0) {
189 if ((flags & O_CREAT) && __builtin_va_arg_pack_len() == 0) {
/bionic/tests/
H A Dfortify_compilation_test.cpp208 // GCC: error: call to '__creat_missing_mode' declared with attribute error: called with O_CREAT, but missing mode
209 // CLANG: error: call to unavailable function 'open': called with O_CREAT, but missing mode
210 open("/dev/null", O_CREAT);
215 open("/dev/null", O_CREAT, 0, 0);
H A Dftw_test.cpp48 ASSERT_NE(-1, fd = open(path, O_CREAT|O_TRUNC, 0666));
/bionic/libc/malloc_debug/
H A DRecordData.cpp144 int dump_fd = open(dump_file_.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW,

Completed in 278 milliseconds