Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/compiler-rt/test/tsan/libdispatch/
H A Dio-cleanup.c19 dispatch_fd_t fd = open(path, O_CREAT | O_WRONLY, 0666); in main()
31 …channel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_WRONLY, 0666, queue, … in main()
41 …dispatch_io_t other_channel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_W… in main()
H A Dio.c17 …dispatch_io_t channel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_WRONLY,… in test_dispatch_io_write()
39 dispatch_fd_t fd = open(path, O_CREAT | O_WRONLY, 0666); in test_dispatch_write()
H A Dio-barrier.c25 …dispatch_io_t channel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_WRONLY,… in main()
H A Dio-barrier-race.c26 …dispatch_io_t channel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_WRONLY,… in main()
H A Dio-race.c26 …dispatch_io_t channel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_WRONLY,… in main()
H A Dfd.c18 dispatch_io_t channel = dispatch_io_create_with_path(DISPATCH_IO_STREAM, path, O_CREAT | O_WRONLY, in main()
/llvm-project-15.0.7/clang/test/Sema/
H A Denable_if.c4 #define O_CREAT 0x100 macro
10 int open(const char *pathname, int flags) __attribute__((enable_if(!(flags & O_CREAT), "must specif…
15 open("path", O_CREAT); // expected-error{{no matching function for call to 'open'}} in test1()
17 open("path", O_CREAT, 0660); in test1()
/llvm-project-15.0.7/libc/src/fcntl/linux/
H A Dcreat.cpp22 int fd = __llvm_libc::syscall(SYS_open, path, O_CREAT | O_WRONLY | O_TRUNC,
26 O_CREAT | O_WRONLY | O_TRUNC, mode_flags);
H A Dopenat.cpp25 if ((flags & O_CREAT) || (flags & O_TMPFILE) == O_TMPFILE) {
H A Dopen.cpp25 if ((flags & O_CREAT) || (flags & O_TMPFILE) == O_TMPFILE) {
/llvm-project-15.0.7/clang/test/Analysis/
H A Dunix-fns.c73 #ifndef O_CREAT
74 #define O_CREAT 0x0200 macro
87 …fd = open(path, O_CREAT); // expected-warning{{Call to 'open' requires a 3rd argument when the 'O_… in test_open()
98 …fd = openat(directory_fd, relative_path, O_CREAT); // expected-warning{{Call to 'openat' requires … in test_open_at()
/llvm-project-15.0.7/lldb/source/Host/common/
H A DFileAction.cpp38 m_arg = O_NOCTTY | O_CREAT | O_RDWR; in Open()
42 m_arg = O_NOCTTY | O_CREAT | O_WRONLY; in Open()
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/
H A Dsem_open.cpp16 sem_t *s = sem_open(name, O_CREAT, 0644, 123); in main()
H A Dsanitizer_set_report_fd_test.cpp28 int fd = open(argv[1], O_CREAT | O_WRONLY | O_TRUNC, S_IRWXU); in main()
/llvm-project-15.0.7/clang/docs/analyzer/checkers/
H A Dunix_api_example.c4 int fd = open(path, O_CREAT); in test()
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/
H A Donprint.cpp29 f = open(argv[1], O_CREAT | O_TRUNC | O_WRONLY, 0666); in main()
/llvm-project-15.0.7/compiler-rt/test/tsan/Darwin/
H A Dvariadic-open.cpp12 int fd = open(argv[1], O_RDWR | O_CREAT, 0600); in main()
/llvm-project-15.0.7/libc/src/__support/File/
H A Dlinux_file.cpp124 open_flags = O_CREAT | O_APPEND; in openfile()
130 open_flags = O_CREAT | O_TRUNC; in openfile()
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/
H A Dasan-sigbus.cpp23 int fd = open((std::string(argv[0]) + ".m").c_str(), O_RDWR | O_CREAT, 0700); in main()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/android/
H A Dcloexec-creat.rst16 int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, mode);
/llvm-project-15.0.7/libc/include/llvm-libc-macros/linux/
H A Dfcntl-macros.h14 #define O_CREAT 00000100 macro
/llvm-project-15.0.7/libc/test/src/unistd/
H A Dunlink_test.cpp21 int write_fd = __llvm_libc::open(TEST_FILE, O_WRONLY | O_CREAT, S_IRWXU); in TEST()
H A Dunlinkat_test.cpp27 __llvm_libc::openat(dir_fd, TEST_FILE, O_WRONLY | O_CREAT, S_IRWXU); in TEST()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix.cpp162 case WrOnly: flags = O_WRONLY | O_CREAT | O_TRUNC; break; in OpenFile()
163 case RdWr: flags = O_RDWR | O_CREAT; break; in OpenFile()
360 internal_open(shmname, O_RDWR | O_CREAT | O_TRUNC | o_cloexec, S_IRWXU)); in GetNamedMappingFd()
/llvm-project-15.0.7/compiler-rt/lib/profile/
H A DInstrProfilingUtil.c210 fd = open(ProfileName, O_RDWR | O_CREAT, 0666); in lprofOpenFileEx()
246 fd = open(ProfileName, O_RDWR | O_CREAT, 0666); in lprofOpenFileEx()

12