diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ctype.h | 9 | ||||
-rw-r--r-- | include/locale.h | 1 | ||||
-rw-r--r-- | include/stdio.h | 2 | ||||
-rw-r--r-- | include/stdlib.h | 2 | ||||
-rw-r--r-- | include/time.h | 8 | ||||
-rw-r--r-- | include/unistd.h | 1 |
6 files changed, 16 insertions, 7 deletions
diff --git a/include/ctype.h b/include/ctype.h index 184b47b51..21314d152 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -101,17 +101,23 @@ enum /* Pointers to the default C-locale data. */ extern const __ctype_mask_t *__C_ctype_b; +libc_hidden_proto(__C_ctype_b) extern const __ctype_touplow_t *__C_ctype_toupper; +libc_hidden_proto(__C_ctype_toupper) extern const __ctype_touplow_t *__C_ctype_tolower; +libc_hidden_proto(__C_ctype_tolower) #ifdef __UCLIBC_HAS_XLOCALE__ extern __const __ctype_mask_t **__ctype_b_loc (void) __attribute__ ((__const)); +libc_hidden_proto(__ctype_b_loc) extern __const __ctype_touplow_t **__ctype_tolower_loc (void) __attribute__ ((__const)); +libc_hidden_proto(__ctype_tolower_loc) extern __const __ctype_touplow_t **__ctype_toupper_loc (void) __attribute__ ((__const)); +libc_hidden_proto(__ctype_toupper_loc) #define __UCLIBC_CTYPE_B (*__ctype_b_loc()) #define __UCLIBC_CTYPE_TOLOWER (*__ctype_tolower_loc()) @@ -121,8 +127,11 @@ extern __const __ctype_touplow_t **__ctype_toupper_loc (void) /* Pointers to the current global locale data in use. */ extern const __ctype_mask_t *__ctype_b; +libc_hidden_proto(__ctype_b) extern const __ctype_touplow_t *__ctype_toupper; +libc_hidden_proto(__ctype_toupper) extern const __ctype_touplow_t *__ctype_tolower; +libc_hidden_proto(__ctype_tolower) #define __UCLIBC_CTYPE_B (__ctype_b) #define __UCLIBC_CTYPE_TOLOWER (__ctype_tolower) diff --git a/include/locale.h b/include/locale.h index c708d4435..241e3f057 100644 --- a/include/locale.h +++ b/include/locale.h @@ -215,6 +215,7 @@ extern void freelocale (__locale_t __dataset) __THROW; for all threads and can also be installed any time, meaning the thread uses the global settings controlled by `setlocale'. */ extern __locale_t uselocale (__locale_t __dataset) __THROW; +libc_hidden_proto(uselocale) /* This value can be passed to `uselocale' and may be returned by it. Passing this value to any other function has undefined behavior. */ diff --git a/include/stdio.h b/include/stdio.h index f14016aa1..feb544de7 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -197,6 +197,7 @@ __BEGIN_NAMESPACE_STD This function is a possible cancellation point and therefore not marked with __THROW. */ extern int fclose (FILE *__stream); +libc_hidden_proto(fclose) /* Flush STREAM, or all streams if STREAM is NULL. This function is a possible cancellation point and therefore not @@ -318,6 +319,7 @@ __BEGIN_NAMESPACE_STD marked with __THROW. */ extern int fprintf (FILE *__restrict __stream, __const char *__restrict __format, ...); +libc_hidden_proto(fprintf) /* Write formatted output to stdout. This function is a possible cancellation point and therefore not diff --git a/include/stdlib.h b/include/stdlib.h index b87dfd921..657167541 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -498,6 +498,7 @@ extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) __BEGIN_NAMESPACE_STD /* Abort execution and generate a core-dump. */ extern void abort (void) __THROW __attribute__ ((__noreturn__)); +libc_hidden_proto(abort) /* Register a function to be called when `exit' is called. */ @@ -516,6 +517,7 @@ __BEGIN_NAMESPACE_STD in the reverse of the order in which they were registered perform stdio cleanup, and terminate program execution with STATUS. */ extern void exit (int __status) __THROW __attribute__ ((__noreturn__)); +libc_hidden_proto(exit) __END_NAMESPACE_STD #ifdef __USE_ISOC99 diff --git a/include/time.h b/include/time.h index 8f912c166..998a03b6b 100644 --- a/include/time.h +++ b/include/time.h @@ -187,6 +187,7 @@ extern clock_t clock (void) __THROW; /* Return the current time and put it in *TIMER if TIMER is not NULL. */ extern time_t time (time_t *__timer) __THROW; +libc_hidden_proto(time) #ifdef __UCLIBC_HAS_FLOATS__ /* Return the difference between TIME1 and TIME0. */ @@ -435,13 +436,6 @@ extern int getdate_r (__const char *__restrict __string, __END_DECLS - -#ifdef UCLIBC_INTERNAL -/* Experiment. Grep for 'libc_hidden_proto(time)' if need to revert */ -libc_hidden_proto(time) -#endif - - #endif /* <time.h> included. */ #endif /* <time.h> not already included. */ diff --git a/include/unistd.h b/include/unistd.h index 025b1e2cb..b32aef736 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -316,6 +316,7 @@ extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) This function is a cancellation point and therefore not marked with __THROW. */ extern int close (int __fd); +libc_hidden_proto(close) /* Read NBYTES into BUF from FD. Return the number read, -1 for errors or 0 for EOF. |