public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); } public void fdatasync(FileDescriptor fd) throws ErrnoException { os.fdatasync(fd); }
/** * Non-API method to release a given lock on a file channel. Assumes that * the lock will mark itself invalid after successful unlocking. */ public void release(FileLock lock) throws IOException { checkOpen(); StructFlock flock = new StructFlock(); flock.l_type = (short) F_UNLCK; flock.l_whence = (short) SEEK_SET; flock.l_start = lock.position(); flock.l_len = translateLockLength(lock.size()); try { Libcore.os.fcntlFlock(fd, F_SETLKW64, flock); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } removeLock(lock); }
success = (Libcore.os.fcntlFlock(fd, wait ? F_SETLKW64 : F_SETLK64, flock) != -1); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException();
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); } public void fdatasync(FileDescriptor fd) throws ErrnoException { os.fdatasync(fd); }
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); } public void fdatasync(FileDescriptor fd) throws ErrnoException { os.fdatasync(fd); }
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); } public void fdatasync(FileDescriptor fd) throws ErrnoException { os.fdatasync(fd); }
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); } public void fdatasync(FileDescriptor fd) throws ErrnoException { os.fdatasync(fd); }
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); } public void fdatasync(FileDescriptor fd) throws ErrnoException { os.fdatasync(fd); }
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); } public void fdatasync(FileDescriptor fd) throws ErrnoException { os.fdatasync(fd); }
/** * Non-API method to release a given lock on a file channel. Assumes that * the lock will mark itself invalid after successful unlocking. */ public void release(FileLock lock) throws IOException { checkOpen(); StructFlock flock = new StructFlock(); flock.l_type = (short) F_UNLCK; flock.l_whence = (short) SEEK_SET; flock.l_start = lock.position(); flock.l_len = translateLockLength(lock.size()); try { Libcore.os.fcntlFlock(fd, F_SETLKW64, flock); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } removeLock(lock); }
success = (Libcore.os.fcntlFlock(fd, wait ? F_SETLKW64 : F_SETLK64, flock) != -1); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException();
success = (Libcore.os.fcntlFlock(fd, wait ? F_SETLKW64 : F_SETLK64, flock) != -1); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException();
/** * Non-API method to release a given lock on a file channel. Assumes that * the lock will mark itself invalid after successful unlocking. */ public void release(FileLock lock) throws IOException { checkOpen(); StructFlock flock = new StructFlock(); flock.l_type = (short) F_UNLCK; flock.l_whence = (short) SEEK_SET; flock.l_start = lock.position(); flock.l_len = translateLockLength(lock.size()); try { Libcore.os.fcntlFlock(fd, F_SETLKW64, flock); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } removeLock(lock); }
success = (Libcore.os.fcntlFlock(fd, wait ? F_SETLKW64 : F_SETLK64, flock) != -1); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException();
/** * Non-API method to release a given lock on a file channel. Assumes that * the lock will mark itself invalid after successful unlocking. */ public void release(FileLock lock) throws IOException { checkOpen(); StructFlock flock = new StructFlock(); flock.l_type = (short) F_UNLCK; flock.l_whence = (short) SEEK_SET; flock.l_start = lock.position(); flock.l_len = translateLockLength(lock.size()); try { Libcore.os.fcntlFlock(fd, F_SETLKW64, flock); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } removeLock(lock); }
/** * Non-API method to release a given lock on a file channel. Assumes that * the lock will mark itself invalid after successful unlocking. */ public void release(FileLock lock) throws IOException { checkOpen(); StructFlock flock = new StructFlock(); flock.l_type = (short) F_UNLCK; flock.l_whence = (short) SEEK_SET; flock.l_start = lock.position(); flock.l_len = translateLockLength(lock.size()); try { Libcore.os.fcntlFlock(fd, F_SETLKW64, flock); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } removeLock(lock); }
/** * Non-API method to release a given lock on a file channel. Assumes that * the lock will mark itself invalid after successful unlocking. */ public void release(FileLock lock) throws IOException { checkOpen(); StructFlock flock = new StructFlock(); flock.l_type = (short) F_UNLCK; flock.l_whence = (short) SEEK_SET; flock.l_start = lock.position(); flock.l_len = translateLockLength(lock.size()); try { Libcore.os.fcntlFlock(fd, F_SETLKW64, flock); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } removeLock(lock); }
/** * Non-API method to release a given lock on a file channel. Assumes that * the lock will mark itself invalid after successful unlocking. */ public void release(FileLock lock) throws IOException { checkOpen(); StructFlock flock = new StructFlock(); flock.l_type = (short) F_UNLCK; flock.l_whence = (short) SEEK_SET; flock.l_start = lock.position(); flock.l_len = translateLockLength(lock.size()); try { Libcore.os.fcntlFlock(fd, F_SETLKW64, flock); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } removeLock(lock); }
success = (Libcore.os.fcntlFlock(fd, wait ? F_SETLKW64 : F_SETLK64, flock) != -1); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException();
success = (Libcore.os.fcntlFlock(fd, wait ? F_SETLKW64 : F_SETLK64, flock) != -1); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException();