Home
last modified time | relevance | path

Searched refs:symlink (Results 1 – 10 of 10) sorted by relevance

/libcore/luni/src/main/native/
Dcanonicalize_path.cpp98 std::string symlink; in canonicalize_path() local
99 if (!readlink(resolved.c_str(), symlink)) { in canonicalize_path()
102 if (symlink[0] == '/') { in canonicalize_path()
112 const char* maybeSlash = (symlink[symlink.size() - 1] != '/') ? "/" : ""; in canonicalize_path()
113 left = symlink + maybeSlash + left; in canonicalize_path()
115 left = symlink; in canonicalize_path()
Dlibcore_io_Posix.cpp1883 throwIfMinusOne(env, "symlink", TEMP_FAILURE_RETRY(symlink(oldPath.c_str(), newPath.c_str()))); in Posix_symlink()
2073 NATIVE_METHOD(Posix, symlink, "(Ljava/lang/String;Ljava/lang/String;)V"),
/libcore/tzdata/update/src/test/libcore/tzdata/update/
DFileUtilsTest.java198 File symlink = createSymlink(exists1, dir, "symlinkToFile"); in testEnsureFileDoesNotExist() local
199 assertTrue(symlink.exists()); in testEnsureFileDoesNotExist()
200 FileUtils.ensureFileDoesNotExist(symlink); in testEnsureFileDoesNotExist()
201 assertFalse(symlink.exists()); in testEnsureFileDoesNotExist()
265 File symlink = new File(symlinkDir, symlinkName); in createSymlink() local
266 Os.symlink(file.getAbsolutePath(), symlink.getAbsolutePath()); in createSymlink()
267 testFiles.add(symlink); in createSymlink()
268 return symlink; in createSymlink()
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java307 @Override public void symlink(String oldPath, String newPath) throws ErrnoException { in symlink() method in BlockGuardOs
309 os.symlink(oldPath, newPath); in symlink()
DForwardingOs.java167 …public void symlink(String oldPath, String newPath) throws ErrnoException { os.symlink(oldPath, ne… in symlink() method in ForwardingOs
DOs.java160 public void symlink(String oldPath, String newPath) throws ErrnoException; in symlink() method
DPosix.java244 public native void symlink(String oldPath, String newPath) throws ErrnoException; in symlink() method in Posix
/libcore/luni/src/main/java/android/system/
DOs.java521 …public static void symlink(String oldPath, String newPath) throws ErrnoException { Libcore.os.syml… in symlink() method in Os
/libcore/luni/src/test/java/libcore/java/io/
DFileTest.java196 Libcore.os.symlink(target, linkName); in ln_s()
/libcore/luni/src/test/java/libcore/io/
DOsTest.java560 Libcore.os.symlink(target.getAbsolutePath(), link.getAbsolutePath()); in test_realpath()