summaryrefslogtreecommitdiff
path: root/native
Commit message (Collapse)AuthorAgeFilesLines
* Use jack_client_open rather than deprecated jack_client_new.Andrew John Hughes2012-10-261-5/+10
| | | | | | | | | | | 2012-10-26 Andrew John Hughes <gnu_andrew@member.fsf.org> * native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c: (Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_open_1(JNIEnv*, jclass, jlong)): Use jack_client_open instead of deprecated jack_client_new. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Handle malloc() failure in java_util_VMTimeZone.c file.Ivan Maidanski2012-10-151-1/+8
| | | | | | | | | | | | 2011-07-20 Ivan Maidanski <ivmai@mail.ru> * native/jni/java-util/java_util_VMTimeZone.c: Include jcl.h file. (Java_java_util_VMTimeZone_getSystemTimeZoneId): Throw OutOfMemoryException in case of malloc() failure. [ penberg@kernel.org: cleanups ] Signed-off-by: Pekka Enberg <penberg@kernel.org>
* Replace all .cvsignore files with .gitignoreIvan Maidanski2012-10-1522-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-06-10 Ivan Maidanski <ivmai@mail.ru> * compat/.gitignore, * compat/java.net/.gitignore, * doc/.gitignore, * doc/api/.gitignore, * doc/www.gnu.org/.gitignore, * doc/www.gnu.org/announce/.gitignore, * doc/www.gnu.org/cp-tools/.gitignore, * doc/www.gnu.org/docs/.gitignore, * doc/www.gnu.org/downloads/.gitignore, * doc/www.gnu.org/events/.gitignore, * doc/www.gnu.org/faq/.gitignore, * examples/.gitignore, * external/.gitignore, * external/jsr166/.gitignore, * external/relaxngDatatype/.gitignore, * external/sax/.gitignore, * external/w3c_dom/.gitignore, * gnu/classpath/.gitignore, * gnu/java/locale/.gitignore, * gnu/java/security/.gitignore, * gnu/test/.gitignore, * include/.gitignore, * java/util/.gitignore, * lib/.gitignore, * native/.gitignore, * native/fdlibm/.gitignore, * native/jawt/.gitignore, * native/jni/.gitignore, * native/jni/classpath/.gitignore, * native/jni/gconf-peer/.gitignore, * native/jni/gstreamer-peer/.gitignore, * native/jni/gtk-peer/.gitignore, * native/jni/java-io/.gitignore, * native/jni/java-lang/.gitignore, * native/jni/java-math/.gitignore, * native/jni/java-net/.gitignore, * native/jni/java-nio/.gitignore, * native/jni/java-util/.gitignore, * native/jni/midi-alsa/.gitignore, * native/jni/midi-dssi/.gitignore, * native/jni/native-lib/.gitignore, * native/jni/qt-peer/.gitignore, * native/jni/xmlj/.gitignore, * native/plugin/.gitignore, * native/testsuite/.gitignore, * native/vmi/.gitignore, * resource/.gitignore, * resource/META-INF/services/.gitignore, * scripts/.gitignore, * test/.gitignore, * test/gnu.java.lang.reflect/.gitignore, * test/java.io/.gitignore, * test/java.lang.reflect/.gitignore, * test/java.net/.gitignore, * test/java.util/.gitignore, * tools/.gitignore, * tools/gnu/classpath/tools/doclets/.gitignore, * tools/gnu/classpath/tools/doclets/debugdoclet/.gitignore, * tools/gnu/classpath/tools/doclets/htmldoclet/.gitignore, * tools/gnu/classpath/tools/doclets/xmldoclet/.gitignore, * tools/gnu/classpath/tools/doclets/xmldoclet/doctranslet/.gitignore, * tools/gnu/classpath/tools/gjdoc/.gitignore, * tools/gnu/classpath/tools/gjdoc/expr/.gitignore, * tools/gnu/classpath/tools/java2xhtml/.gitignore, * tools/gnu/classpath/tools/taglets/.gitignore, * vm/.gitignore, * vm/reference/.gitignore: Renamed from .cvsignore. Signed-off-by: Pekka Enberg <penberg@kernel.org>
* Use accessor functions to manipulate xmlOutputBufferDodji Seketeli2012-08-091-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is a fix to prepare the xmlj_io.c file of gnu classpath to a coming API change in libxml2. Basically, we were previously accessing fields inside the xmlOutputBuffer struct of libxml2. In a coming version of libxml2, that won't be possible anymore. Client code will have to use accessor functions instead. For the gory details, there is an interestin note of Daniel Veillard (author of libxml2) at https://mail.gnome.org/archives/desktop-devel-list/2012-August/msg00007.html. This patch defines too accessor macros that, depending on the version of libxml2 we are using will either access the fields of xmlOutputBuffer directly, or use the new accessor function. Tested on x86_64-unknown-linux-gnu against trunk. 2012-08-09 Dodji Seketeli <dodji@redhat.com> Use accessor functions to manipulate xmlOutputBuffer * native/jni/xmlj/xmlj_io.c (GET_XML_OUTPUT_BUFFER_CONTENT) (GET_XML_OUTPUT_BUFFER_SIZE): New macros. (xmljOutputWriteCallback): Use them. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Remove use of deprecated pango_ft2_font_map_create_context which breaks ↵Andrew John Hughes2012-05-041-3/+3
| | | | | | | | | | | | | | | | -Werror build. 2012-05-04 Andrew John Hughes <ahughes@redhat.com> * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c, (font_map): Renamed from ft2_map. (Java_gnu_java_awt_peer_gtk_GdkFontPeer_initStaticState(JNIEnv, jclass)): Remove cast to pango_ft2_font_map_new. (Java_gnu_java_awt_peer_gtk_GdKFontPeer_setFont(JNIEnv, jobject,jstring,jint,jint)): Call pango_font_map_create_context rather than deprecated pango_ft2_font_map_create_context. Signed-off-by: Andrew John Hughes <ahughes@redhat.com>
* Replace use of deprecated gdk_pixbuf_unref.Andrew John Hughes2012-04-241-1/+1
| | | | | | | | | 2012-04-24 Andrew John Hughes <ahughes@redhat.com> * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: (Java_gnu_java_awt_peer_gtk_GtkImage_freePixbuf): Use g_object_unref rather than deprecated gdk_pixbuf_unref to avoid warning.
* PR libgcj/52694Andrew Haley2012-03-291-0/+4
| | | | | * native/jni/java-io/java_io_VMConsole.c (IUCLC): Define, if undefined.
* Fix GStreamer make distcheck build.Andrew John Hughes2012-02-221-2/+0
| | | | | | | | 2012-02-15 Andrew John Hughes <ahughes@redhat.com> * native/jni/gstreamer-peer/gst_classpath_src.c, (gst_classpath_src_class_init(GstClasspathSrcClass)): Remove unused gstelement_class.
* Add java/io/Console class and java/lang/System.console() methodPekka Enberg2012-01-082-1/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch implements java/io/Console and adds a console() method to java/lang/System. The implementation is lame but it works reasonably well. 2012-01-07 Pekka Enberg <penberg@kernel.org> * include/Makefile.am: Add java_io_VMConsole.h. * java/io/Console: Add Java 1.6 java/io/Console API. * java/lang/System.java: (console): Add Java 1.6 console() API. * vm/reference/java/io/VMConsole: Add new class. * native/jni/java-io/Makefile.am: Add java_io_VMConsole.c. * native/jni/java-io/java_io_VMConsole.c: Add native helpers for java/io/Console. Signed-off-by: Pekka Enberg <penberg@kernel.org>
* Fix clock_gettime() support check for DarwinPekka Enberg2011-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | Darwin doesn't support clock_gettime() but has _POSIX_MONOTONIC_CLOCK defined so use a more strict check with HAVE_CLOCK_GETTIME. This fixes the following compilation error: java_lang_VMSystem.c: In function ‘Java_java_lang_VMSystem_nanoTime’: java_lang_VMSystem.c:148: warning: implicit declaration of function ‘clock_gettime’ java_lang_VMSystem.c:148: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function) java_lang_VMSystem.c:148: error: (Each undeclared identifier is reported only once java_lang_VMSystem.c:148: error: for each function it appears in.) 2011-07-05 Pekka Enberg <penberg@kernel.org> * configure.ac: Check for clock_gettime(). native/jni/java-lang/java_lang_VMSystem.c: (Java_java_lang_VMSystem_nanoTime): Fix compile error on systems that don't have clock_gettime().
* Fix issues with building with -Werror and gcc 4.6.Andrew John Hughes2011-06-276-19/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-06-27 Andrew John Hughes <ahughes@redhat.com> Fix issues with building with -Werror and gcc 4.6. * native/jni/gtk-peer/GtkDragSourceContextPeer.c: (Java_gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer_nativeSetCursor): Remove unused ptr variable and mark env as unused. (connect_signals_for_widget(GtkWidget*)): Mark w unused and don't set it. (Java_gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer_nativeStartDrag): Remove unused ptr variable. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c: (Java_gnu_java_awt_peer_gtk_ComponentGraphics_initState): Remove unused width and height variables. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkRobotPeer.c: (Java_gnu_java_awt_peer_gtk_GdkRobotPeer_mouseMove): Check result of XTestFakeMotionEvent call. (Java_gnu_java_awt_peer_gtk_GdkRobotPeer_mousePress): Likewise for XTestFakeButtonEvent call. (Java_gnu_java_awt_peer_gtk_GdkRobotPeer_mouseRelease): Likewise. (Java_gnu_java_awt_peer_gtk_GdkRobotPeer_keyPress): Use g_message instead of deprecated g_printerr. Check result of XTestFakeKeyEvent. (Java_gnu_java_awt_peer_gtk_GdkRobotPeer_keyRelease): Likewise. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c: (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup): Completely disable code to attach parent, including use of ptr2 and parent argument, and reinstate original FIXME to explain why. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c: (Java_gnu_java_awt_peer_gtk_GtkVolatileImage_nativeGetPixels): Remove unused depth variable. * native/jni/midi-alsa/gnu_javax_sound_midi_alsa_AlsaPortDevice.c, (Java_gnu_javax_sound_midi_alsa_AlsaPortDevice_run_1receiver_1thread_1): Check return values and throw an InternalError if a problem occurs.
* PR classpath/42823: Remove memory leaks in native code of ↵Andrew John Hughes2011-03-311-0/+2
| | | | | | | | | | | | | java.net.VMInetAddress. 2011-03-30 Gert Brettlecker <gert.brettlecker@ergon.ch> PR classpath/42823 * native/jni/java-net/java_net_VMInetAddress.c, (Java_VMInetAddress_getHostByAddr(JNIEnv*,jclass,jarray)): Free address structure after use. (Java_java_net_VMInetAddress_aton(JNIEnv*,jclass,jstring)): Release UTF string after use.
* Fix Java_java_nio_VMDirectByteBuffer_allocate() for negative capacityPekka Enberg2011-03-171-0/+7
| | | | | | | | | | | JavaDocs clearly state that ByteBuffer.allocateDirect() must throw IllegalArgumentException if capacity is negative. 2011-03-17 Pekka Enberg <penberg@kernel.org> * native/jni/java-nio/java_nio_VMDirectByteBuffer.c: (Java_java_nio_VMDirectByteBuffer_allocate): Check for negative capacity.
* Fix clock_gettime() fallbackPekka Enberg2011-01-221-3/+1
| | | | | | | | | | | | | | | | As suggested by Ivan Maidanski: The clock_gettime(CLOCK_MONOTONIC) function may fail on some machines (even if _POSIX_MONOTONIC_CLOCK has been defined during compilation), so it's better to silently fall-back to gettimeofday() in that case. Reviewed-by: Andrew Haley <aph@redhat.com> 2011-01-22 Pekka Enberg <penberg@kernel.org> * native/jni/java-lang/java_lang_VMSystem.c (Java_java_lang_VMSystem_nanoTime): Fallback to gettimeofday() if clock_gettime(CLOCK_MONOTONIC) fails.
* Rename currentTimeMillis to currentTimeMicrosPekka Enberg2011-01-221-3/+3
| | | | | | | | | | Reviewed-by: Andrew Haley <aph@redhat.com> 2011-01-22 Pekka Enberg <penberg@kernel.org> * native/jni/java-lang/java_lang_VMSystem.c (currentTimeMillis): Rename currentTimeMillis to currentTimeMicros to reflect what the function returns.
* PR44411: Make VMSystem.nanoTime independent of wall time where possible.Andrew John Hughes2010-11-051-8/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2010-11-04 Andrew John Hughes <ahughes@redhat.com> Provide a fallback for systems without POSIX timers. * native/jni/java-lang/java_lang_VMSystem.c: (currentTimeMillis): New function which provides the behaviour for both Java_java_lang_VMSystem_currentTimeMillis and the fallback by obtaining the result of gettimeofday. (Java_java_lang_VMSystem_nanoTime): Return currentTimeMillis multiplied by a 1000 if a monotonic clock is unavailable. (Java_java_lang_VMSystem_currentTimeMillis): Split main behaviour out into currentTimeMillis and then return its result divided by a 1000. 2010-07-08 Roland Brand <roland.brand@ergon.ch> Pekka Enberg <penberg@kernel.org> PR classpath/44411 * native/jni/java-lang/java_lang_VMSystem.c: (Java_java_lang_VMSystem_nanoTime): Implement using POSIX monotonic clock support and clock_gettime. (Java_java_lang_VMSystem_currentTimeMillis): Use old nanoTime method (which uses gettimeofday) to provide the current time in milliseconds. * vm/reference/java/lang/VMSystem.java: (currentTimeMillis()): Make native with its own implementation rather than using nanoTime, which should be independent of wall-clock time.
* PR classpath/40889: "gtktoolkit" var in gtk_GtkToolkit.c requires NewGlobalRefAndrew John Hughes2010-08-101-1/+2
| | | | | | | | | | 2010-04-12 Ivan Maidanski <ivmai@mail.ru> PR classpath/40889 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c: (Java_gnu_java_awt_peer_gtk_GtkToolkit_gtkInit): Convert gtktoolkit value to a global reference (to be accessible in set_running_flag, clear_running_flag).
* jcl changes:Andrew John Hughes2010-08-101-41/+87
| | | | | | | | | | | | | | | | | | | | | | | | 1. Minor fix for JCL_realloc() (don't call free(ptr) if ptr is null like in JCL_free); 2. 32/64-bit code variants collapsed by introducing several macros (which select the proper class name, primitive type, etc.); 3. new recognized macro (JCL_NO_JNIONLOAD) which removes the need for JNI_OnLoad (thus, if JCL_NO_JNIONLOAD is defined, it is possible to link jcl.c statically). 2010-04-12 Ivan Maidanski <ivmai@mail.ru> * native/jni/classpath/jcl.c: Simplify attribute #ifndef block. (JCL_POINTER_CLASSNAME): Define dependent on size of void*. (JCL_POINTER_DATASIGN): Likewise. (JCL_POINTER_INTTYPE): Likewise. (JCL_POINTER_GETFIELD): Likewise. (JNI_OnLoad): Define only if not JCL_NO_JNIONLOAD. Use JCL_POINTER_xxx macros instead of SIZEOF_VOID_P. (JCL_NewRawDataObject): Use JCL_POINTER_xxx macros instead of SIZEOF_VOID_P. Initialize rawDataClass, rawData_fid, rawData_mid global variables if JCL_NO_JNIONLOAD. (JCL_realloc): Don't call free() for NULL pointer. (JCL_GetRawData): Use JCL_POINTER_xxx macros instead of SIZEOF_VOID_P. Initialize rawDataClass, rawData_fid, rawData_mid global variables if JCL_NO_JNIONLOAD.
* 2009-10-22 Andrew Haley <aph@redhat.com>Andrew Haley2009-10-221-2/+4
| | | | | | | | | | | | * native/jni/native-lib/cpnet.c (cpnet_addMembership): Fix aliasing warning. (cpnet_dropMembership): Likewise. 2009-10-21 Richard Guenther <rguenther@suse.de> PR cp-tools/39177 * tools/gnu/classpath/tools/jar/Creator.java (writeCommandLineEntries): Do not use uninitialized manifest.
* Handle XULRunner 1.9.1.Andrew John Hughes2009-02-051-0/+22
| | | | | | | | | | 2009-02-05 Andrew Haley <aph@redhat.com> PR libgcj/38861 * native/plugin/gcjwebplugin.cc: Cope with the changed header file format. https://bugzilla.mozilla.org/show_bug.cgi?id=455458 (GCJ_GetJavaClass): Likewise. (NP_Initialize): Likewise.
* Revert the return on chdir == -1.Andrew John Hughes2009-02-041-2/+1
| | | | | | | | | 2009-02-04 Andrew John Hughes <ahughes@redhat.com> * native/jni/native-lib/cpproc.c: (cpproc_forkAndExec): Don't return on a -1 result from chdir as this may be valid in some cases. A better fix is needed.
* Fix build errors on gcc 4.3.3 with -Werror.Andrew John Hughes2009-02-041-1/+3
| | | | | | | | 2009-02-03 Andrew John Hughes <ahughes@redhat.com> * native/jni/native-lib/cpproc.c: (cpproc_forkAndExec): Handle return of chdir.
* Fix missing null terminator.Andrew John Hughes2008-12-181-1/+2
| | | | | | | 2008-12-18 Andrew John Hughes <gnu_andrew@member.fsf.org> * native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c: Include '\0' in the string.
* PR38473: Prevent segmentation fault with bitmap fonts.Andrew John Hughes2008-12-101-2/+16
| | | | | | | | | | 2008-12-09 Andrew John Hughes <gnu_andrew@member.fsf.org> PR classpath/38473: * native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c: (Java_gnu_java_awt_peer_gtk_FreetypeGlyphVector_getGlyphOutlineNative): Check that the glyph is an outline before calling FT_Outline_Decompose.
* * native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.cMark Wielaard2008-11-061-3/+0
| | | | (getKerning): Removed unused cls, method, values.
* 2008-11-05 Andrew Haley <aph@redhat.com>Andrew Haley2008-11-051-8/+7
| | | | | | | | * gnu/java/awt/peer/gtk/FreetypeGlyphVector.java (getKerning): Return result in a float[], not a Point2D. (performDefaultLayout): Call getKerning with a float[]. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c (getKerning): Return result in a float[], not a Point2D.
* 2008-10-23 David Edelsohn <edelsohn@gnu.org>Tom Tromey2008-10-241-0/+8
| | | | * native/fdlibm/fdlibm.h: Undef hz.
* 2008-10-17 Robert Lougher <rob.lougher@gmail.com>Tom Tromey2008-10-171-2/+3
| | | | | | * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c (Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawGlyphVector): Release 'fonts'.
* Fix GStreamer peer typo.Andrew John Hughes2008-08-181-1/+1
| | | | | | | | 2008-08-18 Andrew John Hughes <gnu_andrew@member.fsf.org> * native/jni/gstreamer-peer/gst_native_pipeline.c: (get_free_space(int)): Use #else not #elif when there is no condition.
* 2008-08-12 Robert Schuster <robertschuster@fsfe.org>Robert Schuster2008-08-121-11/+2
| | | | | | * native/jni/java-net/local.c (local_bind): Removed fprintf call, fixed access outside of array bounds.
* 2008-07-07 Christian Thalinger <twisti@complang.tuwien.ac.at>Christian Thalinger2008-07-071-0/+6
| | | | | | | | | * configure.ac (AC_CHECK_HEADERS): Added sys/sockio.h, required for Solaris. (AC_CHECK_LIB): Check for socket. * native/jni/java-net/java_net_VMNetworkInterface.c (unistd.h): Added. [HAVE_SYS_SOCKIO_H] (sys/sockio.h): Likewise.
* 2008-06-23 Andrew Haley <aph@redhat.com>Andrew Haley2008-06-2315-17/+29
| | | | | | | | | | | | | | | | | | | | | * native/jawt/Makefile.am, native/fdlibm/Makefile.am, native/jni/java-util/Makefile.am, native/jni/gstreamer-peer/Makefile.am, native/jni/native-lib/Makefile.am, native/jni/gconf-peer/Makefile.am, native/jni/gtk-peer/Makefile.am, native/jni/xmlj/Makefile.am, native/jni/midi-alsa/Makefile.am, native/jni/java-nio/Makefile.am, native/jni/midi-dssi/Makefile.am, native/jni/classpath/Makefile.am, native/jni/java-io/Makefile.am, native/jni/java-lang/Makefile.am, native/jni/java-net/Makefile.am (AM_CFLAGS): Add @EXTRA_CFLAGS@. * configure.ac (EXTRA_CFLAGS): New macro. * lib/Makefile.am (resources): Add .svn.
* 2008-06-22 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-06-222-43/+43
| | | | | | | | | | | | | | | | | | | PR classpath/28664: * gnu/java/math/GMP.java: Renamed from VMBigInteger.java and fixed to use GMP instances directly. * include/Makefile.am: Generate GMP.h not VMBigInteger.h. * java/math/BigInteger.java: Send instances of GMP in calls to GMP rather than the wrapping BigInteger class. * native/jni/java-math/Makefile.am: Fix filename of source code file. * native/jni/java-math/gnu_java_math_GMP.c: Renamed from java_math_VMBigInteger.c. * native/jni/java-math/java_math_VMBigInteger.c, * vm/reference/java/math/VMBigInteger.java: Removed.
* 2008-05-16 Mario Torre <neugens@aicas.com>Mario Torre2008-05-161-1/+1
| | | | | | * native/jni/java-math/java_math_VMBigInteger.c (Java_java_math_VMBigInteger_natModInverse): fix variable res not initialized.
* 2008-05-15 Robert Schuster <robertschuster@fsfe.org>Robert Schuster2008-05-151-1/+140
| | | | | | | | | | | | | | | | | | * java/net/NetworkInterface.java: (isUp): New method. (isPointToPoint): Dito. (isLoopback): Dito. (supportsMulticast): Dito. * vm/reference/java/net/VMNetworkInterface.java: (isUp): New method. (isPointToPoint): Dito. (isLoopback): Dito. (supportsMulticast): Dito. * native/jni/java-net/java_net_VMNetworkInterface.c: (isUp): New method. (isPointToPoint): Dito. (isLoopback): Dito. (supportsMulticast): Dito.
* 2008-04-09 Mario Torre <neugens@aicas.com>Mario Torre2008-04-091-51/+55
| | | | | | | | | | | * java/io/File.java (canWrite): use canWriteDirectory(String). * vm/reference/java/io/VMFile.java (canWriteDirectory): new native method. * native/jni/java-io/java_io_VMFile.c: correct indentation, sync function names with header file definition. (Java_java_io_VMFile_canRead): use cpio_checkAccess to get access permission. Removed unused variable. (Java_java_io_VMFile_canWrite): likewise. (Java_java_io_VMFile_canWriteDirectory): new function.
* 2008-03-10 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-101-1/+1
| | | | | | | PR classpath/28664 * native/jni/java-math/Makefile.am: Add AM_LDFLAGS to the local LDFLAGS definition so gmp is linked.
* 2008-03-10 Jim Meyering <meyering@redhat.com>Tom Tromey2008-03-101-1/+3
| | | | | | Don't leak upon failed realloc. * native/jni/classpath/jcl.c (JCL_realloc): Upon failed realloc, free the original buffer before throwing the exception.
* 2008-03-03 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-03-031-4/+7
| | | | | | PR classpath/28664 * native/jni/Makefile.am: Check CREATE_GMPBI_LIBRARY and only compile GMP libraries if set.
* * native/jni/Makefile.am (DIST_SUBDIRS): Add java-math.Mark Wielaard2008-03-021-0/+1
|
* 2008-02-28 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-284-1/+1415
| | | | | | | | | | | | | | | | | | | | | | | | | PR classpath/28664 * include/Makefile.am: Add generation of header file java_math_VMBigInteger.h * java/math/BigInteger.java: Separate NativeMPI into VMBigInteger. * native/jni/Makefile.am: Add java-math. * native/jni/java-math/java_math_VMBigInteger.c: Renamed from java_math_BigInteger.c. * vm/reference/java/math/VMBigInteger.java: Former NativeMPI class from java.math.BigInteger. 2006-11-28 Raif S. Naffah <classpath@naffah-raif.name> Jeroen Frijters <jeroen@sumatra.nl> PR classpath/28664 * configure.ac: Add support for configuring GNU MP. * native/jni/Makefile.am: Include java-math directory if required. * native/jni/java-math/.cvsignore: New file. * native/jni/java-math/Makefile.am: Likewise. * native/jni/java-math/java_math_BigInteger.c: Likewise. * java/math/BigInteger.java: Added support for native methods. * gnu/classpath/Configuration.java.in (WANT_NATIVE_BIG_INTEGER): New field.
* 2008-02-27 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-281-0/+5
| | | | | | | * configure.ac: Check for sys/loadavg.h. * native/jni/java-lang/gnu_java_lang_management_VMOperatingSystemMXBeanImpl.c: Include sys/loadavg.h if found.
* 2008-02-26 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-261-104/+36
| | | | | | | | | | * gnu/java/util/prefs/EventDispatcher.java: Removed again. * gnu/java/util/prefs/GConfBasedPreferences.java, * gnu/java/util/prefs/gconf/GConfNativePeer.java, * java/util/prefs/AbstractPreferences.java, * native/jni/gconf-peer/GConfNativePeer.c: Revert to pre-release versions.
* 2008-02-22 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-221-8/+2
| | | | | | | | | | | | PR classpath/33751: * configure.ac: Don't check for readdir_r. * native/jni/native-lib/cpio.c: (cpio_readDir): Remove use of readdir_r, zero errno before starting and always leave a \0 at the end after strncpy. * vm/reference/java/io/VMFile.java: (list(String)): Make synchronized.
* 2008-02-21 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-221-22/+90
| | | | | | | | | | * gnu/java/util/prefs/EventDispatcher.java: Re-added. * gnu/java/util/prefs/GConfBasedPreferences.java, * gnu/java/util/prefs/gconf/GConfNativePeer.java, * java/util/prefs/AbstractPreferences.java, * native/jni/gconf-peer/GConfNativePeer.c: Regress to 0.96 versions.
* 2008-02-09 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2008-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | * native/jni/Makefile.am (all-local): Call check_jni_methods.sh directly. * scripts/Makefile.am (EXTRA_DIST): Removed check_jni_methods.sh. * include/Makefile.am (SOUND_H_FILES, GST_PEER_H_FILES) (XMLJ_H_FILES, GTKPEER_H_FILES, QTPEER_H_FILES) (GCONF_PREFS_FILES, H_FILES): Don't generate header files in the source directory, as it may not be writeable. (DISTCLEANFILES) Added H_FILES. * configure.ac (AC_CONFIG_FILES): Added scripts/check_jni_methods.sh. * scripts/check_jni_methods.sh: Removed. Moved over to .. * scripts/check_jni_methods.sh.in: New file. Added top_srcdir and top_builddir where necessary.
* 2008-02-09 Mario Torre <neugens@limasoftware.net>Mario Torre2008-02-091-16/+16
| | | | | | * include/java_util_VMTimeZone.h: Removed. * native/jni/gconf-peer/GConfNativePeer.c: all native methods, replaced GConfEngine with GConfClient and use GConfClient API instead.
* 2008-02-08 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2008-02-081-22/+0
| | | | | | | | | | | | | * vm/reference/java/lang/VMFloat.java (floatToIntBits): Removed unused method. * native/jni/java-lang/java_lang_VMFloat.c (Java_java_lang_VMFloat_floatToIntBits): Removed unused function. * include/java_lang_VMDouble.h: Regenerated. * doc/cp-vmintegration.texinfo (java.lang.VMFloat): Removed unused method floatToIntBits. (java.lang.VMDouble): Use similar text to text used for floatToRawIntBits for doubleToLongBits.
* 2008-02-08 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2008-02-081-30/+2
| | | | | | | | | | | | | | | | | * m4/acinclude.m4 (CLASSPATH_CHECK_JAVAH) [USER_JAVAH]: Check for gjavah-4.2 and gjavah-4.1. 2008-02-08 Dalibor Topic <robilad@kaffe.org> * vm/reference/java/lang/VMDouble.java (doubleToLongBits): Removed unused method. * native/jni/java-lang/java_lang_VMDouble.c (Java_java_lang_VMDouble_doubleToLongBits): Removed unused function. * include/java_lang_VMDouble.h: Regenerated. * doc/cp-vmintegration.texinfo (java.lang.VMDouble): Removed unused method doubleToLongBits.
* patch for avr32 supportDalibor Topic2008-01-131-0/+4
| | | | | | 2008-01-13 2007-12-18 Leen Toelen <toelen@gmail.com> * native/fdlibm/ieeefp.h: Added avr32 support.