Home
last modified time | relevance | path

Searched refs:open (Results 1 – 25 of 701) sorted by relevance

12345678910>>...29

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/android/
H A Dcloexec-open.cpp20 open("filename", O_RDWR); in a()
23 TEMP_FAILURE_RETRY(open("filename", O_RDWR)); in a()
26 open("filename", O_RDWR | O_EXCL); in a()
65 open("filename", 3); in f()
68 TEMP_FAILURE_RETRY(open("filename", 3)); in f()
85 open("filename", flag); in f()
87 TEMP_FAILURE_RETRY(open("filename", flag)); in f()
105 open("filename", O_RDWR); in d()
122 open("filename", O_CLOEXEC); in e()
126 open("filename", O_RDWR | O_CLOEXEC); in e()
[all …]
/llvm-project-15.0.7/clang/test/Analysis/
H A Dunix-api.cpp11 int open(const char *, int, ...);
17 int open(const char *a, int b, int c, int d);
22 fd = open(path, O_RDONLY); // no-warning in unix_open()
30 …fd = open(path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'open' with more than 3 argume… in unix_open_misuse()
37 MyNameSpace::open("Hi", 2, 3, 4); // no-warning in namespaced_open()
41 open("Hi", 2, 3, 4); // no-warning in namespaced_open()
45 …fd = ::open(path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'open' with more than 3 argu… in namespaced_open()
52 static int open(const char *a, int b, int c, int d);
54 int open(int a, int, int c, int d);
58 MyClass::open("Hi", 2, 3, 4); // no-warning in class_qualified_open()
[all …]
H A Dunix-api.c11 int open(const char *, int, ...);
17 fd = open(path, O_RDONLY); // no-warning in open_1()
25 …fd = open(path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'open' with more than 3 argume… in open_2()
40 …fd = open(path, O_RDONLY, NULL); // expected-warning{{The 3rd argument to 'open' is not an integer… in open_3()
55 fd = open(path, O_RDONLY, ""); // expected-warning{{The 3rd argument to 'open' is not an integer}} in open_4()
65 fd = open(path, O_RDONLY, st); // expected-warning{{The 3rd argument to 'open' is not an integer}} in open_5()
75 fd = open(path, O_RDONLY, st.val); // no-warning in open_6()
82 …fd = open(path, O_RDONLY, &open); // expected-warning{{The 3rd argument to 'open' is not an intege… in open_7()
89 …fd = open(path, O_RDONLY, 0.0f); // expected-warning{{The 3rd argument to 'open' is not an integer… in open_8()
/llvm-project-15.0.7/lldb/test/API/python_api/file_handle/
H A DTestFileHandle.py122 with open(self.out_filename, 'w') as f:
131 with open(self.out_filename, 'r') as f:
136 with open(self.out_filename, 'w') as f:
139 with open(self.out_filename, 'r') as f:
143 with open(self.out_filename, 'w') as f:
149 with open(self.out_filename, 'r') as f:
156 with open(self.out_filename, 'w') as f:
159 with open(self.out_filename, 'r') as f:
164 with open(self.out_filename, 'w') as f:
309 with open(self.out_filename, 'w') as outf, open(self.in_filename, 'r') as inf:
[all …]
/llvm-project-15.0.7/lld/test/MachO/
H A Derror-limit.test9 DEFAULT: cannot open A:
10 DEFAULT: cannot open T:
11 DEFAULT-NOT: cannot open U:
18 LIMIT5: cannot open A:
19 LIMIT5: cannot open E:
20 LIMIT5-NOT: cannot open F:
27 UNLIMITED: cannot open A:
28 UNLIMITED: cannot open T:
29 UNLIMITED: cannot open U:
30 UNLIMITED: cannot open V:
[all …]
/llvm-project-15.0.7/lld/test/ELF/
H A Derror-limit.test4 DEFAULT: cannot open 01
5 DEFAULT: cannot open 20
7 DEFAULT-NOT: cannot open 21
14 LIMIT5: cannot open 01
15 LIMIT5: cannot open 05
17 LIMIT5-NOT: cannot open 06
22 UNLIMITED: cannot open 01
23 UNLIMITED: cannot open 20
24 UNLIMITED: cannot open 21
25 UNLIMITED: cannot open 22
H A Dinvalid-linkerscript.test12 ## Note that we are using "cannot open no-such-file: " as a marker that the
19 # ERR1: cannot open no-such-file:
24 # ERR2: cannot open no-such-file:
29 # ERR3: cannot open no-such-file:
34 # ERR4: cannot open no-such-file:
39 # ERR5: cannot open no-such-file:
44 # ERR6: cannot open no-such-file:
49 # ERR7: cannot open no-such-file:
55 # ERR8: cannot open no-such-file:
60 # ERR9: cannot open no-such-file:
/llvm-project-15.0.7/lld/test/COFF/
H A Derror-limit.test4 DEFAULT: could not open '01'
5 DEFAULT: could not open '20'
7 DEFAULT-NOT: could not open '21'
12 LIMIT5: could not open '01'
13 LIMIT5: could not open '05'
15 LIMIT5-NOT: could not open '06'
20 UNLIMITED: could not open '01'
21 UNLIMITED: could not open '20'
22 UNLIMITED: could not open '21'
23 UNLIMITED: could not open '22'
/llvm-project-15.0.7/flang/runtime/
H A Dio-api.cpp698 if (!open) { in IONAME()
733 if (!open) { in IONAME()
761 if (open->wasExtant()) { in IONAME()
801 if (!open) { in IONAME()
832 if (!open) { in IONAME()
856 if (!open) { in IONAME()
891 if (!open) { in IONAME()
919 if (!open) { in IONAME()
950 if (!open) { in IONAME()
1046 if (!open) { in IONAME()
[all …]
/llvm-project-15.0.7/llvm/utils/rsp_bisect_test/
H A Dtest.py42 with open(rsp, 'w') as f:
48 with open(rsp, 'w') as f:
54 with open(rsp, 'w') as f:
61 with open(rsp, 'w') as f:
68 with open(rsp, 'w') as f:
74 with open(rsp, 'w') as f:
80 with open(rsp, 'w') as f:
89 with open(rsp + '.0', 'r') as f:
93 with open(rsp + '.1', 'r') as f:
/llvm-project-15.0.7/mlir/include/mlir/Support/
H A DIndentedOstream.h31 explicit DelimitedScope(raw_indented_ostream &os, StringRef open = "",
33 : os(os), open(open), close(close), indent(indent) { in os()
34 os << open; in os()
47 StringRef open, close;
55 DelimitedScope scope(StringRef open = "", StringRef close = "",
57 return DelimitedScope(*this, open, close, indent);
/llvm-project-15.0.7/clang/tools/scan-view/share/
H A Dstartfile.py26 def open(self, filename): member in BaseController
72 def open(self, filename): member in Controller
90 def open(self, filename): member in Start
101 _open = _controllers['windows-default'].open
107 _open = _controllers['open'].open
192 return _controllers[controller_name].open
196 return _controllers['xdg-open'].open
198 return webbrowser.open
206 def open(filename): function
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/android/
H A Dcloexec-open.rst1 .. title:: clang-tidy - android-cloexec-open
3 android-cloexec-open
8 open across a fork+exec to a lower-privileged SELinux domain, leaking that
9 sensitive data. Open-like functions including ``open()``, ``openat()``, and
16 open("filename", O_RDWR);
22 open("filename", O_RDWR | O_CLOEXEC);
/llvm-project-15.0.7/lldb/test/API/lua_api/
H A DTestFileHandle.lua4 local f = io.open(self.output, 'w')
11 f = io.open(self.output, 'r')
17 local f = io.open(self.output, 'w')
22 f = io.open(self.output, 'r')
28 local f = io.open(self.output, 'w')
32 f = io.open(self.output, 'r')
/llvm-project-15.0.7/libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/
H A Doverflow.pass.cpp44 assert(f.open("overflow.dat", std::ios_base::out) != 0); in main()
56 assert(f.open("overflow.dat", std::ios_base::in) != 0); in main()
64 assert(f.open("overflow.dat", std::ios_base::out) != 0); in main()
76 assert(f.open("overflow.dat", std::ios_base::in) != 0); in main()
85 assert(f.open("overflow.dat", std::ios_base::out) != 0); in main()
97 assert(f.open("overflow.dat", std::ios_base::in) != 0); in main()
105 assert(f.open("overflow.dat", std::ios_base::out) != 0); in main()
117 assert(f.open("overflow.dat", std::ios_base::in) != 0); in main()
125 assert(f.open("overflow.dat", std::ios_base::out) != 0); in main()
132 assert(f.open("overflow.dat", std::ios_base::in) != 0); in main()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A Dadd_new_check.py29 with io.open(filename, 'r', encoding='utf8') as f:
40 with io.open(filename, 'w', encoding='utf8', newline='\n') as f:
59 with io.open(filename, 'w', encoding='utf8', newline='\n') as f:
112 with io.open(filename, 'w', encoding='utf8', newline='\n') as f:
171 with io.open(filename, 'r', encoding='utf8') as f:
230 with io.open(filename, 'r', encoding='utf8') as f:
321 with io.open(filename, 'r', encoding='utf8') as f:
340 with io.open(module_file, 'r') as f:
379 with io.open(header_file, encoding='utf8') as f:
411 with io.open(check_file, encoding='utf8') as f:
[all …]
H A Drename_check.py28 with io.open(fileName, 'r', encoding='utf8') as f:
33 with io.open(fileName, 'w', encoding='utf8') as f:
41 with io.open(fileName, 'r', encoding='utf8') as f:
49 with io.open(fileName, 'w', encoding='utf8') as f:
80 with io.open(fileName, 'r', encoding='utf8') as f:
89 with io.open(fileName, 'w', encoding='utf8') as f:
111 with io.open(filename, 'r', encoding='utf8') as f:
122 with io.open(filename, 'w', encoding='utf8') as f:
142 with io.open(filename, 'r', encoding='utf8') as f:
146 with io.open(filename, 'w', encoding='utf8') as f:
[all …]
/llvm-project-15.0.7/clang/tools/scan-build-py/tests/unit/
H A Dtest_report.py17 with open(file_name, 'w') as handle:
26 with open(file_name, 'w') as handle:
82 with open(filename, 'w') as handle:
364 with open(file_name, 'w') as handle:
370 with open(os.path.join(tmpdir, 'results-merged.sarif')) as f:
521 with open(file_name, 'w') as handle:
527 with open(os.path.join(tmpdir, 'results-merged.sarif')) as f:
628 with open(file_name, 'w') as handle:
634 with open(os.path.join(tmpdir, 'results-merged.sarif')) as f:
/llvm-project-15.0.7/libcxx/utils/libcxx/sym_check/
H A Dutil.py29 with open(filename, 'r') as f:
35 with open(filename, 'r') as f:
59 with open(out, 'w') as f:
76 with open(filename, 'rb') as f:
82 with open(filename, 'rb') as f:
94 with open(filename, 'rb') as f:
/llvm-project-15.0.7/libcxx/include/
H A Dfstream128 void open(const filesystem::path& p,
166 void open(const filesystem::path& s,
249 return open(__p.c_str(), __mode);
702 return open(__s.c_str(), __mode);
1190 void open(const filesystem::path& __p,
1192 return open(__p.c_str(), __mode);
1394 { return open(__p.c_str(), __mode); }
1597 { return open(__p.c_str(), __mode); }
1699 if (__sb_.open(__s, __mode))
1710 if (__sb_.open(__s, __mode))
[all …]
/llvm-project-15.0.7/lldb/test/API/python_api/interpreter/
H A DTestRunCommandInterpreterAPI.py17 with open(self.stdin_path, 'w') as input_handle:
23 self.filehandle = open(self.stdin_path, 'r')
27 self.devnull = open(os.devnull, 'w')
52 with open(self.stdin_path, 'w') as input_handle:
55 self.dbg.SetInputFile(open(self.stdin_path, 'r'))
58 devnull = open(os.devnull, 'w')
/llvm-project-15.0.7/lldb/test/API/commands/log/basic/
H A DTestLogging.py46 with open(self.log_file, 'r') as f:
58 with open(self.log_file, "w") as f:
67 with open(self.log_file, "r") as f:
76 with open(self.log_file, "w") as f:
84 with open(self.log_file, 'r') as f:
/llvm-project-15.0.7/lldb/test/API/lang/objc/modules-hash-mismatch/
H A DTestClangModulesHashMismatch.py16 with open(self.getBuildArtifact("module.modulemap"), "w") as f:
20 with open(self.getBuildArtifact("f.h"), "w") as f:
33 with open(logfile, 'w') as f:
42 with open(logfile, 'r') as f:
/llvm-project-15.0.7/lldb/third_party/Python/module/ptyprocess-0.6.0/ptyprocess/
H A D_fork_pty.py54 fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY)
65 fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY)
73 fd = os.open(child_name, os.O_RDWR)
77 fd = os.open("/dev/tty", os.O_WRONLY)
/llvm-project-15.0.7/libcxx/test/std/input.output/file.streams/fstreams/filebuf.members/
H A Dopen_path.pass.cpp32 assert(f.open(p, std::ios_base::out) != 0); in main()
38 assert(f.open(p, std::ios_base::in) != 0); in main()
49 assert(f.open(p, std::ios_base::out) != 0); in main()
55 assert(f.open(p, std::ios_base::in) != 0); in main()

12345678910>>...29