Searched refs:link (Results 1 - 16 of 16) sorted by relevance

/libcore/ojluni/src/test/java/nio/file/attribute/
H A DBasicFileAttributeViewTest.java56 check(!attrs.isSymbolicLink(), "is not a link");
71 check(!attrs.isSymbolicLink(), "is not a link");
96 static void checkAttributesOfLink(Path link) argument
100 Files.readAttributes(link, BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS);
101 check(attrs.isSymbolicLink(), "is a link");
121 Path link = dir.resolve("link");
123 Files.createSymbolicLink(link, file);
129 checkAttributesOfLink(link);
H A DPosixFileAttributeViewTest.java177 // create link (to file that doesn't exist) and test reading of
180 Path link = dir.resolve("link");
181 System.out.format("create link %s\n", link);
182 Files.createSymbolicLink(link, file);
185 Files.getFileAttributeView(link,
190 throw new RuntimeException("not a link");
193 Files.delete(link);
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixFileSystemProvider.java443 UnixPath link = UnixPath.toUnixPath(obj1);
450 "not supported when creating symbolic link");
457 link.checkWrite();
460 // create link
462 symlink(target.asByteArray(), link);
464 x.rethrowAsIOException(link);
470 UnixPath link = UnixPath.toUnixPath(obj1);
477 link.checkWrite();
481 link(existing, link);
[all...]
H A DUnixNativeDispatcher.java120 * link(const char* existing, const char* new)
122 static void link(UnixPath existing, UnixPath newfile) throws UnixException { method in class:UnixNativeDispatcher
237 * @return link target
/libcore/ojluni/src/test/java/nio/file/
H A DTestUtil.java109 Path link = dir.resolve("testlink");
112 Files.createSymbolicLink(link, target);
113 Files.delete(link);
/libcore/ojluni/src/main/java/java/nio/file/spi/
H A DFileSystemProvider.java41 * Service-provider class for file systems. The methods defined by the {@link
47 * identified by a {@code URI} {@link #getScheme() scheme}. The default provider
48 * is identified by the URI scheme "file". It creates the {@link FileSystem} that
50 * The {@link FileSystems} class defines how file system providers are located
58 * <p> A provider is a factory for one or more {@link FileSystem} instances. Each
60 * the provider's {@link #getScheme scheme}. The default file system, for example,
63 * The {@link #newFileSystem newFileSystem} method may be used to create a file
64 * system, and the {@link #getFileSystem getFileSystem} method may be used to
105 * {@link RuntimePermission}<tt>("fileSystemProvider")</tt>
144 * providers as described by the {@link FileSystem
651 createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs) argument
685 createLink(Path link, Path existing) argument
770 readSymbolicLink(Path link) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/file/
H A DFiles.java118 * will not be buffered, and is not required to support the {@link
119 * InputStream#mark mark} or {@link InputStream#reset reset} methods. The
127 * the {@link StandardOpenOption#READ READ} option. In addition to the {@code
146 * installed, the {@link SecurityManager#checkRead(String) checkRead}
164 * by the {@link #newByteChannel(Path,Set,FileAttribute[]) newByteChannel}
165 * method with the exception that the {@link StandardOpenOption#READ READ}
167 * present then this method works as if the {@link StandardOpenOption#CREATE
168 * CREATE}, {@link StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING},
169 * and {@link StandardOpenOption#WRITE WRITE} options are present. In other
171 * exist, or initially truncating an existing {@link #isRegularFil
1039 createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs) argument
1085 createLink(Path link, Path existing) argument
1431 readSymbolicLink(Path link) argument
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java180 @Override public void link(String oldPath, String newPath) throws ErrnoException { method in class:BlockGuardOs
182 os.link(oldPath, newPath);
H A DOs.java110 public void link(String oldPath, String newPath) throws ErrnoException; method in interface:Os
H A DForwardingOs.java48 * Subclass this if you want to override some {@link Os} methods but otherwise delegate.
124 public void link(String oldPath, String newPath) throws ErrnoException { os.link(oldPath, newPath); } method in class:ForwardingOs
H A DLinux.java115 public native void link(String oldPath, String newPath) throws ErrnoException; method in class:Linux
/libcore/luni/src/test/java/libcore/libcore/io/
H A DOsTest.java688 File link = new File(tmpDir, "link");
691 Libcore.os.symlink(target.getAbsolutePath(), link.getAbsolutePath());
694 Libcore.os.realpath(canonicalTmpDir + "/link"));
697 boolean deletedLink = link.delete();
/libcore/ojluni/src/main/native/
H A DUnixNativeDispatcher.c758 RESTARTABLE(link(existing, newname), err);
830 const char* link = (const char*)jlong_to_ptr(linkAddress); local
833 if (symlink(target, link) == -1) {
/libcore/luni/src/main/java/android/system/
H A DOs.java33 * <p>The corresponding constants can be found in {@link OsConstants}.
291 * See <a href="http://man7.org/linux/man-pages/man2/link.2.html">link(2)</a>.
293 public static void link(String oldPath, String newPath) throws ErrnoException { Libcore.os.link(oldPath, newPath); } method in class:Os
/libcore/luni/src/main/native/
H A Dlibcore_io_Linux.cpp1723 throwIfMinusOne(env, "link", TEMP_FAILURE_RETRY(link(oldPath.c_str(), newPath.c_str())));
2531 NATIVE_METHOD(Linux, link, "(Ljava/lang/String;Ljava/lang/String;)V"),
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DConcurrentSkipListMap.java62 // removed link to collections framework docs
66 * A scalable concurrent {@link ConcurrentNavigableMap} implementation.
68 * ordering} of its keys, or by a {@link Comparator} provided at map
104 * <em>optional</em> methods of the {@link Map} and {@link Iterator}
164 * link. This requires less space and supports faster
246 * using CAS to link and unlink. Races are allowed in index-list
247 * operations that can (rarely) fail to link in a new index node
594 * indexed is known to be deleted, it doesn't try to link in.
599 final boolean link(Inde method in class:ConcurrentSkipListMap.Index
[all...]

Completed in 404 milliseconds