9719e37cec
2004-01-23 Michael Koch <konqueror@gmx.de> * gnu/java/nio/FileLockImpl.java: Fixed filename in copyright. (released): Removed. (finalize): New method. * gnu/java/nio/natFileLockImpl.cc (releaseImpl): Implemented. * java/nio/channels/FileChannelImpl.java: Reworked imports. (lock): Implemented. (lockImpl): New method. (tryLock): Implemented. (tryLockImpl): New method. * java/nio/channels/natFileChannelImpl.cc (lockImpl): New method. (tryLockImpl): New method. From-SVN: r76422
25 lines
502 B
C++
25 lines
502 B
C++
// natFileLockImpl.cc
|
|
|
|
/* Copyright (C) 2003 Free Software Foundation
|
|
|
|
This file is part of libgcj.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
details. */
|
|
|
|
#include <config.h>
|
|
|
|
#include <jvm.h>
|
|
#include <errno.h>
|
|
|
|
#include <gnu/java/nio/FileLockImpl.h>
|
|
#include <java/io/FileDescriptor.h>
|
|
#include <java/io/IOException.h>
|
|
|
|
void
|
|
gnu::java::nio::FileLockImpl::releaseImpl ()
|
|
{
|
|
fd->unlock(position(), size());
|
|
}
|