2004-01-23 Michael Koch <konqueror@gmx.de>
* java/io/FileDescriptor.java (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorEcos.cc (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorPosix.cc (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorWin32.cc (lock): New method. (tryLock): New method. (unlock): New method. From-SVN: r76421
This commit is contained in:
parent
0e707673d2
commit
ca1d829f31
5 changed files with 110 additions and 0 deletions
|
@ -350,3 +350,24 @@ java::io::FileDescriptor::available(void)
|
|||
// FIXME:
|
||||
return getLength() - getFilePointer();
|
||||
}
|
||||
|
||||
void
|
||||
java::io::FileDescriptor::lock (jlong pos, jint len, jboolean shared)
|
||||
{
|
||||
throw new IOException (JvNewStringLatin1
|
||||
("java.io.FileDescriptor.lock() not implemented"));
|
||||
}
|
||||
|
||||
jboolean
|
||||
java::io::FileDescriptor::tryLock (jlong pos, jint len, jboolean shared)
|
||||
{
|
||||
throw new IOException (JvNewStringLatin1
|
||||
("java.io.FileDescriptor.tryLock() not implemented"));
|
||||
}
|
||||
|
||||
void
|
||||
java::io::FileDescriptor::unlock (jlong pos, jint len)
|
||||
{
|
||||
throw new IOException (JvNewStringLatin1
|
||||
("java.io.FileDescriptor.unlock() not implemented"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue