summaryrefslogtreecommitdiff
path: root/libjava/posix.cc
Commit message (Collapse)AuthorAgeFilesLines
* posix.cc: added #include<stdio.h>Adam Megacz2003-07-081-0/+1
| | | | | | | | 2003-07-07 Adam Megacz <adam@xwt.org> * posix.cc: added #include<stdio.h> From-SVN: r69066
* jvm.h: (_Jv_GetNbArgs) added (_Jv_GetSafeArg) added (_Jv_SetArgs) addedMohan Embar2003-04-251-4/+1
| | | | | | | | | | | | | | | | | | | 2003-03-29 Mohan Embar <gnustuff@thisiscool.com> * include/jvm.h: (_Jv_GetNbArgs) added (_Jv_GetSafeArg) added (_Jv_SetArgs) added * prims.cc: (_Jv_GetNbArgs) implemented (_Jv_GetSafeArg) implemented (_Jv_SetArgs) implemented (_Jv_RunMain) use _Jv_SetArgs() instead of explicitly setting _Jv_argc and _Jv_argv * posix.cc: (_Jv_ThisExecutable) use _Jv_GetSafeArg() instead of _Jv_argv * java/lang/natRuntime.cc: (insertSystemProperties) use _Jv_GetSafeArg() instead of _Jv_argv From-SVN: r66067
* [multiple changes]Andrew Haley2003-03-101-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-03-10 2003-02-27 Mohan Embar <gnustuff@thisiscool.com> * include/jvm.h: removed declaration of _Jv_ThisExecutable() setter; made return value of getter const char* instead of char* * prims.cc: removed all references to _Jv_ThisExecutable(). These are in the platform-specific sections now. * posix.cc: define platform-specific _Jv_ThisExecutable(). Handle DISABLE_MAIN_ARGS and HAVE_PROC_SELF_EXE cases * win32.cc: define platform-specific _Jv_ThisExecutable() using GetModuleFilename() * java/lang/natRuntime.cc: set gnu.gcj.progname property to argv[0] instead of _Jv_ThisExecutable() 2003-03-10 Ranjit Mathew <rmathew@hotmail.com> * gnu/gcj/runtime/NameFinder.java (usingAddr2name): New flag that is set if we are using addr2name.awk instead of addr2line. (NameFinder): Set usingAddr2name if using addr2name.awk. (getExternalLabel): New native method to convert a method name to an external label. (lookup): Convert name given by addr2line to an external label before demangling. * gnu/gcj/runtime/natNameFinder.cc (LABEL_PREFIX): New string constant representing the prefix attached to method names to convert them to an external label. (gnu::gcj::runtime::NameFinder::getExternalLabel): Define using LABEL_PREFIX. From-SVN: r64111
* natSystem.cc (init_properties): Call new function _Jv_platform_initProperties.Adam King2002-04-071-0/+19
| | | | | | | | | | | | | | 2002-04-07 Adam King <aking@dreammechanics.com> * java/lang/natSystem.cc (init_properties): Call new function _Jv_platform_initProperties. * win32 (_Jv_platform_initProperties): New function that adds Win32 support for the System properties os.name, os.arch, os.version, user.name, user.home, and user.dir. * include/posix.h, include/win32.h, posix.cc: New function _Jv_platform_initProperties. From-SVN: r51989
* posix.cc (_Jv_platform_gettimeofday): Make sure result doesn't get truncated ↵Bryce McKinlay2002-03-091-3/+3
| | | | | | | | | to int. * posix.cc (_Jv_platform_gettimeofday): Make sure result doesn't get truncated to int. From-SVN: r50479
* posix.cc (internal_gettimeofday): New function.Tom Tromey2002-03-081-2/+14
| | | | | | | * posix.cc (internal_gettimeofday): New function. (_Jv_select): Use it. From-SVN: r50442
* win32.cc (_Jv_platform_gettimeofday): Now takes no args, returns jlong.Adam Megacz2002-03-081-11/+9
| | | | | | | | | | | | | | | | | 2002-03-07 Adam Megacz <adam@xwt.org> * win32.cc (_Jv_platform_gettimeofday): Now takes no args, returns jlong. Added implementation * posix.cc (_Jv_platform_gettimeofday): Now takes no args, returns jlong. * win32.h (_Jv_platform_gettimeofday): Now takes no args, returns jlong. * posix.h (_Jv_platform_gettimeofday): Now takes no args, returns jlong. * java/lang/natSystem.cc (currentTimeMillis): Now uses updated _Jv_platform_gettimeofday signature. From-SVN: r50416
* prims.cc (_Jv_CreateJavaVM): Call _Jv_platform_initialize.Tom Tromey2002-02-071-4/+21
| | | | | | | | | | | | | | | | | * prims.cc (_Jv_CreateJavaVM): Call _Jv_platform_initialize. * win32.cc (win32_exception_handler): Now static. * include/win32.h (_Jv_platform_initialize): Declare. (win32_exception_handler): Don't declare. * java/lang/natSystem.cc (currentTimeMillis): Use _Jv_platform_gettimeofday. * posix.cc (_Jv_platform_gettimeofday): Renamed. (_Jv_select): Use new name. (_Jv_platform_initialize): New function. * include/posix.h (_Jv_platform_gettimeofday): Renamed from _Jv_gettimeofday. (_Jv_platform_initialize): Declare. From-SVN: r49583
* re PR libgcj/1351 (_Jv_select -vs- Thread.interrupt)Tom Tromey2001-02-131-1/+9
| | | | | | | | | Fix for PR libgcj/1351: * posix.cc (_Jv_select): Throw InterruptedIOException if thread is interrupted. Include Thread.h and InterruptedIOException.h. From-SVN: r39639
* Makefile.in: Rebuilt.Tom Tromey2000-08-021-0/+104
* 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