Merge "Use hidden visibility for several internal-use-only functions."

This commit is contained in:
Elliott Hughes 2012-09-23 11:08:18 -07:00 committed by Gerrit Code Review
commit 85049ead25

View file

@ -27,7 +27,7 @@ static const Pair _sys_error_strings[] = {
{ 0, NULL } { 0, NULL }
}; };
extern "C" const char* __strerror_lookup(int error_number) { extern "C" __LIBC_HIDDEN__ const char* __strerror_lookup(int error_number) {
return __code_string_lookup(_sys_error_strings, error_number); return __code_string_lookup(_sys_error_strings, error_number);
} }
@ -37,7 +37,7 @@ static const Pair _sys_signal_strings[] = {
{ 0, NULL } { 0, NULL }
}; };
extern "C" const char* __strsignal_lookup(int signal_number) { extern "C" __LIBC_HIDDEN__ const char* __strsignal_lookup(int signal_number) {
return __code_string_lookup(_sys_signal_strings, signal_number); return __code_string_lookup(_sys_signal_strings, signal_number);
} }
@ -60,7 +60,7 @@ int strerror_r(int error_number, char* buf, size_t buf_len) {
return 0; return 0;
} }
extern "C" const char* __strsignal(int signal_number, char* buf, size_t buf_len) { extern "C" __LIBC_HIDDEN__ const char* __strsignal(int signal_number, char* buf, size_t buf_len) {
const char* signal_name = __strsignal_lookup(signal_number); const char* signal_name = __strsignal_lookup(signal_number);
if (signal_name != NULL) { if (signal_name != NULL) {
return signal_name; return signal_name;