/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | write.c | 34 int fd = open(path, O_RDWR | O_RSYNC | O_CREAT, 0664); in write_0100() 44 fd = open(path, O_RDWR); in write_0100() 68 int fd = open(path, O_RDWR | O_RSYNC | O_CREAT, 0664); in write_0200() 92 int fd = open(path, O_RDWR | O_RSYNC | O_CREAT, 0664); in write_0300() 116 int fd = open(path, O_RDWR); in write_0400() 136 int fd = open(path, O_RDWR | O_RSYNC | O_CREAT, 0664); in write_0500()
|
/third_party/python/Lib/test/ |
H A D | test_sunau.py | 129 sunau.open(io.BytesIO(b)) 132 sunau.open(io.BytesIO(b)) 138 sunau.open(io.BytesIO(b)) 145 sunau.open(io.BytesIO(b)) 150 sunau.open(io.BytesIO(b)) 156 sunau.open(io.BytesIO(b))
|
H A D | test_winconsoleio.py | 30 # Windows 10: "Cannot open non-console file" 31 # Earlier: "Cannot open console output buffer for reading" 33 "Cannot open (console|non-console file)", ConIO, fd) 38 # cannot open console because it's not a real console 50 # cannot open console because it's not a real console 62 # cannot open console because it's not a real console 97 f = open('C:/con', 'rb', buffering=0) 104 f = open(r'\\.\conin$', 'rb', buffering=0) 108 f = open('//?/conout$', 'wb', buffering=0) 118 with open(conout_pat [all...] |
H A D | test_gettext.py | 123 with open(MOFILE, 'wb') as fp: 125 with open(MOFILE_BAD_MAJOR_VERSION, 'wb') as fp: 127 with open(MOFILE_BAD_MINOR_VERSION, 'wb') as fp: 129 with open(UMOFILE, 'wb') as fp: 131 with open(MMOFILE, 'wb') as fp: 205 with open(self.mofile, 'rb') as fp: 241 with open(MOFILE_BAD_MAJOR_VERSION, 'rb') as fp: 251 with open(MOFILE_BAD_MINOR_VERSION, 'rb') as fp: 335 with open(self.mofile, 'rb') as fp: 344 with open(sel [all...] |
/kernel/linux/linux-5.10/fs/nfsd/ |
H A D | nfs4proc.c | 69 * XXX: We should really fail the whole open, but we may in nfsd4_security_inode_setsecctx() 121 struct nfsd4_compound_state *cstate, struct nfsd4_open *open) in nfsd4_check_open_attributes() 125 if (open->op_create == NFS4_OPEN_CREATE) { in nfsd4_check_open_attributes() 126 if (open->op_createmode == NFS4_CREATE_UNCHECKED in nfsd4_check_open_attributes() 127 || open->op_createmode == NFS4_CREATE_GUARDED) in nfsd4_check_open_attributes() 129 open->op_bmval, nfsd_attrmask); in nfsd4_check_open_attributes() 130 else if (open->op_createmode == NFS4_CREATE_EXCLUSIVE4_1) in nfsd4_check_open_attributes() 132 open->op_bmval, nfsd41_ex_attrmask); in nfsd4_check_open_attributes() 139 is_create_with_attrs(struct nfsd4_open *open) in is_create_with_attrs() argument 141 return open in is_create_with_attrs() 120 nfsd4_check_open_attributes(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open) nfsd4_check_open_attributes() argument 178 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int accmode) do_open_permission() argument 218 nfsd4_set_open_owner_reply_cache(struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh *resfh) nfsd4_set_open_owner_reply_cache() argument 227 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) do_open_lookup() argument 308 do_open_fhandle(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open) do_open_fhandle() argument 355 struct nfsd4_open *open = &u->open; nfsd4_open() local 482 struct nfsd4_open *open = &op->u.open; nfsd4_open_omfg() local [all...] |
/third_party/ltp/testcases/kernel/io/direct_io/ |
H A D | diotest3.c | 146 * child_function: open the file for read and write. Call the runtest routine. 154 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) { in child_function() 156 "open(%s, O_WRONLY|O_CREAT, ..) failed", in child_function() 160 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) { in child_function() 162 "open(%s, O_DIRECT|O_RDONLY, ..) failed", in child_function() 177 open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in child_function() 178 tst_resm(TFAIL, "fd_w open failed for %s: %s", filename, in child_function() 182 if ((fd_r = open(filename, O_RDONLY, 0666)) < 0) { in child_function() 183 tst_resm(TFAIL, "fd_r open failed for %s: %s", in child_function() 198 open(filenam in child_function() [all...] |
H A D | diotest2.c | 182 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) in main() 184 "open(%s, O_WRONLY..) failed", filename); in main() 185 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) in main() 187 "open(%s, O_DIRECT|O_RDONLY..) failed", filename); in main() 201 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main() 203 "open(%s, O_DIRECT|O_WRONLY..) failed", filename); in main() 204 if ((fd_r = open(filename, O_RDONLY | O_CREAT, 0666)) == -1) in main() 206 "open(%s, O_RDONLY..) failed", filename); in main() 220 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main() 222 "open( in main() [all...] |
H A D | diotest5.c | 217 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) { in main() 218 tst_brkm(TBROK, cleanup, "fd_w open failed for %s: %s", in main() 221 if ((fd_r = open(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) < 0) { in main() 222 tst_brkm(TBROK, cleanup, "fd_r open failed for %s: %s", in main() 239 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in main() 240 tst_brkm(TBROK, cleanup, "fd_w open failed for %s: %s", in main() 243 if ((fd_r = open(filename, O_RDONLY | O_CREAT, 0666)) < 0) { in main() 244 tst_brkm(TBROK, cleanup, "fd_r open failed for %s: %s", in main() 260 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in main() 261 tst_brkm(TBROK, cleanup, "fd_w open faile in main() [all...] |
/third_party/zlib/contrib/iostream2/ |
H A D | zstream.h | 55 izstream(FILE* fp) : m_fp(0) { open(fp); } in izstream() 56 izstream(const char* name) : m_fp(0) { open(name); } in izstream() 60 * open() can be used to read a file which is not in gzip format; 65 void open(const char* name) { in open() function in izstream 70 void open(FILE* fp) { in open() function in izstream 162 open(fp, level); in ozstream() 166 open(name, level); in ozstream() 177 void open(const char* name, int level = Z_DEFAULT_COMPRESSION) { in open() function in ozstream 184 /* open from a FILE pointer. 186 void open(FIL function in ozstream [all...] |
/foundation/multimedia/av_codec/test/moduletest/demuxer/src/ |
H A D | func_test.cpp | 201 int fd = open(file, O_RDONLY); in HWTEST_F() 220 int fd = open(file, O_RDONLY); in HWTEST_F() 240 int fd = open(file, O_RDONLY); in HWTEST_F() 291 int fd = open(file, O_RDONLY); in HWTEST_F() 350 int fd = open(file, O_RDONLY); in HWTEST_F() 408 int fd = open(file, O_RDONLY); in HWTEST_F() 466 int fd = open(file, O_RDONLY); in HWTEST_F() 517 int fd = open(file, O_RDONLY); in HWTEST_F() 566 int fd = open(file, O_RDONLY); in HWTEST_F() 615 int fd = open(fil in HWTEST_F() [all...] |
/foundation/arkui/ui_lite/test/autotest/src/ |
H A D | compare_tools.cpp | 164 uint32_t fdBase = open(fileBasePath, O_RDONLY | O_BINARY); in CompareFile() 165 uint32_t fdRun = open(fileRunPath, O_RDONLY | O_BINARY); in CompareFile() 167 uint32_t fdBase = open(fileBasePath, O_RDONLY); in CompareFile() 168 uint32_t fdRun = open(fileRunPath, O_RDONLY); in CompareFile() 209 uint32_t fd = open(filePath, O_RDONLY | O_BINARY); in CompareFile() 211 uint32_t fd = open(filePath, O_RDONLY); in CompareFile() 284 uint32_t fd = open(filePath, O_WRONLY | O_CREAT | O_BINARY, DEFAULT_FILE_PERMISSION); in SaveFile() 286 uint32_t fd = open(filePath, O_WRONLY | O_CREAT, DEFAULT_FILE_PERMISSION); in SaveFile() 301 uint32_t fd = open(filePath, O_RDONLY); in CheckFileExist() 344 uint32_t logFd = open(useLogPat in SaveLog() [all...] |
/third_party/PyYAML/tests/lib/ |
H A D | test_structure.py | 37 with open(structure_filename, 'r') as file: 40 with open(data_filename, 'rb') as file: 78 with open(data_filename, 'rb') as file: 80 with open(canonical_filename, 'rb') as file: 96 with open(canonical_filename, 'rb') as file: 98 with open(canonical_filename, 'rb') as file: 128 with open(data_filename, 'rb') as file: 130 with open(canonical_filename, 'rb') as file: 182 with open(data_filename, 'rb') as file: 184 with open(canonical_filenam [all...] |
/third_party/musl/Benchmark/musl/ |
H A D | libc_fcntl.cpp | 31 int fd = open("/etc/passwd", O_RDONLY, OPEN_MODE); in Bm_function_Fcntl_getfl() 33 perror("open fcntl_getfl"); in Bm_function_Fcntl_getfl() 72 int fd = open("/dev/zero", O_RDWR, OPEN_MODE); in Bm_function_Fcntl_setlkw() 74 perror("open fcntl_setlkw"); in Bm_function_Fcntl_setlkw() 100 int fd = open("/etc/passwd", O_RDONLY, OPEN_MODE); in Bm_function_Fcntl_dupfd() 102 perror("open fcntl_dupfd"); in Bm_function_Fcntl_dupfd() 120 int fd = open("/dev/zero", O_RDWR, OPEN_MODE); in Bm_function_Fcntl_setlk() 122 perror("open fcntl_setlk"); in Bm_function_Fcntl_setlk() 148 int fd = open("/dev/zero", O_RDWR, OPEN_MODE); in Bm_function_Fcntl_getlk() 150 perror("open fcntl_getl in Bm_function_Fcntl_getlk() [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/restricted_traces/ |
H A D | gen_restricted_traces.py | 192 with open(txt_file) as f: 198 with open(json_file_name) as f: 222 with open(gni_file, "w") as out_file: 231 with open(os.path.join(trace, file)) as f: 321 with open(header_file, "w") as out_file: 328 with open(source_file, "w") as out_file: 335 with open('.gitignore', 'w') as out_file: 341 with open(json_file) as map_file: 359 with open(DEPS_PATH) as f: 375 with open(DEPS_PAT [all...] |
/third_party/NuttX/fs/driver/ |
H A D | fs_openblockdriver.c | 117 if (ops->open != NULL) in open_blockdriver() 119 ret = ops->open(vnode_ptr); in open_blockdriver() 122 PRINT_DEBUG("%s driver open failed\n", pathname); in open_blockdriver() 138 if (ops->open != NULL) in open_blockdriver() 140 ret = ops->open(vnode_ptr); in open_blockdriver() 143 PRINT_DEBUG("%s driver open failed\n", pathname); in open_blockdriver()
|
/third_party/python/Tools/scripts/ |
H A D | fixnotice.py | 76 with open(arg) as fp: 79 with open(arg) as fp: 87 with open(file) as f: 102 with open(new, "w") as f:
|
/third_party/protobuf/conformance/ |
H A D | update_failure_list.py | 51 with open(add_file) as f: 56 with open(remove_file) as f: 64 with open(args.filename) as in_file: 67 with open(args.filename, "w") as f:
|
/third_party/musl/libc-test/src/functionalext/relro/ |
H A D | dlopen_ext_relro_test.c | 161 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_0400() 163 t_error("%s relro file %s open failed error is : %s \n", __FUNCTION__, relro_file, dlerror()); in dlopen_ext_relro_0400() 203 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_0600() 205 t_error("%s relro file %s open failed error is : %s \n", __FUNCTION__, relro_file, dlerror()); in dlopen_ext_relro_0600() 230 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_0700() 232 t_error("%s relro file %s open failed error is : %s \n", __FUNCTION__, relro_file, dlerror()); in dlopen_ext_relro_0700() 258 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_0800() 260 t_error("%s relro file %s open failed error is : %s \n", __FUNCTION__, relro_file, dlerror()); in dlopen_ext_relro_0800() 301 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_1000() 303 t_error("%s relro file %s open faile in dlopen_ext_relro_1000() [all...] |
/foundation/multimedia/av_codec/test/unittest/avmuxer_test/ |
H A D | avmuxer_unit_test.cpp | 165 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); in HWTEST_F() 179 fd_ = open(outputFile.c_str(), O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR); in HWTEST_F() 193 fd_ = open(outputFile.c_str(), O_CREAT | O_RDONLY, S_IRUSR | S_IWUSR); in HWTEST_F() 233 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); in HWTEST_F() 274 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR); in HWTEST_F() 316 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR); in HWTEST_F() 359 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR); in HWTEST_F() 406 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR); in HWTEST_F() 449 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR); in HWTEST_F() 472 fd_ = open(outputFil in HWTEST_F() [all...] |
/third_party/libevdev/test/ |
H A D | test-uinput.c | 45 fd = open(devnode, O_RDONLY); in START_TEST() 114 fd = open(UINPUT_NODE, O_RDWR); in START_TEST() 126 fd2 = open(devnode, O_RDONLY); in START_TEST() 167 fd = open(UINPUT_NODE, O_RDWR); in START_TEST() 169 fd2 = open(UINPUT_NODE, O_RDWR); in START_TEST() 217 fd = open(UINPUT_NODE, O_RDWR); in START_TEST() 253 fd = open(UINPUT_NODE, O_RDWR); 255 fd2 = open(UINPUT_NODE, O_RDWR); 309 fd = open(UINPUT_NODE, O_RDWR); 311 fd2 = open(UINPUT_NOD [all...] |
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_filesystem/ |
H A D | b_file_test.cpp | 70 unique_ptr<char[]> result = bf.ReadFile(UniqueFd(open(filePath.data(), O_RDWR)));
in HWTEST_F() 97 BFile::SendFile(UniqueFd(open(fileOutPath.data(), O_RDWR)),
in HWTEST_F() 98 UniqueFd(open(filePath.data(), O_RDWR | O_CREAT, S_IRWXU)));
in HWTEST_F() 99 string contentTmp = BFile::ReadFile(UniqueFd(open(fileOutPath.c_str(), O_RDONLY))).get();
in HWTEST_F() 183 BFile::Write(UniqueFd(open(filePath.data(), O_RDWR)), fileInPath);
in HWTEST_F() 184 string contentTmp = BFile::ReadFile(UniqueFd(open(fileInPath.c_str(), O_RDONLY))).get();
in HWTEST_F()
|
/third_party/libxml2/ |
H A D | generate_header.py | 30 with os.fdopen(os.open(config_json_path, os.O_RDONLY, 0o755), 'r') as file: 34 with os.fdopen(os.open(file_path, os.O_RDONLY, 0o755), 'r') as file: 67 with os.fdopen(os.open(file_path, os.O_WRONLY | os.O_CREAT, 0o755), 'w') as file: 76 with os.fdopen(os.open(xmlversion_json_path, os.O_RDONLY, 0o755), 'r') as file: 80 with os.fdopen(os.open(file_path, os.O_RDONLY, 0o755), 'r') as file: 101 with os.fdopen(os.open(file_path, os.O_WRONLY | os.O_CREAT, 0o755), 'w') as file:
|
/third_party/node/deps/v8/third_party/inspector_protocol/ |
H A D | roll.py | 115 open(path1).read() == open(path2).read()) 171 contents = open(os.path.join(src_dir, f)).read() 179 open(os.path.join(dest_dir, f), 'w').write(contents) 184 lines = open(os.path.join(dest_dir, 'README.v8')).readlines() 185 f = open(os.path.join(dest_dir, 'README.v8'), 'w')
|
/third_party/node/tools/inspector_protocol/ |
H A D | roll.py | 83 open(path1).read() == open(path2).read()) 139 contents = open(os.path.join(src_dir, f)).read() 146 open(os.path.join(dest_dir, f), 'w').write(contents) 151 lines = open(os.path.join(dest_dir, 'README.v8')).readlines() 152 f = open(os.path.join(dest_dir, 'README.v8'), 'w')
|
/third_party/node/deps/npm/node_modules/chalk/source/ |
H A D | index.js | 59 const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]); 132 const createStyler = (open, close, parent) => { 136 openAll = open; 139 openAll = parent.openAll + open; 144 open, 185 string = stringReplaceAll(string, styler.close, styler.open);
|