/libcore/ojluni/src/main/native/ |
D | FileSystemPreferences.c | 76 FLOCK fl; in Java_java_util_prefs_FileSystemPreferences_lockFile0() local 78 fl.l_whence = SEEK_SET; in Java_java_util_prefs_FileSystemPreferences_lockFile0() 79 fl.l_len = 0; in Java_java_util_prefs_FileSystemPreferences_lockFile0() 80 fl.l_start = 0; in Java_java_util_prefs_FileSystemPreferences_lockFile0() 82 fl.l_type = F_RDLCK; in Java_java_util_prefs_FileSystemPreferences_lockFile0() 84 fl.l_type = F_WRLCK; in Java_java_util_prefs_FileSystemPreferences_lockFile0() 102 rc = fcntl(fd, F_SETLK, &fl); in Java_java_util_prefs_FileSystemPreferences_lockFile0() 104 rc = fcntl(fd, F_SETLK64, &fl); in Java_java_util_prefs_FileSystemPreferences_lockFile0() 129 FLOCK fl; in Java_java_util_prefs_FileSystemPreferences_unlockFile0() local 130 fl.l_whence = SEEK_SET; in Java_java_util_prefs_FileSystemPreferences_unlockFile0() [all …]
|
D | FileDispatcherImpl.c | 200 struct flock64 fl; in FileDispatcherImpl_lock0() local 202 fl.l_whence = SEEK_SET; in FileDispatcherImpl_lock0() 204 fl.l_len = (off64_t)0; in FileDispatcherImpl_lock0() 206 fl.l_len = (off64_t)size; in FileDispatcherImpl_lock0() 208 fl.l_start = (off64_t)pos; in FileDispatcherImpl_lock0() 210 fl.l_type = F_RDLCK; in FileDispatcherImpl_lock0() 212 fl.l_type = F_WRLCK; in FileDispatcherImpl_lock0() 219 lockResult = fcntl(fd, cmd, &fl); in FileDispatcherImpl_lock0() 236 struct flock64 fl; in FileDispatcherImpl_release0() local 239 fl.l_whence = SEEK_SET; in FileDispatcherImpl_release0() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | FileLockTable.java | 56 public abstract void add(FileLock fl) throws OverlappingFileLockException; in add() argument 61 public abstract void remove(FileLock fl); in remove() argument 124 public void add(FileLock fl) throws OverlappingFileLockException { in add() argument 137 list.add(new FileLockReference(fl, queue, fileKey)); in add() 152 checkList(list, fl.position(), fl.size()); in add() 153 list.add(new FileLockReference(fl, queue, fileKey)); in add() 174 public void remove(FileLock fl) { in remove() argument 175 assert fl != null; in remove() 186 if (lock == fl) { in remove() 253 FileLock fl = ref.get(); in checkList() local [all …]
|
D | AsynchronousFileChannelImpl.java | 147 for (FileLock fl: fileLockTable.removeAll()) { in invalidateAllLocks() 148 synchronized (fl) { in invalidateAllLocks() 149 if (fl.isValid()) { in invalidateAllLocks() 150 FileLockImpl fli = (FileLockImpl)fl; in invalidateAllLocks()
|
D | FileChannelImpl.java | 144 for (FileLock fl: fileLockTable.removeAll()) { in implCloseChannel() 145 synchronized (fl) { in implCloseChannel() 146 if (fl.isValid()) { in implCloseChannel() 147 nd.release(fd, fl.position(), fl.size()); in implCloseChannel() 148 ((FileLockImpl)fl).invalidate(); in implCloseChannel() 1232 for (FileLock fl: lockList) { in checkList() 1233 if (fl.overlaps(position, size)) { in checkList() 1239 public void add(FileLock fl) throws OverlappingFileLockException { in add() argument 1241 checkList(fl.position(), fl.size()); in add() 1242 lockList.add(fl); in add() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStoreBuilderTest.java | 208 File fl = File.createTempFile("KSBuilder_ImplTest", "keystore"); in testNewInstanceStringProviderFileProtectionParameter() local 209 fl.deleteOnExit(); in testNewInstanceStringProviderFileProtectionParameter() 219 KeyStore.Builder.newInstance(null, defaultProvider, fl, protPass); in testNewInstanceStringProviderFileProtectionParameter() 231 .newInstance(KeyStore.getDefaultType(), defaultProvider, fl, null); in testNewInstanceStringProviderFileProtectionParameter() local 237 .newInstance(KeyStore.getDefaultType(), defaultProvider, fl, myPP); in testNewInstanceStringProviderFileProtectionParameter() local 243 new File(fl.getAbsolutePath().concat("should_absent")), in testNewInstanceStringProviderFileProtectionParameter() 250 KeyStore.Builder.newInstance(KeyStore.getDefaultType(), defaultProvider, fl in testNewInstanceStringProviderFileProtectionParameter() 255 ksB = KeyStore.Builder.newInstance(KeyStore.getDefaultType(), defaultProvider, fl, in testNewInstanceStringProviderFileProtectionParameter() 263 fl = createKS(); in testNewInstanceStringProviderFileProtectionParameter() 268 null, fl, myPP); in testNewInstanceStringProviderFileProtectionParameter() local [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | FileTreeWalker.java | 178 boolean fl = false; in FileTreeWalker() 182 case FOLLOW_LINKS : fl = true; break; in FileTreeWalker() 190 this.followLinks = fl; in FileTreeWalker() 191 this.linkOptions = (fl) ? new LinkOption[0] : in FileTreeWalker()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldZipFileTest.java | 82 File fl = new File(tempFileName); in test_close() local 83 ZipFile zf = new ZipFile(fl); in test_close()
|
D | OldZipInputStreamTest.java | 168 File fl = new File(resources, "Broken_manifest.jar"); in test_createZipEntryLjava_lang_String() local 169 FileInputStream fis = new FileInputStream(fl); in test_createZipEntryLjava_lang_String()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipInputStreamTest.java | 221 File fl = new File(resources, "hyts_ZipFile.zip"); in test_available() local 222 FileInputStream fis = new FileInputStream(fl); in test_available()
|
D | ZipFileTest.java | 129 File fl = new File(tempFileName); in test_close() local 130 ZipFile zf = new ZipFile(fl); in test_close()
|
/libcore/ojluni/src/main/java/java/io/ |
D | StreamTokenizer.java | 493 public void lowerCaseMode(boolean fl) { in lowerCaseMode() argument 494 forceLower = fl; in lowerCaseMode()
|
/libcore/ojluni/annotations/hiddenapi/sun/nio/ch/ |
D | FileChannelImpl.java | 320 public void add(java.nio.channels.FileLock fl) in add() argument 325 public void remove(java.nio.channels.FileLock fl) { in remove() argument
|