Home
last modified time | relevance | path

Searched refs:file2 (Results 1 - 25 of 58) sorted by relevance

123

/third_party/ltp/testcases/kernel/syscalls/open/
H A Dopen07.c162 char file1[100], file2[100]; in setupfunc_test1() local
165 sprintf(file2, "open03.2.%d", getpid()); in setupfunc_test1()
168 SAFE_SYMLINK(cleanup, file1, file2); in setupfunc_test1()
170 strcpy(TC[0].filename, file2); in setupfunc_test1()
175 char file1[100], file2[100]; in setupfunc_test2() local
178 sprintf(file2, "open03.4.%d", getpid()); in setupfunc_test2()
181 SAFE_SYMLINK(cleanup, file1, file2); in setupfunc_test2()
183 strcpy(TC[1].filename, file2); in setupfunc_test2()
188 char file1[100], file2[100], file3[100]; in setupfunc_test3() local
191 sprintf(file2, "open0 in setupfunc_test3()
204 char file1[100], file2[100], file3[100]; setupfunc_test4() local
220 char file1[100], file2[100]; setupfunc_test5() local
[all...]
/third_party/gn/src/base/files/
H A Dfile_util.cc51 std::ifstream file2(filename2.As8Bit().c_str(), in ContentsEqual()
56 if (!file1.is_open() || !file2.is_open()) in ContentsEqual()
63 file2.read(buffer2, BUFFER_SIZE); in ContentsEqual()
65 if ((file1.eof() != file2.eof()) || (file1.gcount() != file2.gcount()) || in ContentsEqual()
68 file2.close(); in ContentsEqual()
71 } while (!file1.eof() || !file2.eof()); in ContentsEqual()
74 file2.close(); in ContentsEqual()
80 std::ifstream file2(filename2.As8Bit().c_str(), std::ios::in); in TextContentsEqual()
84 if (!file1.is_open() || !file2 in TextContentsEqual()
[all...]
/third_party/ltp/testcases/commands/ar/
H A Dar01.sh26 ROD $AR -ra"$MOD" file1.in lib.a $TST_DATAROOT/file2.in
43 ROD $AR -cr"$MOD" lib.a $TST_DATAROOT/file1.in $TST_DATAROOT/file2.in \
63 ROD $AR -rb"$MOD" file3.in lib.a $TST_DATAROOT/file2.in
81 $TST_DATAROOT/file2.in
82 ROD $AR -mb"$MOD" file3.in lib.a file2.in
127 ROD $AR -cr"$MOD" lib.a $TST_DATAROOT/file1.in $TST_DATAROOT/file2.in \
129 ROD $AR -d"$MOD" lib.a file1.in file2.in
146 ROD $AR -cr"$MOD" lib.a $TST_DATAROOT/file1.in $TST_DATAROOT/file2.in \
166 ROD $AR -ri"$MOD" file3.in lib.a $TST_DATAROOT/file2.in
184 $TST_DATAROOT/file2
[all...]
/third_party/PyYAML/tests/lib/
H A Dtest_yaml_ext.py157 with open(data_filename, 'rb') as file1, open(data_filename, 'rb') as file2:
158 _compare_scanners(file1, file2, verbose)
159 with open(data_filename, 'rb') as file1, open(data_filename, 'rb') as file2:
160 _compare_scanners(file1.read(), file2.read(), verbose)
161 with open(canonical_filename, 'rb') as file1, open(canonical_filename, 'rb') as file2:
162 _compare_scanners(file1, file2, verbose)
163 with open(canonical_filename, 'rb') as file1, open(canonical_filename, 'rb') as file2:
164 _compare_scanners(file1.read(), file2.read(), verbose)
190 with open(data_filename, 'rb') as file1, open(data_filename, 'rb') as file2:
191 _compare_parsers(file1, file2, verbos
[all...]
/third_party/typescript/tests/baselines/reference/tscWatch/incremental/own-file-emit-without-errors/
H A Dwith-commandline-parameters-that-are-not-relative-incremental.js18 //// [/users/username/projects/project/file2.ts]
29 Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"]
35 /users/username/projects/project/file2.ts
40 /users/username/projects/project/file2.ts
45 /users/username/projects/project/file2.ts (used version)
59 //// [/users/username/projects/project/file2.js]
64 {"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","affectsGlobalScope":true},{"version":"2026007743-const y = 20;","affectsGlobalScope":true}],"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"}
72 "./file2.ts"
85 "./file2.ts": {
96 "./file2
[all...]
H A Dwithout-commandline-options-incremental.js18 //// [/users/username/projects/project/file2.ts]
29 Program root files: ["/users/username/projects/project/file1.ts","/users/username/projects/project/file2.ts"]
35 /users/username/projects/project/file2.ts
40 /users/username/projects/project/file2.ts
45 /users/username/projects/project/file2.ts (used version)
59 //// [/users/username/projects/project/file2.js]
64 {"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.ts"],"fileInfos":[{"version":"-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"5029505981-const x = 10;","affectsGlobalScope":true},{"version":"2026007743-const y = 20;","affectsGlobalScope":true}],"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"}
72 "./file2.ts"
85 "./file2.ts": {
96 "./file2
[all...]
/third_party/lzma/CPP/7zip/Archive/7z/
H A D7zUpdate.cpp1338 static void UpdateItem_To_FileItem2(const CUpdateItem &ui, CFileItem2 &file2) in UpdateItem_To_FileItem2() argument
1340 file2.Attrib = ui.Attrib; file2.AttribDefined = ui.AttribDefined; in UpdateItem_To_FileItem2()
1341 file2.CTime = ui.CTime; file2.CTimeDefined = ui.CTimeDefined; in UpdateItem_To_FileItem2()
1342 file2.ATime = ui.ATime; file2.ATimeDefined = ui.ATimeDefined; in UpdateItem_To_FileItem2()
1343 file2.MTime = ui.MTime; file2.MTimeDefined = ui.MTimeDefined; in UpdateItem_To_FileItem2()
1344 file2 in UpdateItem_To_FileItem2()
1351 UpdateItem_To_FileItem(const CUpdateItem &ui, CFileItem &file, CFileItem2 &file2) UpdateItem_To_FileItem() argument
1792 GetFile(const CDatabase &inDb, unsigned index, CFileItem &file, CFileItem2 &file2) GetFile() argument
2194 CFileItem2 file2; Update() local
2576 CFileItem2 file2; Update() local
2744 CFileItem2 file2; Update() local
[all...]
H A D7zOut.cpp941 void CArchiveDatabaseOut::AddFile(const CFileItem &file, const CFileItem2 &file2, const UString &name) in AddFile() argument
944 CTime.SetItem(index, file2.CTimeDefined, file2.CTime); in AddFile()
945 ATime.SetItem(index, file2.ATimeDefined, file2.ATime); in AddFile()
946 MTime.SetItem(index, file2.MTimeDefined, file2.MTime); in AddFile()
947 StartPos.SetItem(index, file2.StartPosDefined, file2.StartPos); in AddFile()
948 Attrib.SetItem(index, file2 in AddFile()
[all...]
/third_party/ltp/testcases/kernel/syscalls/madvise/
H A Dmadvise02.c54 static char *file2; variable
74 {MADV_NORMAL, "MADV_NORMAL", &file2, ENOMEM, 0},
75 {MADV_WILLNEED, "MADV_WILLNEED", &file2, ENOMEM, 0},
141 file2 = SAFE_MMAP(0, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in setup()
152 SAFE_MUNMAP(file2 + st.st_size - pagesize, pagesize); in setup()
187 SAFE_MUNMAP(file2, st.st_size - pagesize); in cleanup()
/third_party/ffmpeg/ffbuild/
H A Dlibversion.sh8 file2=$3
11 if [ -f "$file2" ]; then
12 eval $(awk "/#define ${ucname}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file2")
/third_party/nghttp2/src/
H A Dshrpx_config_test.cc169 char file2[] = "/tmp/nghttpx-unittest.XXXXXX"; in test_shrpx_config_read_tls_ticket_key_file() local
170 auto fd2 = mkstemp(file2); in test_shrpx_config_read_tls_ticket_key_file()
178 {StringRef{file1}, StringRef{file2}}, EVP_aes_128_cbc(), EVP_sha256()); in test_shrpx_config_read_tls_ticket_key_file()
180 unlink(file2); in test_shrpx_config_read_tls_ticket_key_file()
212 char file2[] = "/tmp/nghttpx-unittest.XXXXXX"; in test_shrpx_config_read_tls_ticket_key_file_aes_256() local
213 auto fd2 = mkstemp(file2); in test_shrpx_config_read_tls_ticket_key_file_aes_256()
223 {StringRef{file1}, StringRef{file2}}, EVP_aes_256_cbc(), EVP_sha256()); in test_shrpx_config_read_tls_ticket_key_file_aes_256()
225 unlink(file2); in test_shrpx_config_read_tls_ticket_key_file_aes_256()
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/htmldiff/
H A Dhtmldiff.pl142 # markit(file1, file2)
161 my($file2) = shift;
191 open(FILE, qq(diff -d --old-group-format="$old" --new-group-format="$new" --changed-group-format="$changed" --unchanged-group-format="$unchanged" $file1 $file2 |)) || die("Diff failed: $!");
192 # system (qq(diff --old-group-format="$old" --new-group-format="$new" --changed-group-format="$changed" --unchanged-group-format="$unchanged" $file1 $file2 > /tmp/output));
456 $file2 = $ARGV[1];
464 $tmp = splitit($file2, $headertmp2);
500 my $file2 = "/tmp/htdcgi2.$$";
518 my $res2 = $ua->request($req2, $file2);
530 $split2 = splitit($file2, $headertmp2);
562 unlink $file2;
[all...]
/third_party/python/Tools/scripts/
H A Dcopytime.py13 file1, file2 = sys.argv[1], sys.argv[2]
20 os.utime(file2, (stat1[ST_ATIME], stat1[ST_MTIME]))
22 sys.stderr.write(file2 + ': cannot change time\n')
/third_party/icu/icu4c/source/tools/toolutil/
H A Dfiletools.cpp38 static int32_t whichFileModTimeIsLater(const char *file1, const char *file2);
108 static int32_t whichFileModTimeIsLater(const char *file1, const char *file2) { in whichFileModTimeIsLater() argument
112 if (stat(file1, &stbuf1) == 0 && stat(file2, &stbuf2) == 0) { in whichFileModTimeIsLater()
127 fprintf(stderr, "Unable to get stats from file: %s or %s\n", file1, file2); in whichFileModTimeIsLater()
/third_party/node/deps/icu-small/source/tools/toolutil/
H A Dfiletools.cpp38 static int32_t whichFileModTimeIsLater(const char *file1, const char *file2);
108 static int32_t whichFileModTimeIsLater(const char *file1, const char *file2) { in whichFileModTimeIsLater() argument
112 if (stat(file1, &stbuf1) == 0 && stat(file2, &stbuf2) == 0) { in whichFileModTimeIsLater()
127 fprintf(stderr, "Unable to get stats from file: %s or %s\n", file1, file2); in whichFileModTimeIsLater()
/third_party/ltp/testcases/kernel/syscalls/link/
H A Dlink04.c35 char *file2; member
86 TEST(link(tc->file1, tc->file2)); in verify_link()
127 if (!tc->file2) in setup()
128 tc->file2 = tst_get_bad_addr(NULL); in setup()
/third_party/skia/third_party/externals/icu/source/tools/toolutil/
H A Dfiletools.cpp38 static int32_t whichFileModTimeIsLater(const char *file1, const char *file2);
108 static int32_t whichFileModTimeIsLater(const char *file1, const char *file2) { in whichFileModTimeIsLater() argument
112 if (stat(file1, &stbuf1) == 0 && stat(file2, &stbuf2) == 0) { in whichFileModTimeIsLater()
127 fprintf(stderr, "Unable to get stats from file: %s or %s\n", file1, file2); in whichFileModTimeIsLater()
/third_party/ltp/testcases/commands/ldd/datafiles/
H A Dmain.c4 void file2(void);
12 file2(); in main()
/third_party/libsnd/tests/
H A Dcpp_test.cc134 { SndfileHandle file2 = file ; in read_file() local
136 if (file.refCount () != 2 || file2.refCount () != 2) in read_file()
279 SndfileHandle file2 (file) ; in ceeplusplus_takeOwnership_test()
281 if (file2.takeOwnership ()) in ceeplusplus_takeOwnership_test()
/third_party/libabigail/tools/
H A Dabidiff.cc69 string file2; member
204 << "usage: " << prog_name << " [options] [<file1> <file2>]\n" in display_usage()
209 << " --debug-info-dir2|--d2 <path> the root for the debug info of file2\n" in display_usage()
212 << " --headers-dir2|--hd2 <path> the path to headers of file2\n" in display_usage()
213 << " --header-file2|--hf2 <path> the path to one header of file2\n" in display_usage()
309 else if (opts.file2.empty()) in parse_command_line()
310 opts.file2 = argv[i]; in parse_command_line()
395 else if (!strcmp(argv[i], "--header-file2") in parse_command_line()
877 if (reader.corpus_path() == opts.file2 in set_suppressions()
[all...]
/third_party/curl/src/
H A Dtool_operhlp.c127 char *file2 = strrchr(filep?filep:filename, '\\'); in add_file_name_to_url() local
130 if(file2) in add_file_name_to_url()
131 filep = file2 + 1; in add_file_name_to_url()
/third_party/node/test/parallel/
H A Dtest-fs-chmod.js78 const file2 = path.join(tmpdir.path, 'a1.js');
98 fs.open(file2, 'w', common.mustSucceed((fd) => {
128 fs.symlinkSync(file2, link);
H A Dtest-fs-truncate.js146 const file2 = path.resolve(tmp, 'truncate-file-2.txt');
147 fs.writeFileSync(file2, 'Hi');
148 const fd = fs.openSync(file2, 'r+');
151 assert(fs.readFileSync(file2).equals(Buffer.from('Hi\u0000\u0000')));
/third_party/node/deps/v8/tools/unittests/
H A Dcompare_torque_output_test.py25 file2 = os.path.join(TEST_DATA, test_folder, 'f2')
28 COMPARE_SCRIPT, file1, file2, self.tmp_file
/third_party/ltp/testcases/kernel/security/integrity/ima/tests/
H A Dima_kexec.sh24 grep "kexec-cmdline" $ASCII_MEASUREMENTS > file2
36 done < file2

Completed in 16 milliseconds

123