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.cc122 bool IsOverlapping(const char* old_filename, in IsOverlapping() argument
132 if (stat(old_filename, &old_stat) == -1) in IsOverlapping()
133 err(1, "Error stat the old filename %s", old_filename); in IsOverlapping()
151 const char* old_filename, const char* new_filename, in bspatch() argument
223 std::unique_ptr<FileInterface> old_file = File::FOpen(old_filename, O_RDONLY); in bspatch()
235 err(1, "cannot obtain the size of %s", old_filename); in bspatch()
251 if (IsOverlapping(old_filename, new_filename, parsed_old_extents, in bspatch()
Dbspatch.h15 int bspatch(const char* old_filename,
25 bool IsOverlapping(const char* old_filename,
Dbsdiff.h10 int bsdiff(const char* old_filename,
Dbsdiff.cc107 int bsdiff(const char* old_filename, const char* new_filename, in bsdiff() argument
129 if(((fd=open(old_filename,O_RDONLY,0))<0) || in bsdiff()
134 (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));