Home
last modified time | relevance | path

Searched refs:old_filename (Results 1 – 8 of 8) sorted by relevance

/external/bsdiff/
Dbspatch_unittest.cc26 const char* old_filename = old_file_.c_str(); in TEST_F() local
28 EXPECT_FALSE(IsOverlapping(old_filename, "does-not-exist", {}, {})); in TEST_F()
29 EXPECT_FALSE(IsOverlapping(old_filename, new_filename, {}, {})); in TEST_F()
31 EXPECT_EQ(0, symlink(old_filename, new_filename)); in TEST_F()
32 EXPECT_TRUE(IsOverlapping(old_filename, new_filename, {}, {})); in TEST_F()
33 EXPECT_TRUE(IsOverlapping(old_filename, old_filename, {}, {})); in TEST_F()
34 EXPECT_FALSE(IsOverlapping(old_filename, old_filename, {{0, 1}}, {{1, 1}})); in TEST_F()
35 EXPECT_FALSE(IsOverlapping(old_filename, old_filename, {{2, 1}}, {{1, 1}})); in TEST_F()
36 EXPECT_TRUE(IsOverlapping(old_filename, old_filename, {{0, 1}}, {{0, 1}})); in TEST_F()
37 EXPECT_TRUE(IsOverlapping(old_filename, old_filename, {{0, 4}}, {{2, 1}})); in TEST_F()
[all …]
Dbspatch.cc145 bool IsOverlapping(const char* old_filename, in IsOverlapping() argument
157 if (stat(old_filename, &old_stat) == -1) { in IsOverlapping()
158 fprintf(stderr, "Error stat the old file %s: %s\n", old_filename, in IsOverlapping()
182 int bspatch(const char* old_filename, in bspatch() argument
204 return bspatch(old_filename, new_filename, patch.data(), patch_size, in bspatch()
212 int bspatch(const char* old_filename, in bspatch() argument
221 std::unique_ptr<FileInterface> old_file = File::FOpen(old_filename, O_RDONLY); in bspatch()
223 fprintf(stderr, "Error opening the old file %s: %s\n", old_filename, in bspatch()
255 if (IsOverlapping(old_filename, new_filename, parsed_old_extents, in bspatch()
Dbspatch.h16 int bspatch(const char* old_filename,
22 int bspatch(const char* old_filename,
44 bool IsOverlapping(const char* old_filename,
Dbsdiff.h20 int bsdiff(const char* old_filename,
Dbsdiff.cc106 int bsdiff(const char* old_filename, const char* new_filename, in bsdiff() argument
114 if(((fd=open(old_filename,O_RDONLY,0))<0) || in bsdiff()
119 (close(fd)==-1)) err(1,"%s",old_filename); in bsdiff()
/external/bison/lib/
Dstdio.in.h945 (const char *old_filename, const char *new_filename)
948 (const char *old_filename, const char *new_filename));
951 (const char *old_filename, const char *new_filename));
/external/bison/darwin-lib/
Dstdio.h1257 (const char *old_filename, const char *new_filename)
1260 (const char *old_filename, const char *new_filename));
1263 (const char *old_filename, const char *new_filename));
/external/bison/linux-lib/
Dstdio.h1257 (const char *old_filename, const char *new_filename)
1260 (const char *old_filename, const char *new_filename));
1263 (const char *old_filename, const char *new_filename));