classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: New Posix Layer


From: Roman Kennke
Subject: [cp-patches] FYI: New Posix Layer
Date: Mon, 16 Jan 2006 12:32:58 +0000

I committed the new Posix-Layer that implements a couple of portability
macros and functions for use in our native code. This is meant to
replace the generic layer at some point in the future (maybe 1-2 weeks
before the next release or so). For the time beeing Torsten hacked the
generic layer to redirect to the posix layer if the build-time flag
CP_NEW is set. (Maybe somebody more familiar with the build-machinery
could add a configure switch for this?). Setting this flag does:

- use functions instead of macros for syscalls on Posix-like platforms
(enabling easier debugging)
- shorten macro names

The mapping from the old macro names to the new ones is done in the
generic layer until we decide that the posix layer is nice as it is and
turn it on by default.

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

        * jni/java-io/java_io_VMFile.c
        (Java_java_io_VMFile_list): Use new 4 argument version of
        TARGET_NATIVE_FILE_READ_DIR macro.
        * target/Linux/target_native_io.h: Fixed comment at #endif.
        * target/Linux/target_native_memory.h: New file. Contains
        portability macros for memory operations.
        * target/generic/target_generic.c: New file. Contains some functions
        for portability.
        * target/generic/target_generic.h: Use posix target and shorter macro
        names if CP_NEW is set.
        * target/generic/target_generic_file.h: Use posix target and shorter
        macro names if CP_NEW is set.
        (TARGET_NATIVE_FILE_READ_DIR): New parameter for maxNameLength.
        * target/generic/target_generic_io.c: New file. Contains some
        functions for IO portability.
        * target/generic/target_generic_io.h: Use posix target and shorter
        macro names if CP_NEW is set.
        * target/generic/target_generic_misc.c: New file. Contains some
        functions for miscallaneaous portability issues.
        * target/generic/target_generic_misc.h: Use posix target and shorter
        macro names if CP_NEW is set.
        * target/generic/target_generic_network.c: New file. Contains some
        functions for networking portability.
        * target/generic/target_generic_network.h: Use posix target and
        shorter macro names if CP_NEW is set.
        * target/posix/Makefile.am,
        * target/posix/target_posix.c,
        * target/posix/target_posix.h,
        * target/posix/target_posix_file.c,
        * target/posix/target_posix_file.h,
        * target/posix/target_posix_io.c,
        * target/posix/target_posix_io.h,
        * target/posix/target_posix_math.c,
        * target/posix/target_posix_math.h,
        * target/posix/target_posix_memory.c,
        * target/posix/target_posix_memory.h,
        * target/posix/target_posix_misc.c,
        * target/posix/target_posix_misc.h,
        * target/posix/target_posix_network.c,
        * target/posix/target_posix_network.h:
        New files. This implements the target native layer macros for
        Posix-like systems.


/Roman

Attachment: patch.diff.gz
Description: GNU Zip compressed data


reply via email to

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