From 589e430baaacf262a725154b4c437387f4ac2160 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 26 Dec 2010 21:11:38 +0000 Subject: 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. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/sys/errno.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'newlib') 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 + + * libc/include/sys/errno.h (program_invocation_name): Declare. + (program_invocation_short_name): Ditto. + 2010-12-16 Jeff Johnston * 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) -- cgit v1.2.3