diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-03 06:55:52 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-03 06:55:52 +0000 |
commit | 0e09af6c8e563c0ed8513f631e0bb5caafdb3a85 (patch) | |
tree | a98e3fba132ae49229e27242d943e1f82c4a5bcb /include | |
parent | b327d72589bb202a9e908981db4240567464e983 (diff) |
add optional support for program_invocation_name/program_invocation_short_name
Diffstat (limited to 'include')
-rw-r--r-- | include/errno.h | 2 | ||||
-rw-r--r-- | include/libc-internal.h | 1 |
2 files changed, 2 insertions, 1 deletions
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; |