aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/lang/natSystem.cc
AgeCommit message (Collapse)AuthorFilesLines
2000-09-11BytesToUnicode.java (getDefaultDecoder): Let default decoder use iconv.Tom Tromey1-0/+21
* gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let default decoder use iconv. * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder): Let default encoder use iconv. * configure: Rebuilt. * configure.in: Check for nl_langinfo and <langinfo.h>. * java/lang/natSystem.cc (file_encoding): New function. (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible. From-SVN: r36306
2000-09-05natIconv.cc (read): Remove unused local.Bryce McKinlay1-2/+0
2000-09-05 Bryce McKinlay <bryce@albatross.co.nz> * gnu/gcj/convert/natIconv.cc (read): Remove unused local. (write): Ditto. * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null stack. Synchronize. * java/lang/fdlibm.h: #undef __P if previously defined. * java/lang/natSystem.cc (currentTimeMillis): Remove unused local. * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable block. (mcastGrp): Ditto. From-SVN: r36158
2000-09-04re GNATS java.io/203 (File.createTempFile doesn't close descriptor)Anthony Green1-2/+4
Fix for PR java.io/203: * java/io/File.java (createTempFile): Obey directory argument. Use java.io.tmpdir if needed. Don't leave FileDescripators open. * java/lang/natSystem.cc (init_properties): Use TMPDIR environment variable to set java.io.tmpdir on non-WIN32 systems. From-SVN: r36143
2000-08-26Makefile.in: Rebuilt.Anthony Green1-24/+21
2000-08-26 Anthony Green <green@redhat.com> * Makefile.in: Rebuilt. * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a friend. * prims.cc: Include ClassLoader.h. (_Jv_RunMain): When executing jar files, classpath must be the jar file only. Lose our reference to the system ClassLoader in order to get a new one with the correct classpath. * java/lang/natSystem.cc (init_properties): When executing a jar file, only use the jar file for java.class.path. * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name for bytecode archives. * gnu/gcj/runtime/FirstThread.java: Handle case where manifest exists, but not Main-Class. From-SVN: r35999
2000-08-21natSystem.cc (init_properties): Change sourceware reference to ↵Anthony Green1-8/+33
sources.redhat.com. Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com> * java/lang/natSystem.cc (init_properties): Change sourceware reference to sources.redhat.com. * include/java-props.h: Add _Jv_Jar_Class_Path. * prims.cc: Ditto. Set it from `gij -jar file' option. * java/lang/natSystem.cc (init_properties): Set java.class.path from {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .} * java/util/PropertyPermission.java: Import from GNU Classpath. * Makefile.in: Rebuilt. * Makefile.am: Add java/util/PropertyPermission.java. * java/lang/System.java: Add setProperty method. * gij.cc (main): Add -jar option to execute jar files. (help): Describe -jar option. * prims.cc (_Jv_RunMain): Add support for jar execution mode. * gnu/gcj/tools/Gij.java: New file. * include/jvm.h: Add is_jar argument to _Jv_RunMain. * gnu/gcj/runtime/FirstThread.java (main): New method. * java/util/jar/Attributes.java: Correct comment spelling. From-SVN: r35829
2000-08-02Makefile.in: Rebuilt.Tom Tromey1-29/+3
* Makefile.in: Rebuilt. * Makefile.am (libgcj_la_SOURCES): Added posix.cc. * java/net/natPlainSocketImpl.cc: Include posix.h. (accept): Use _Jv_select. * java/net/natPlainDatagramSocketImpl.cc: Include posix.h. (receive): Use _Jv_select. * java/io/natFileDescriptorPosix.cc: Include posix.h. (available): Use _Jv_select. * java/lang/natSystem.cc: Include posix.h. (currentTimeMillis): Use _Jv_gettimeofday. * include/posix.h: New file. * posix.cc: New file. From-SVN: r35435
2000-04-21re GNATS libgcj/15 (_REENTRANT should be defined more consistently)Tom Tromey1-7/+0
Fix for PR libgcj/15: * java/util/natGregorianCalendar.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't define. * java/net/natInetAddress.cc (_REENTRANT): Don't define. * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't define. * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't define. * configure: Rebuilt. * configure.in: If using POSIX threads, define _REENTRANT if needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define GETHOSTBYNAME_R_NEEDS_REENTRANT. From-SVN: r33318
2000-03-07All files: Updated copyright information.Tom Tromey1-3/+3
* All files: Updated copyright information. * COPYING: New file. * COPYING.LIB: Removed. * LIBGCJ_LICENSE: We now use GPL + special exception. From-SVN: r32387
2000-02-15natSystem.cc (init_properties): set java.lang.classpath property.Bryce McKinlay1-2/+9
* java/lang/natSystem.cc (init_properties): set java.lang.classpath property. From-SVN: r31981
2000-02-11natFileDescriptorPosix.cc (open): Recognize EXCL flag.Tom Tromey1-0/+3
* java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag. * java/io/FileDescriptor.java (EXCL): New static field. * java/io/File.java (tmpdir): New static field. (createTempFile): New method. (nextValue): New method. * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir property. From-SVN: r31922
2000-01-19* All files: Updated copyright to reflect Cygnus purchase.Tom Tromey1-3/+3
From-SVN: r31504
2000-01-11natSystem.cc (getpwuid_adaptor): New adaptor for HP/UX.Tom Tromey1-1/+12
* java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for HP/UX. From David Scott Urban. From-SVN: r31332
1999-12-15natSystem.cc (init_properties): Don't set user.name or user.home if ↵Tom Tromey1-1/+5
NO_GETUID defined. * java/lang/natSystem.cc (init_properties): Don't set user.name or user.home if NO_GETUID defined. Only set user.dir if getcwd exists. * include/config.h.in: Rebuilt. * acconfig.h (NO_GETUID): New define. * configure.in: Rebuilt. * configure.in: Define NO_GETUID in cross case. Check for getcwd in native case. From-SVN: r30964
1999-11-25prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayElementFromElementType.Tom Tromey1-44/+2
* prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayElementFromElementType. (_Jv_NewPrimArray): Likewise. * java/lang/natObject.cc (clone): Use _Jv_GetArrayElementFromElementType instead of sizeof. * java/lang/natSystem.cc (arraycopy): Use _Jv_GetArrayElementFromElementType. * include/jvm.h (_Jv_GetArrayElementFromElementType): New function. From-SVN: r30655
1999-10-15gij.cc (main): Formatting fixes.Tom Tromey1-3/+15
* gij.cc (main): Formatting fixes. (_Jv_Compiler_Properties): Define. * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't declare. (init_properties): Set properites from _Jv_Compiler_Properties. * include/java-props.h (_Jv_Compiler_Properties, _Jv_Environment_Properties): Declare. From-SVN: r30020
1999-10-15libtool-version: Catch up by incrementing current.Anthony Green1-0/+28
* libtool-version: Catch up by incrementing current. * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39. * configure, include/config.h.in: Rebuilt. * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine. * configure.in: Added --disable-getenv-properties and new define `DISABLE_GETENV_PROPERTIES'. * prims.cc (PROCESS_GCJ_PROPERTIES): Define. (next_property_key): New function. (next_property_value): New function. (process_gcj_properties): New function. (JvRunMain): Call process_gcj_properties. (_JvRunMain): Ditto. * java/lang/natSystem.cc (init_properties): Set properties defined in GCJ_PROPERTIES. Also add 1.2 style versioning properties. * include/java-props.h: New file. * java/lang/natSystem.cc (init_properties): Add new properties to conform with Java Product Versioning Specification. From-SVN: r30007
1999-09-10configure: Rebuilt.Tom Tromey1-1/+1
* configure: Rebuilt. * configure.in: Build include/Makefile. * Makefile.in: Rebuilt. * Makefile.am (SUBDIRS): Added gcj and include. (install-data-local): New target. (extra_headers): New macro. * include/Makefile.in: New file. * include/Makefile.am: New file. * interpret.cc: Don't include gcj/field.h or gcj/cni.h. * java/lang/reflect/natField.cc: Don't include gcj/field.h or gcj/cni.h. * boehm.cc: Don't include java-threads.h or gcj/field.h. * resolve.cc: Include config.h. * defineclass.cc: Include config.h. * include/java-interp.h: Don't include config.h. * include/jvm.h: Include java-threads.h, Object.h, java-gc.h, cni.h. * gcj/javaprims.h: Regenerated namespace decls. * classes.pl (scan): Don't put `;' after closing brace. * Makefile.in: Rebuilt. * Makefile.am (INCLUDES): Added -I for top_srcdir. * configure.in: Create gcj/Makefile. * gcj/Makefile.in: New file. * gcj/Makefile.am: New file. * java/lang/Object.h: Don't include any other headers. * gcj/array.h: Renamed from include/java-array.h. * gcj/field.h: Renamed from include/java-field.h. * gcj/method.h: Renamed from include/java-method.h. * gcj/cni.h, gcj/javaprims.h: Moved from include/. Updated all files to reflect new include structure. From-SVN: r29278
1999-08-22Added missing whitespace in function calls within adaptorsAlexandre Oliva1-2/+2
Pointed out by Tom From-SVN: r28803
1999-08-21natSystem.cc (getpwuid_adaptor): New overloaded function that detects the ↵Alexandre Oliva1-1/+30
signature of getpwuid_r. * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded function that detects the signature of getpwuid_r. (init_properties): Use it. * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r. (toString): Use it. From-SVN: r28790
1999-07-31natSystem.cc (arraycopy): Use bcopy if memmove is not available.Alexandre Oliva1-1/+6
1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br> * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not available. Don't cast memmove args to (void*). * configure.in: Do not abort if memmove is not available. From-SVN: r28360
1999-05-17natSystem.cc (init_properties): URL now points to sourceware.Tom Tromey1-1/+1
* java/lang/natSystem.cc (init_properties): URL now points to sourceware. From-SVN: r26974
1999-05-07acconfig.h (GCJVERSION): New undef.Tom Tromey1-6/+25
* acconfig.h (GCJVERSION): New undef. * java/lang/natSystem.cc (init_properties): Define java.version, java.class.version, os.name, os.arch, os.version. Include <sys/utsname.h> if required. * configure: Rebuilt. * configure.in: Compute and define GCJVERSION. * java/lang/natSystem.cc (default_file_encoding): Now static. From-SVN: r26830
1999-05-05natSystem.cc (DEFAULT_FILE_ENCODING): New macro.Per Bothner1-1/+6
� * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro. (default_file_encoding): New global, initial value is above macro. (init_properties): Default file.encoding to default_file_encoding. From-SVN: r26797
1999-04-19natSystem.cc (init_properties): Only declare pwd_entry once.Tom Tromey1-1/+1
* java/lang/natSystem.cc (init_properties): Only declare pwd_entry once. From Anthony Green. From-SVN: r26545
1999-04-13natSystem.cc (arraycopy): Don't always use jbyteArray; instead switch on ↵Tom Tromey1-9/+51
actual element type. * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray; instead switch on actual element type. From-SVN: r26405
1999-04-12natSystem.cc (SystemClass): New define.Tom Tromey1-3/+10
* java/lang/natSystem.cc (SystemClass): New define. (init_properties): Synchronize. From-SVN: r26372
1999-04-07Initial revisionTom Tromey1-0/+259
From-SVN: r26263