Home
last modified time | relevance | path

Searched refs:old_path (Results 1 – 4 of 4) sorted by relevance

/bionic/libc/bionic/
Drename.cpp32 int rename(const char* old_path, const char* new_path) { in rename() argument
33 return renameat2(AT_FDCWD, old_path, AT_FDCWD, new_path, 0); in rename()
36 int renameat(int old_dir_fd, const char* old_path, int new_dir_fd, const char* new_path) { in renameat() argument
37 return renameat2(old_dir_fd, old_path, new_dir_fd, new_path, 0); in renameat()
Dsymlink.cpp32 int symlink(const char* old_path, const char* new_path) { in symlink() argument
33 return symlinkat(old_path, AT_FDCWD, new_path); in symlink()
Dlink.cpp32 int link(const char* old_path, const char* new_path) { in link() argument
33 return linkat(AT_FDCWD, old_path, AT_FDCWD, new_path, 0); in link()
/bionic/tests/
Dstdio_test.cpp2740 std::string old_path = td.path + "/old"s; in TEST() local
2744 ASSERT_EQ(0, close(creat(old_path.c_str(), 0666))); in TEST()
2746 ASSERT_EQ(0, stat(old_path.c_str(), &sb)); in TEST()
2750 ASSERT_EQ(0, rename(old_path.c_str(), new_path.c_str())); in TEST()
2751 ASSERT_EQ(-1, stat(old_path.c_str(), &sb)); in TEST()
2758 std::string old_path = td.path + "/old"s; in TEST() local
2762 ASSERT_EQ(0, close(creat(old_path.c_str(), 0666))); in TEST()
2764 ASSERT_EQ(0, stat(old_path.c_str(), &sb)); in TEST()
2769 ASSERT_EQ(-1, stat(old_path.c_str(), &sb)); in TEST()
2779 std::string old_path = td.path + "/old"s; in TEST()
[all …]