Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (21 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28dir.info
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libjava/posix.cc

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    1616#include <errno.h>
    1717#include <signal.h>
     18#include <stdio.h>
    1819
    1920#include <jvm.h>
     
    2526extern "C" unsigned long long _clock (void);
    2627#endif
     28
     29#if defined(HAVE_PROC_SELF_EXE)
     30static char exec_name[20];
     31  // initialized in _Jv_platform_initialize()
     32#endif
     33
     34const 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}
    2745
    2846// gettimeofday implementation.
     
    6280#else
    6381  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 ());
    6487#endif
    6588}
Note: See TracChangeset for help on using the changeset viewer.