classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: FileChannelImpl.c fixes


From: Roman Kennke
Subject: [cp-patches] FYI: FileChannelImpl.c fixes
Date: Tue, 17 Jan 2006 16:36:06 +0000

Hi there,

Here come some fixes for FileChannelImpl.c. Mainly this provides
alternative implementations of the methods for systems that don't have
a filesystems and replace some ssize_t variables with jint for a little
more correctness. Also this reimplements lock and unlock to use the
corresponding target native macros.

2006-01-17  Roman Kennke  <address@hidden>

        * native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c:
        (Java_gnu_java_nio_channels_FileChannelImpl_init): Improved
        exception messages a little.
        (Java_gnu_java_nio_channels_FileChannelImpl_open): Provided
        alternative implementation for systems without filesystems.
        Replaced snprintf with the corresponding target native macro.
        (Java_gnu_java_nio_channels_FileChannelImpl_implCloseChannel):
        Only do something when we have a filesystem.
        (Java_gnu_java_nio_channels_FileChannelImpl_available): Provided
        alternative implementation for systems without filesystems.
        (Java_gnu_java_nio_channels_FileChannelImpl_size): Provided
        alternative implementation for systems without filesystems.
        (Java_gnu_java_nio_channels_FileChannelImpl_implPosition): Provided
        alternative implementation for systems without filesystems.
        (Java_gnu_java_nio_channels_FileChannelImpl_seek):
        Only do something when we have a filesystem.
        (Java_gnu_java_nio_channels_FileChannelImpl_implTruncate):
        Only do something when we have a filesystem.
        (Java_gnu_java_nio_channels_FileChannelImpl_mapImpl): Provided
        alternative implementation for systems without filesystems.
        (Java_gnu_java_nio_channels_FileChannelImpl_read__):
        Replaced ssize_t variables with jint. Provided
        alternative implementation for systems without filesystems.
        (Java_gnu_java_nio_channels_FileChannelImpl_read___3BII):
        Replaced ssize_t variables with jint. Provided
        alternative implementation for systems without filesystems.
        (Java_gnu_java_nio_channels_FileChannelImpl_write__I):
        Replaced ssize_t variables with jint. Provided
        alternative implementation for systems without filesystems.
        (Java_gnu_java_nio_channels_FileChannelImpl_force):
        Only do something when we have a filesystem.
        (Java_gnu_java_nio_channels_FileChannelImpl_write___3BII):
        Replaced ssize_t variables with jint. Provided
        alternative implementation for systems without filesystems.
        (Java_gnu_java_nio_channels_FileChannelImpl_lock): Reimplemented
        to use the corresponding target native macro.
        (Java_gnu_java_nio_channels_FileChannelImpl_unlock): Reimplemented
        to use the corresponding target native macro.

/Roman

Attachment: patch.diff
Description: Text Data


reply via email to

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