summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2010-12-26 21:11:38 +0000
committerChristopher Faylor <me@cgf.cx>2010-12-26 21:11:38 +0000
commit589e430baaacf262a725154b4c437387f4ac2160 (patch)
tree9d807912daf81427f5ac936ab5439eddf5749d22 /newlib/libc/include
parentd64bda8409e7f670fb5782cf7e9505a48504c8ef (diff)
downloadcygnal-589e430baaacf262a725154b4c437387f4ac2160.tar.gz
cygnal-589e430baaacf262a725154b4c437387f4ac2160.tar.bz2
cygnal-589e430baaacf262a725154b4c437387f4ac2160.zip
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 'newlib/libc/include')
-rw-r--r--newlib/libc/include/sys/errno.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/errno.h b/newlib/libc/include/sys/errno.h
index ac45fbc53..c93b250c3 100644
--- a/newlib/libc/include/sys/errno.h
+++ b/newlib/libc/include/sys/errno.h
@@ -22,6 +22,8 @@ extern __IMPORT int _sys_nerr;
#ifdef __CYGWIN__
extern __IMPORT const char * const sys_errlist[];
extern __IMPORT int sys_nerr;
+extern __IMPORT char *program_invocation_name;
+extern __IMPORT char *program_invocation_short_name;
#endif
#define __errno_r(ptr) ((ptr)->_errno)