Changeset 1391 for branches/GNU/src/gcc/libjava/posix.cc
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (21 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 dir.info 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/posix.cc
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 16 16 #include <errno.h> 17 17 #include <signal.h> 18 #include <stdio.h> 18 19 19 20 #include <jvm.h> … … 25 26 extern "C" unsigned long long _clock (void); 26 27 #endif 28 29 #if defined(HAVE_PROC_SELF_EXE) 30 static char exec_name[20]; 31 // initialized in _Jv_platform_initialize() 32 #endif 33 34 const char *_Jv_ThisExecutable (void) 35 { 36 #if defined(DISABLE_MAIN_ARGS) 37 return "[Embedded App]"; 38 #elif defined(HAVE_PROC_SELF_EXE) 39 return exec_name; 40 // initialized in _Jv_platform_initialize() 41 #else 42 return _Jv_GetSafeArg (0); 43 #endif 44 } 27 45 28 46 // gettimeofday implementation. … … 62 80 #else 63 81 signal (SIGPIPE, SIG_IGN); 82 #endif 83 84 #if defined (HAVE_PROC_SELF_EXE) 85 // Compute our executable name 86 sprintf (exec_name, "/proc/%d/exe", getpid ()); 64 87 #endif 65 88 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.