classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: file locks


From: Casey Marshall
Subject: [cp-patches] FYI: file locks
Date: Sun, 10 Jul 2005 13:11:26 -0700

Hi,

I'm checking in this little patch that implements file locks in gnu.java.nio.channels.FileChannelImpl. This just uses straight C in the gnu_java_nio_channels_FileChannelImpl.c file, protected by appropriate #ifdefs.

2005-07-10  Casey Marshall  <address@hidden>

    * configure.ac (AC_CHECK_HEADERS): add 'fcntl.h'.
    (AC_CHECK_FUNCS): add 'fcntl'.
    * native/jni/java-nio/gnu_java_nio_channels_FileChannel.c:
    Include <fcntl.h> if HAVE_FCNTL_H.
    (Java_gnu_java_nio_channels_FileChannelImpl_lock,
    Java_gnu_java_nio_channels_FileChannelImpl_unlock): implemented
    if HAVE_FCNTL.

Attachment: flock.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]