From 0e09af6c8e563c0ed8513f631e0bb5caafdb3a85 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 3 Jan 2006 06:55:52 +0000 Subject: add optional support for program_invocation_name/program_invocation_short_name --- include/errno.h | 2 +- include/libc-internal.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/errno.h b/include/errno.h index 203a62e3e..87b35b0bb 100644 --- a/include/errno.h +++ b/include/errno.h @@ -49,7 +49,7 @@ extern int errno; # endif #endif -#if 0 /*def __USE_GNU uClibc note: not supported */ +#ifdef __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__ /* The full and simple forms of the name with which the program was invoked. These variables are set up automatically at startup based on diff --git a/include/libc-internal.h b/include/libc-internal.h index 9b83d1b3f..d669d93f2 100644 --- a/include/libc-internal.h +++ b/include/libc-internal.h @@ -238,6 +238,7 @@ extern char *__strcat (char *__restrict __dest, __const char *__restrict __src) extern char *__strncpy (char *__restrict __dest, __const char *__restrict __src, size_t __n) attribute_hidden; extern char *__strchr (__const char *__s, int __c) attribute_hidden; +extern char *__strrchr (__const char *__s, int __c) attribute_hidden; extern int __strncmp (__const char *__s1, __const char *__s2, size_t __n) attribute_hidden; extern char *__strdup (__const char *__s) attribute_hidden; extern int __strcasecmp (__const char *__s1, __const char *__s2) attribute_hidden; -- cgit v1.2.3