From e8c6de1939e1f8a2898a0e53134fa175560b9469 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 18 Nov 2008 01:09:55 +0000 Subject: libc_hidden_proto removal, just a few functions --- include/locale.h | 1 + include/stdlib.h | 2 ++ include/time.h | 8 +------- include/unistd.h | 1 + 4 files changed, 5 insertions(+), 7 deletions(-) (limited to 'include') 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/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 f6863ed84..25e00f639 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. */ @@ -433,13 +434,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 /* included. */ #endif /* not already included. */ diff --git a/include/unistd.h b/include/unistd.h index f981d2116..bf94fe4fc 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. -- cgit v1.2.3