/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixSecureDirectoryStream.java | 52 private final int dfd; field in UnixSecureDirectoryStream 60 int dfd, in UnixSecureDirectoryStream() argument 64 this.dfd = dfd; in UnixSecureDirectoryStream() 66 if (dfd != -1) { in UnixSecureDirectoryStream() 78 UnixNativeDispatcher.close(dfd); in close() 131 newdfd1 = openat(dfd, file.asByteArray(), flags , 0); in newDirectoryStream() 171 return UnixChannelFactory.newFileChannel(dfd, file, pathToCheck, options, mode); in newByteChannel() 208 attrs = UnixFileAttributes.get(dfd, file, false); in implDelete() 216 unlinkat(dfd, file.asByteArray(), flags); in implDelete() 270 renameat(this.dfd, from.asByteArray(), that.dfd, to.asByteArray()); in move() [all …]
|
D | UnixChannelFactory.java | 112 static FileChannel newFileChannel(int dfd, in newFileChannel() argument 136 FileDescriptor fdObj = open(dfd, path, pathForPermissionCheck, flags, mode); in newFileChannel() 180 protected static FileDescriptor open(int dfd, in open() argument 254 if (dfd >= 0) { in open() 255 fd = openat(dfd, path.asByteArray(), oflags, mode); in open() 278 if (dfd >= 0) { in open() 279 unlinkat(dfd, path.asByteArray(), 0); in open()
|
D | UnixNativeDispatcher.java | 82 static int openat(int dfd, byte[] path, int flags, int mode) throws UnixException { in openat() argument 85 return openat0(dfd, buffer.address(), flags, mode); in openat() 90 private static native int openat0(int dfd, long pathAddress, int flags, int mode) in openat0() argument 151 static void unlinkat(int dfd, byte[] path, int flag) throws UnixException { in unlinkat() argument 154 unlinkat0(dfd, buffer.address(), flag); in unlinkat() 159 private static native void unlinkat0(int dfd, long pathAddress, int flag) in unlinkat0() argument 316 static void fstatat(int dfd, byte[] path, int flag, UnixFileAttributes attrs) in fstatat() argument 321 fstatat0(dfd, buffer.address(), flag, attrs); in fstatat() 326 private static native void fstatat0(int dfd, long pathAddress, int flag, in fstatat0() argument 418 static native long fdopendir(int dfd) throws UnixException; in fdopendir() argument
|
D | UnixCopyFile.java | 146 int dfd = -1; in copyDirectory() local 148 dfd = open(target, O_RDONLY, 0); in copyDirectory() 162 if (dfd >= 0) { in copyDirectory() 163 fchown(dfd, attrs.uid(), attrs.gid()); in copyDirectory() 164 fchmod(dfd, attrs.mode()); in copyDirectory() 176 if (flags.copyNonPosixAttributes && (dfd >= 0)) { in copyDirectory() 185 source.getFileSystem().copyNonPosixAttributes(sfd, dfd); in copyDirectory() 192 if (dfd >= 0 && futimesSupported()) { in copyDirectory() 193 futimes(dfd, in copyDirectory() 209 if (dfd >= 0) in copyDirectory() [all …]
|
D | UnixFileAttributes.java | 85 static UnixFileAttributes get(int dfd, UnixPath path, boolean followLinks) in get() argument 90 UnixNativeDispatcher.fstatat(dfd, path.asByteArray(), flag, attrs); in get()
|
/libcore/ojluni/src/main/native/ |
D | UnixNativeDispatcher.c | 143 static int fstatat64_wrapper(int dfd, const char *path, in fstatat64_wrapper() argument 149 return syscall(__NR_fstatat64, dfd, path, statbuf, flag); in fstatat64_wrapper() 155 static int fstatat64_wrapper(int dfd, const char *path, in fstatat64_wrapper() argument 161 return syscall(__NR_newfstatat, dfd, path, statbuf, flag); in fstatat64_wrapper() 396 Java_sun_nio_fs_UnixNativeDispatcher_openat0(JNIEnv* env, jclass this, jint dfd, in Java_sun_nio_fs_UnixNativeDispatcher_openat0() argument 407 RESTARTABLE((*my_openat64_func)(dfd, path, (int)oflags, (mode_t)mode), fd); in Java_sun_nio_fs_UnixNativeDispatcher_openat0() 535 Java_sun_nio_fs_UnixNativeDispatcher_fstatat0(JNIEnv* env, jclass this, jint dfd, in Java_sun_nio_fs_UnixNativeDispatcher_fstatat0() argument 546 RESTARTABLE((*my_fstatat64_func)((int)dfd, path, &buf, (int)flag), err); in Java_sun_nio_fs_UnixNativeDispatcher_fstatat0() 679 Java_sun_nio_fs_UnixNativeDispatcher_fdopendir(JNIEnv* env, jclass this, int dfd) { in Java_sun_nio_fs_UnixNativeDispatcher_fdopendir() argument 688 dir = (*my_fdopendir_func)((int)dfd); in Java_sun_nio_fs_UnixNativeDispatcher_fdopendir() [all …]
|