Home
last modified time | relevance | path

Searched refs:link (Results 1 – 25 of 26) sorted by relevance

12

/libcore/ojluni/src/test/java/nio/file/Path/
DMisc.java76 final Path link = dir.resolve("link"); in testToRealPath() local
103 Files.createSymbolicLink(link, resolvedFile.toAbsolutePath()); in testToRealPath()
104 assertTrue(link.toRealPath().equals(resolvedFile.toRealPath())); in testToRealPath()
105 Files.delete(link); in testToRealPath()
112 Files.createSymbolicLink(link, file.toAbsolutePath()); in testToRealPath()
113 assertTrue(link.toRealPath(NOFOLLOW_LINKS).getFileName().equals(link.getFileName())); in testToRealPath()
114 Files.delete(link); in testToRealPath()
121 Path broken = Files.createSymbolicLink(link, doesNotExist); in testToRealPath()
122 assertTrue(link.toRealPath(NOFOLLOW_LINKS).getFileName().equals(link.getFileName())); in testToRealPath()
123 Files.delete(link); in testToRealPath()
/libcore/ojluni/src/test/java/nio/file/attribute/
DBasicFileAttributeViewTest.java96 static void checkAttributesOfLink(Path link) in checkAttributesOfLink() argument
100 Files.readAttributes(link, BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS); in checkAttributesOfLink()
121 Path link = dir.resolve("link"); in attributeReadWriteTests() local
123 Files.createSymbolicLink(link, file); in attributeReadWriteTests()
129 checkAttributesOfLink(link); in attributeReadWriteTests()
DPosixFileAttributeViewTest.java180 Path link = dir.resolve("link"); in permissionTests() local
181 System.out.format("create link %s\n", link); in permissionTests()
182 Files.createSymbolicLink(link, file); in permissionTests()
185 Files.getFileAttributeView(link, in permissionTests()
193 Files.delete(link); in permissionTests()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileSystemProvider.java456 UnixPath link = UnixPath.toUnixPath(obj1); in createSymbolicLink() local
470 link.checkWrite(); in createSymbolicLink()
475 symlink(target.asByteArray(), link); in createSymbolicLink() local
477 x.rethrowAsIOException(link); in createSymbolicLink()
483 UnixPath link = UnixPath.toUnixPath(obj1); in createLink() local
490 link.checkWrite(); in createLink()
494 link(existing, link); in createLink()
496 x.rethrowAsIOException(link, existing); in createLink()
502 UnixPath link = UnixPath.toUnixPath(obj1); in readSymbolicLink() local
506 FilePermission perm = new FilePermission(link.getPathForPermissionCheck(), in readSymbolicLink()
[all …]
DUnixNativeDispatcher.java122 static void link(UnixPath existing, UnixPath newfile) throws UnixException { in link() method in UnixNativeDispatcher
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset-X-Coder.java.template56 * <li><p> Reset the $coder$ via the {@link #reset reset} method, unless it
59 * <li><p> Invoke the {@link #$code$ $code$} method zero or more times, as
64 * <li><p> Invoke the {@link #$code$ $code$} method one final time, passing
67 * <li><p> Invoke the {@link #flush flush} method so that the $coder$ can
72 * Each invocation of the {@link #$code$ $code$} method will $code$ as many
74 * to the output buffer. The {@link #$code$ $code$} method returns when more
76 * when $a$ $coding$ error has occurred. In each case a {@link CoderResult}
91 * that type of error, which is described by an instance of the {@link
95 * the returned {@link CoderResult} object, or {@linkplain CodingErrorAction#REPLACE
107 * its value may be changed via the {@link #replaceWith($replFQType$)
[all …]
/libcore/ojluni/src/test/java/nio/file/
DTestUtil.java109 Path link = dir.resolve("testlink"); in supportsLinks() local
112 Files.createSymbolicLink(link, target); in supportsLinks()
113 Files.delete(link); in supportsLinks()
/libcore/ojluni/src/main/java/java/nio/
DX-Buffer.java.template57 * <li><p> Absolute and relative {@link #get() <i>get</i>} and
58 * {@link #put($type$) <i>put</i>} methods that read and write
61 * <li><p> Absolute and relative {@link #get($type$[]) <i>bulk get</i>}
65 * <li><p> Absolute and relative {@link #put($type$[]) <i>bulk put</i>}
72 * <li><p> Absolute and relative {@link #getChar() <i>get</i>}
73 * and {@link #putChar(char) <i>put</i>} methods that read and
83 * <li><p> A method for {@link #compact compacting}
88 * <p> $Type$ buffers can be created either by {@link #allocate
93 * content, or by {@link #wrap($type$[]) <i>wrapping</i>} an
98 * content, by {@link #wrap($type$[]) <i>wrapping</i>} an existing
[all …]
DHeap-X-Buffer.java.template40 * read/write class, overriding the mutation methods to throw a {@link
/libcore/ojluni/src/main/java/java/nio/file/
DFiles.java1039 public static Path createSymbolicLink(Path link, Path target,
1043 provider(link).createSymbolicLink(link, target, attrs);
1044 return link;
1085 public static Path createLink(Path link, Path existing) throws IOException {
1086 provider(link).createLink(link, existing);
1087 return link;
1431 public static Path readSymbolicLink(Path link) throws IOException {
1432 return provider(link).readSymbolicLink(link);
/libcore/ojluni/src/main/java/java/nio/file/spi/
DFileSystemProvider.java651 public void createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs) in createSymbolicLink() argument
685 public void createLink(Path link, Path existing) throws IOException { in createLink() argument
770 public Path readSymbolicLink(Path link) throws IOException { in readSymbolicLink() argument
/libcore/luni/src/test/java/libcore/java/nio/file/spi/
DFileSystemProviderTest.java150 Path link = Paths.get("testdir"); in testCreateLink() local
154 provider.createLink(link, existing); in testCreateLink()
/libcore/expectations/
Dvirtualdeviceknownfailures.txt21 …description: "Virtual devices do not implement the SELinux policy (forbid hard link) asserted by t…
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java233 @Override public void link(String oldPath, String newPath) throws ErrnoException { in link() method in BlockGuardOs
237 super.link(oldPath, newPath); in link()
DForwardingOs.java454 …public void link(String oldPath, String newPath) throws ErrnoException { os.link(oldPath, newPath)… in link() method in ForwardingOs
DOs.java393 public void link(String oldPath, String newPath) throws ErrnoException; in link() method
DLinux.java120 public native void link(String oldPath, String newPath) throws ErrnoException; in link() method in Linux
/libcore/ojluni/src/main/native/
DUnixNativeDispatcher.c812 RESTARTABLE(link(existing, newname), err); in Java_sun_nio_fs_UnixNativeDispatcher_link0()
884 const char* link = (const char*)jlong_to_ptr(linkAddress); in Java_sun_nio_fs_UnixNativeDispatcher_symlink0() local
887 if (symlink(target, link) == -1) { in Java_sun_nio_fs_UnixNativeDispatcher_symlink0()
/libcore/luni/src/main/java/android/system/
DOs.java424 …public static void link(String oldPath, String newPath) throws ErrnoException { Libcore.os.link(ol… in link() method in Os
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java1456 File link = new File(tmpDir, "link");
1459 Os.symlink(target.getAbsolutePath(), link.getAbsolutePath());
1465 boolean deletedLink = link.delete();
/libcore/benchmarks/libs/
Dcaliper.jar.txt46 separable from, or merely link (or bind by name) to the interfaces of,
/libcore/ojluni/src/test/java/util/Scanner/
Dinput.txt26 * to scan, even if a previous invocation of {@link #hasNext(Pattern)}
/libcore/
DLICENSE339 permission to link this library with independent modules to produce an
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp1854 throwIfMinusOne(env, "link", TEMP_FAILURE_RETRY(link(oldPath.c_str(), newPath.c_str()))); in Linux_link()
2831 NATIVE_METHOD(Linux, link, "(Ljava/lang/String;Ljava/lang/String;)V"),
/libcore/ojluni/src/main/
DLICENSE347 permission to link this library with independent modules to produce an
1234 {@link Replaceable} in their text representation class.

12