diff options
author | Christopher Faylor <me@cgf.cx> | 2010-12-26 21:11:38 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-12-26 21:11:38 +0000 |
commit | 589e430baaacf262a725154b4c437387f4ac2160 (patch) | |
tree | 9d807912daf81427f5ac936ab5439eddf5749d22 /winsup/cygwin/dcrt0.cc | |
parent | d64bda8409e7f670fb5782cf7e9505a48504c8ef (diff) | |
download | newlib-589e430baaacf262a725154b4c437387f4ac2160.zip newlib-589e430baaacf262a725154b4c437387f4ac2160.tar.gz newlib-589e430baaacf262a725154b4c437387f4ac2160.tar.bz2 |
cygwin:
* cygwin.din: Export program_invocation_name and
program_invocation_short_name.
* dcrt0.cc: Set program_invocation*name to correct values, based on
argv[0].
* globals.cc (program_invocation_name): Define.
(program_invocation_short_name): Ditto
newlib:
* libc/include/sys/errno.h (program_invocation_name): Declare.
(program_invocation_short_name): Ditto.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 4aca474..4c2a669 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -915,6 +915,8 @@ dll_crt0_1 (void *) ++__progname; else __progname = __argv[0]; + program_invocation_name = __argv[0]; + program_invocation_short_name = __progname; if (__progname) { char *cp = strchr (__progname, '\0') - 4; |