Lines Matching refs:file

8  * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
28 import java.nio.file.*;
45 private byte[] nameAsBytes(UnixPath file, String name) throws IOException {
52 throw new FileSystemException(file.getPathForExceptionMessage(),
59 private final UnixPath file;
62 SolarisUserDefinedFileAttributeView(UnixPath file, boolean followLinks) {
63 this.file = file;
70 checkAccess(file.getPathForPermissionCheck(), true, false);
72 int fd = file.openForAttributeAccess(followLinks);
99 throw new FileSystemException(file.getPathForExceptionMessage(),
111 checkAccess(file.getPathForPermissionCheck(), true, false);
113 int fd = file.openForAttributeAccess(followLinks);
116 // open attribute file
117 int afd = openat(fd, nameAsBytes(file,name), (O_RDONLY|O_XATTR), 0);
129 throw new FileSystemException(file.getPathForExceptionMessage(),
141 checkAccess(file.getPathForPermissionCheck(), true, false);
143 int fd = file.openForAttributeAccess(followLinks);
146 // open attribute file
147 int afd = openat(fd, nameAsBytes(file,name), (O_RDONLY|O_XATTR), 0);
150 FileChannel fc = UnixChannelFactory.newFileChannel(afd, file.toString(), true, false);
155 throw new IOException("Extended attribute file too large");
168 throw new FileSystemException(file.getPathForExceptionMessage(),
180 checkAccess(file.getPathForPermissionCheck(), false, true);
182 int fd = file.openForAttributeAccess(followLinks);
185 // open/create attribute file
186 int afd = openat(fd, nameAsBytes(file,name),
191 FileChannel fc = UnixChannelFactory.newFileChannel(afd, file.toString(), false, true);
204 throw new FileSystemException(file.getPathForExceptionMessage(),
216 checkAccess(file.getPathForPermissionCheck(), false, true);
218 int fd = file.openForAttributeAccess(followLinks);
222 unlinkat(dfd, nameAsBytes(file,name), 0);
227 throw new FileSystemException(file.getPathForExceptionMessage(),
239 * file descriptor for source file
241 * file descriptor for target file
278 // open source attribute file
281 // create target attribute file