Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2010-12-27 00:11:38 +0300
committerChristopher Faylor <me@cgf.cx>2010-12-27 00:11:38 +0300
commit589e430baaacf262a725154b4c437387f4ac2160 (patch)
tree9d807912daf81427f5ac936ab5439eddf5749d22 /newlib
parentd64bda8409e7f670fb5782cf7e9505a48504c8ef (diff)
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')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/sys/errno.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index de6226c91..ea7e76f45 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-26 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * libc/include/sys/errno.h (program_invocation_name): Declare.
+ (program_invocation_short_name): Ditto.
+
2010-12-16 Jeff Johnston <jjohnstn@redhat.com>
* NEWS: Update with 1.19.0 info.
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)