diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ctype.h | 2 | ||||
-rw-r--r-- | include/fcntl.h | 2 | ||||
-rw-r--r-- | include/rpc/rpc_msg.h | 1 | ||||
-rw-r--r-- | include/rpc/xdr.h | 1 | ||||
-rw-r--r-- | include/signal.h | 2 | ||||
-rw-r--r-- | include/stdio.h | 8 | ||||
-rw-r--r-- | include/stdlib.h | 1 | ||||
-rw-r--r-- | include/sys/ioctl.h | 1 | ||||
-rw-r--r-- | include/sys/mman.h | 1 | ||||
-rw-r--r-- | include/sys/poll.h | 1 | ||||
-rw-r--r-- | include/sys/socket.h | 1 | ||||
-rw-r--r-- | include/sys/stat.h | 3 | ||||
-rw-r--r-- | include/sys/time.h | 1 | ||||
-rw-r--r-- | include/unistd.h | 7 | ||||
-rw-r--r-- | include/wchar.h | 1 |
15 files changed, 33 insertions, 0 deletions
diff --git a/include/ctype.h b/include/ctype.h index 21314d152..065dd5a49 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -175,9 +175,11 @@ __exctype (isxdigit); /* Return the lowercase version of C. */ extern int tolower (int __c) __THROW; +libc_hidden_proto(tolower) /* Return the uppercase version of C. */ extern int toupper (int __c) __THROW; +libc_hidden_proto(toupper) __END_NAMESPACE_STD diff --git a/include/fcntl.h b/include/fcntl.h index 3e0aab53e..31a0149a7 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -72,6 +72,7 @@ __BEGIN_DECLS __THROW. */ #ifndef __USE_FILE_OFFSET64 extern int fcntl (int __fd, int __cmd, ...); +libc_hidden_proto(fcntl) #else # ifdef __REDIRECT extern int __REDIRECT (fcntl, (int __fd, int __cmd, ...), fcntl64); @@ -91,6 +92,7 @@ extern int fcntl64 (int __fd, int __cmd, ...); __THROW. */ #ifndef __USE_FILE_OFFSET64 extern int open (__const char *__file, int __oflag, ...) __nonnull ((1)); +libc_hidden_proto(open) #else # ifdef __REDIRECT extern int __REDIRECT (open, (__const char *__file, int __oflag, ...), open64) diff --git a/include/rpc/rpc_msg.h b/include/rpc/rpc_msg.h index 636d60ea9..c04f03cc6 100644 --- a/include/rpc/rpc_msg.h +++ b/include/rpc/rpc_msg.h @@ -187,6 +187,7 @@ extern bool_t xdr_callhdr (XDR *__xdrs, struct rpc_msg *__cmsg) __THROW; * struct rpc_msg *rmsg; */ extern bool_t xdr_replymsg (XDR *__xdrs, struct rpc_msg *__rmsg) __THROW; +libc_hidden_proto(xdr_replymsg) /* * Fills in the error part of a reply message. diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h index 25dd214ee..c885cdcb9 100644 --- a/include/rpc/xdr.h +++ b/include/rpc/xdr.h @@ -357,6 +357,7 @@ extern bool_t xdr_netobj (XDR *__xdrs, struct netobj *__np) __THROW; /* XDR using memory buffers */ extern void xdrmem_create (XDR *__xdrs, __const caddr_t __addr, u_int __size, enum xdr_op __xop) __THROW; +libc_hidden_proto(xdrmem_create) /* XDR using stdio library */ extern void xdrstdio_create (XDR *__xdrs, FILE *__file, enum xdr_op __xop) diff --git a/include/signal.h b/include/signal.h index 610acdc70..5675cf172 100644 --- a/include/signal.h +++ b/include/signal.h @@ -246,6 +246,7 @@ extern int sigorset (sigset_t *__set, __const sigset_t *__left, /* Get and/or change the set of blocked signals. */ extern int sigprocmask (int __how, __const sigset_t *__restrict __set, sigset_t *__restrict __oset) __THROW; +libc_hidden_proto(sigprocmask) /* Change the set of blocked signals to SET, wait until a signal arrives, and restore the set of blocked signals. @@ -257,6 +258,7 @@ extern int sigsuspend (__const sigset_t *__set) __nonnull ((1)); /* Get and/or set the action for signal SIG. */ extern int sigaction (int __sig, __const struct sigaction *__restrict __act, struct sigaction *__restrict __oact) __THROW; +libc_hidden_proto(sigaction) /* Put in SET all signals that are blocked and waiting to be delivered. */ extern int sigpending (sigset_t *__set) __THROW __nonnull ((1)); diff --git a/include/stdio.h b/include/stdio.h index feb544de7..246a5bcb2 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -234,6 +234,7 @@ __BEGIN_NAMESPACE_STD marked with __THROW. */ extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __wur; +libc_hidden_proto(fopen) /* Open a file, replacing an existing stream with it. This function is a possible cancellation point and therefore not @@ -259,6 +260,7 @@ __END_NAMESPACE_STD #ifdef __USE_LARGEFILE64 extern FILE *fopen64 (__const char *__restrict __filename, __const char *__restrict __modes) __wur; +libc_hidden_proto(fopen64) extern FILE *freopen64 (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __wur; @@ -325,9 +327,11 @@ libc_hidden_proto(fprintf) This function is a possible cancellation point and therefore not marked with __THROW. */ extern int printf (__const char *__restrict __format, ...); +libc_hidden_proto(printf) /* Write formatted output to S. */ extern int sprintf (char *__restrict __s, __const char *__restrict __format, ...) __THROW; +libc_hidden_proto(sprintf) /* Write formatted output to S from argument list ARG. @@ -335,6 +339,7 @@ extern int sprintf (char *__restrict __s, marked with __THROW. */ extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg); +libc_hidden_proto(vfprintf) /* Write formatted output to stdout from argument list ARG. This function is a possible cancellation point and therefore not @@ -533,6 +538,7 @@ __BEGIN_NAMESPACE_STD marked with __THROW. */ extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) __wur; +libc_hidden_proto(fgets) /* Get a newline-terminated string from stdin, removing the newline. DO NOT USE THIS FUNCTION!! There is no limit on how much it will read. @@ -592,6 +598,7 @@ __BEGIN_NAMESPACE_STD This function is a possible cancellation points and therefore not marked with __THROW. */ extern int fputs (__const char *__restrict __s, FILE *__restrict __stream); +libc_hidden_proto(fputs) /* Write a string, followed by a newline, to stdout. @@ -749,6 +756,7 @@ __BEGIN_NAMESPACE_STD This function is a possible cancellation point and therefore not marked with __THROW. */ extern void perror (__const char *__s); +libc_hidden_proto(perror) __END_NAMESPACE_STD #ifdef __UCLIBC_HAS_SYS_ERRLIST__ diff --git a/include/stdlib.h b/include/stdlib.h index 657167541..3a7c276af 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -532,6 +532,7 @@ __END_NAMESPACE_C99 __BEGIN_NAMESPACE_STD /* Return the value of envariable NAME, or NULL if it doesn't exist. */ extern char *getenv (__const char *__name) __THROW __nonnull ((1)) __wur; +libc_hidden_proto(getenv) __END_NAMESPACE_STD /* This function is similar to the above but returns NULL if the diff --git a/include/sys/ioctl.h b/include/sys/ioctl.h index 6d8a0f40b..528403e71 100644 --- a/include/sys/ioctl.h +++ b/include/sys/ioctl.h @@ -40,6 +40,7 @@ __BEGIN_DECLS One argument may follow; its presence and type depend on REQUEST. Return value depends on REQUEST. Usually -1 indicates error. */ extern int ioctl (int __fd, unsigned long int __request, ...) __THROW; +libc_hidden_proto(ioctl) __END_DECLS diff --git a/include/sys/mman.h b/include/sys/mman.h index 7640955d7..d8e2c7a93 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -57,6 +57,7 @@ __BEGIN_DECLS #ifndef __USE_FILE_OFFSET64 extern void *mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd, __off_t __offset) __THROW; +libc_hidden_proto(mmap) #else # ifdef __REDIRECT extern void * __REDIRECT (mmap, diff --git a/include/sys/poll.h b/include/sys/poll.h index a298dac15..c786a778a 100644 --- a/include/sys/poll.h +++ b/include/sys/poll.h @@ -58,6 +58,7 @@ __BEGIN_DECLS This function is a cancellation point and therefore not marked with __THROW. */ extern int poll (struct pollfd *__fds, nfds_t __nfds, int __timeout); +libc_hidden_proto(poll) #if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ /* Like poll, but before waiting the threads signal mask is replaced diff --git a/include/sys/socket.h b/include/sys/socket.h index 4ae1ea980..5b1298f4c 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -98,6 +98,7 @@ typedef union { __SOCKADDR_ALLTYPES protocol PROTOCOL. If PROTOCOL is zero, one is chosen automatically. Returns a file descriptor for the new socket, or -1 for errors. */ extern int socket (int __domain, int __type, int __protocol) __THROW; +libc_hidden_proto(socket) /* Create two new sockets, of type TYPE in domain DOMAIN and using protocol PROTOCOL, which are connected to each other, and put file diff --git a/include/sys/stat.h b/include/sys/stat.h index 508239050..20d0f4bad 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -206,10 +206,12 @@ __BEGIN_DECLS /* Get file attributes for FILE and put them in BUF. */ extern int stat (__const char *__restrict __file, struct stat *__restrict __buf) __THROW __nonnull ((1, 2)); +libc_hidden_proto(stat) /* Get file attributes for the file, device, pipe, or socket that file descriptor FD is open on and put them in BUF. */ extern int fstat (int __fd, struct stat *__buf) __THROW __nonnull ((2)); +libc_hidden_proto(fstat) #else # ifdef __REDIRECT_NTH extern int __REDIRECT_NTH (stat, (__const char *__restrict __file, @@ -258,6 +260,7 @@ extern int fstatat64 (int __fd, __const char *__restrict __file, If FILE is a symbolic link, do not follow it. */ extern int lstat (__const char *__restrict __file, struct stat *__restrict __buf) __THROW __nonnull ((1, 2)); +libc_hidden_proto(lstat) # else # ifdef __REDIRECT_NTH extern int __REDIRECT_NTH (lstat, diff --git a/include/sys/time.h b/include/sys/time.h index 66fb9e021..73eeb2a2f 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -71,6 +71,7 @@ typedef void *__restrict __timezone_ptr_t; Use the functions and variables declared in <time.h> instead. */ extern int gettimeofday (struct timeval *__restrict __tv, __timezone_ptr_t __tz) __THROW __nonnull ((1)); +libc_hidden_proto(gettimeofday) #ifdef __USE_BSD /* Set the current time of day and timezone information. diff --git a/include/unistd.h b/include/unistd.h index bf94fe4fc..2052a1279 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -297,6 +297,7 @@ extern int faccessat (int __fd, __const char *__file, int __type, int __flag) Return the new file position. */ #ifndef __USE_FILE_OFFSET64 extern __off_t lseek (int __fd, __off_t __offset, int __whence) __THROW; +libc_hidden_proto(lseek) #else # ifdef __REDIRECT_NTH extern __off64_t __REDIRECT_NTH (lseek, @@ -324,12 +325,14 @@ libc_hidden_proto(close) This function is a cancellation point and therefore not marked with __THROW. */ extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur; +libc_hidden_proto(read) /* Write N bytes of BUF to FD. Return the number written, or -1. This function is a cancellation point and therefore not marked with __THROW. */ extern ssize_t write (int __fd, __const void *__buf, size_t __n) __wur; +libc_hidden_proto(write) #ifdef __USE_UNIX98 # ifndef __USE_FILE_OFFSET64 @@ -545,6 +548,7 @@ extern int nice (int __inc) __THROW __wur; /* Terminate program execution with the low-order 8 bits of STATUS. */ extern void _exit (int __status) __attribute__ ((__noreturn__)); +libc_hidden_proto(_exit) /* Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf'; @@ -570,6 +574,7 @@ extern size_t confstr (int __name, char *__buf, size_t __len) __THROW; /* Get the process ID of the calling process. */ extern __pid_t getpid (void) __THROW; +libc_hidden_proto(getpid) /* Get the process ID of the calling process's parent. */ extern __pid_t getppid (void) __THROW; @@ -998,12 +1003,14 @@ extern int ftruncate64 (int __fd, __off64_t __length) __THROW __wur; /* Set the end of accessible data space (aka "the break") to ADDR. Returns zero on success and -1 for errors (with errno set). */ extern int brk (void *__addr) __THROW __wur; +libc_hidden_proto(brk) /* Increase or decrease the end of accessible data space by DELTA bytes. If successful, returns the address the previous end of data space (i.e. the beginning of the new space, if DELTA > 0); returns (void *) -1 for errors (with errno set). */ extern void *sbrk (intptr_t __delta) __THROW; +libc_hidden_proto(sbrk) #endif diff --git a/include/wchar.h b/include/wchar.h index e461f7184..da6edae8c 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -520,6 +520,7 @@ extern int fwide (__FILE *__fp, int __mode) __THROW; extern int fwprintf (__FILE *__restrict __stream, __const wchar_t *__restrict __format, ...) /* __attribute__ ((__format__ (__wprintf__, 2, 3))) */; +libc_hidden_proto(fwprintf) /* Write formatted output to stdout. This function is a possible cancellation point and therefore not |