From cb97aadebfeba7f5e8f1b85beee5ab10e88c2990 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 20 Nov 2008 22:11:44 +0000 Subject: Last portion of libc_hidden_proto removal. Appears to build fine (several .configs tried) --- include/arpa/inet.h | 9 +++++ include/arpa/nameser.h | 3 ++ include/assert.h | 1 + include/ctype.h | 5 +++ include/dirent.h | 7 ++++ include/err.h | 4 ++ include/fcntl.h | 4 ++ include/fnmatch.h | 1 + include/glob.h | 5 +++ include/grp.h | 5 +++ include/langinfo.h | 2 + include/libc-internal.h | 2 + include/locale.h | 3 ++ include/malloc.h | 3 ++ include/mntent.h | 3 ++ include/net/if.h | 3 ++ include/netdb.h | 28 +++++++++++++ include/netinet/ether.h | 1 + include/netinet/in.h | 2 + include/pwd.h | 4 ++ include/resolv.h | 3 ++ include/rpc/auth.h | 4 ++ include/rpc/auth_des.h | 1 + include/rpc/auth_unix.h | 1 + include/rpc/clnt.h | 12 +++++- include/rpc/netdb.h | 5 +++ include/rpc/pmap_clnt.h | 3 ++ include/rpc/pmap_prot.h | 2 + include/rpc/pmap_rmt.h | 3 ++ include/rpc/rpc.h | 6 +++ include/rpc/rpc_msg.h | 3 ++ include/rpc/svc.h | 16 +++++++- include/rpc/svc_auth.h | 1 + include/rpc/xdr.h | 21 ++++++++++ include/search.h | 7 ++++ include/shadow.h | 4 ++ include/signal.h | 21 +++++++++- include/stdio.h | 41 +++++++++++++++++++ include/stdio_ext.h | 1 + include/stdlib.h | 25 ++++++++++++ include/string.h | 2 + include/sys/mman.h | 2 + include/sys/poll.h | 1 + include/sys/resource.h | 4 ++ include/sys/select.h | 1 + include/sys/socket.h | 12 ++++++ include/sys/stat.h | 6 +++ include/sys/statfs.h | 2 + include/sys/statvfs.h | 2 + include/sys/syslog.h | 4 ++ include/sys/time.h | 3 ++ include/sys/times.h | 1 + include/sys/timex.h | 1 + include/sys/utsname.h | 1 + include/sys/wait.h | 2 + include/termios.h | 4 ++ include/time.h | 11 ++++++ include/ttyent.h | 3 ++ include/unistd.h | 48 ++++++++++++++++++++++ include/utime.h | 1 + include/utmp.h | 2 + include/wchar.h | 40 +++++++++++++++++++ include/wctype.h | 15 +++++++ include/wordexp.h | 1 + libc/inet/addr.c | 14 +++---- libc/inet/ether_addr.c | 2 +- libc/inet/getaddrinfo.c | 22 +++++------ libc/inet/getnetbyad.c | 6 +-- libc/inet/getnetbynm.c | 6 +-- libc/inet/getnetent.c | 10 ++--- libc/inet/getproto.c | 14 +++---- libc/inet/getservice.c | 16 ++++---- libc/inet/herror.c | 4 +- libc/inet/hostid.c | 8 ++-- libc/inet/if_index.c | 6 +-- libc/inet/ifaddrs.c | 8 ++-- libc/inet/in6_addr.c | 2 +- libc/inet/inet_net.c | 2 +- libc/inet/ntop.c | 4 +- libc/inet/resolv.c | 57 ++++++++++++++------------- libc/inet/rpc/auth_none.c | 4 +- libc/inet/rpc/auth_unix.c | 18 ++++----- libc/inet/rpc/authunix_prot.c | 12 +++--- libc/inet/rpc/bindresvport.c | 4 +- libc/inet/rpc/clnt_generic.c | 12 +++--- libc/inet/rpc/clnt_perror.c | 10 ++--- libc/inet/rpc/clnt_raw.c | 10 ++--- libc/inet/rpc/clnt_simple.c | 4 +- libc/inet/rpc/clnt_tcp.c | 26 ++++++------ libc/inet/rpc/clnt_udp.c | 28 ++++++------- libc/inet/rpc/clnt_unix.c | 32 +++++++-------- libc/inet/rpc/create_xid.c | 4 +- libc/inet/rpc/getrpcent.c | 14 +++---- libc/inet/rpc/getrpcport.c | 4 +- libc/inet/rpc/pm_getmaps.c | 10 ++--- libc/inet/rpc/pm_getport.c | 10 ++--- libc/inet/rpc/pmap_clnt.c | 12 +++--- libc/inet/rpc/pmap_prot.c | 4 +- libc/inet/rpc/pmap_prot2.c | 8 ++-- libc/inet/rpc/pmap_rmt.c | 26 ++++++------ libc/inet/rpc/rcmd.c | 46 ++++++++++----------- libc/inet/rpc/rexec.c | 24 +++++------ libc/inet/rpc/rpc_cmsg.c | 12 +++--- libc/inet/rpc/rpc_dtablesize.c | 4 +- libc/inet/rpc/rpc_private.h | 2 +- libc/inet/rpc/rpc_prot.c | 20 +++++----- libc/inet/rpc/rpc_thread.c | 8 ++-- libc/inet/rpc/rtime.c | 8 ++-- libc/inet/rpc/ruserpass.c | 20 +++++----- libc/inet/rpc/svc.c | 40 +++++++++---------- libc/inet/rpc/svc_auth.c | 2 +- libc/inet/rpc/svc_authux.c | 2 +- libc/inet/rpc/svc_raw.c | 2 +- libc/inet/rpc/svc_run.c | 6 +-- libc/inet/rpc/svc_simple.c | 14 +++---- libc/inet/rpc/svc_tcp.c | 24 +++++------ libc/inet/rpc/svc_udp.c | 26 ++++++------ libc/inet/rpc/svc_unix.c | 32 +++++++-------- libc/inet/rpc/xdr.c | 30 +++++++------- libc/inet/rpc/xdr_array.c | 4 +- libc/inet/rpc/xdr_rec.c | 8 ++-- libc/inet/rpc/xdr_reference.c | 4 +- libc/inet/rpc/xdr_stdio.c | 10 ++--- libc/inet/socketcalls.c | 28 ++++++------- libc/misc/assert/__assert.c | 2 +- libc/misc/ctype/ctype.c | 32 +++++++++------ libc/misc/dirent/closedir.c | 2 +- libc/misc/dirent/dirfd.c | 2 +- libc/misc/dirent/opendir.c | 2 +- libc/misc/dirent/readdir.c | 2 +- libc/misc/dirent/readdir64.c | 2 +- libc/misc/dirent/readdir64_r.c | 2 +- libc/misc/dirent/readdir_r.c | 2 +- libc/misc/dirent/scandir.c | 8 ++-- libc/misc/dirent/scandir64.c | 8 ++-- libc/misc/error/err.c | 10 ++--- libc/misc/error/error.c | 8 ++-- libc/misc/file/lockf.c | 2 +- libc/misc/file/lockf64.c | 4 +- libc/misc/fnmatch/fnmatch.c | 24 +++++------ libc/misc/fnmatch/fnmatch_old.c | 2 +- libc/misc/ftw/ftw.c | 24 +++++------ libc/misc/glob/glob-susv3.c | 22 +++++------ libc/misc/glob/glob.c | 28 ++++++------- libc/misc/internals/__errno_location.c | 4 +- libc/misc/internals/__h_errno_location.c | 2 +- libc/misc/internals/__uClibc_main.c | 8 ++-- libc/misc/internals/errno.c | 4 +- libc/misc/internals/tempname.c | 4 +- libc/misc/locale/locale.c | 16 ++++---- libc/misc/mntent/mntent.c | 10 ++--- libc/misc/regex/regcomp.c | 2 +- libc/misc/regex/regex.c | 26 ++++++------ libc/misc/regex/regex_internal.h | 2 +- libc/misc/regex/regex_old.c | 16 ++++---- libc/misc/search/_hsearch_r.c | 6 +-- libc/misc/search/_lsearch.c | 2 +- libc/misc/search/_tsearch.c | 6 +-- libc/misc/search/hsearch.c | 6 +-- libc/misc/statfs/fstatfs64.c | 2 +- libc/misc/statfs/fstatvfs.c | 8 ++-- libc/misc/statfs/fstatvfs64.c | 12 +++--- libc/misc/statfs/statfs64.c | 2 +- libc/misc/statfs/statvfs.c | 8 ++-- libc/misc/statfs/statvfs64.c | 12 +++--- libc/misc/syslog/syslog.c | 16 ++++---- libc/misc/sysvipc/shm.c | 2 +- libc/misc/time/adjtime.c | 2 +- libc/misc/time/time.c | 40 +++++++++---------- libc/misc/ttyent/getttyent.c | 16 ++++---- libc/misc/utmp/utent.c | 4 +- libc/misc/utmp/wtent.c | 4 +- libc/misc/wchar/wchar.c | 42 ++++++++++---------- libc/misc/wctype/_wctype.c | 26 ++++++------ libc/misc/wordexp/wordexp.c | 32 +++++++-------- libc/pwd_grp/lckpwdf.c | 8 ++-- libc/pwd_grp/pwd_grp.c | 56 +++++++++++++------------- libc/signal/killpg.c | 2 +- libc/signal/raise.c | 4 +- libc/signal/sigaddset.c | 2 +- libc/signal/sigblock.c | 2 +- libc/signal/sigdelset.c | 2 +- libc/signal/sigempty.c | 2 +- libc/signal/sigfillset.c | 2 +- libc/signal/siggetmask.c | 2 +- libc/signal/sighold.c | 2 +- libc/signal/signal.c | 2 +- libc/signal/sigpause.c | 8 ++-- libc/signal/sigrelse.c | 2 +- libc/signal/sigsetmask.c | 2 +- libc/signal/sigwait.c | 8 ++-- libc/stdio/__fsetlocking.c | 2 +- libc/stdio/_cs_funcs.c | 2 +- libc/stdio/_flushlbf.c | 2 +- libc/stdio/_fopen.c | 2 +- libc/stdio/_scanf.c | 34 ++++++++-------- libc/stdio/_stdio.c | 2 +- libc/stdio/_trans2w.c | 2 +- libc/stdio/_vfprintf.c | 18 ++++----- libc/stdio/_wfwrite.c | 4 +- libc/stdio/asprintf.c | 4 +- libc/stdio/dprintf.c | 2 +- libc/stdio/fclose.c | 2 +- libc/stdio/fdopen.c | 2 +- libc/stdio/fflush.c | 6 +-- libc/stdio/fgetc.c | 12 +++--- libc/stdio/fgets.c | 4 +- libc/stdio/fgetwc.c | 8 ++-- libc/stdio/fgetws.c | 4 +- libc/stdio/fileno.c | 6 +-- libc/stdio/fmemopen.c | 2 +- libc/stdio/fopencookie.c | 2 +- libc/stdio/fputc.c | 12 +++--- libc/stdio/fputs.c | 4 +- libc/stdio/fputwc.c | 2 +- libc/stdio/fputws.c | 8 ++-- libc/stdio/fread.c | 8 ++-- libc/stdio/fseeko.c | 4 +- libc/stdio/ftello.c | 4 +- libc/stdio/fwprintf.c | 2 +- libc/stdio/fwrite.c | 6 +-- libc/stdio/getchar.c | 4 +- libc/stdio/getdelim.c | 4 +- libc/stdio/getline.c | 4 +- libc/stdio/gets.c | 2 +- libc/stdio/getw.c | 2 +- libc/stdio/getwchar.c | 4 +- libc/stdio/old_vfprintf.c | 6 +-- libc/stdio/open_memstream.c | 4 +- libc/stdio/perror.c | 2 +- libc/stdio/popen.c | 14 +++---- libc/stdio/putchar.c | 2 +- libc/stdio/puts.c | 4 +- libc/stdio/putw.c | 2 +- libc/stdio/putwchar.c | 6 +-- libc/stdio/remove.c | 6 +-- libc/stdio/rewind.c | 4 +- libc/stdio/setbuf.c | 2 +- libc/stdio/setbuffer.c | 2 +- libc/stdio/setlinebuf.c | 2 +- libc/stdio/setvbuf.c | 2 +- libc/stdio/snprintf.c | 4 +- libc/stdio/sprintf.c | 2 +- libc/stdio/swprintf.c | 2 +- libc/stdio/tmpfile.c | 4 +- libc/stdio/ungetc.c | 2 +- libc/stdio/ungetwc.c | 2 +- libc/stdio/vasprintf.c | 6 +-- libc/stdio/vdprintf.c | 4 +- libc/stdio/vsnprintf.c | 2 +- libc/stdio/vsprintf.c | 2 +- libc/stdio/vswprintf.c | 2 +- libc/stdio/vwprintf.c | 2 +- libc/stdio/wprintf.c | 2 +- libc/stdlib/__uc_malloc.c | 4 +- libc/stdlib/_strtod.c | 4 +- libc/stdlib/abort.c | 2 +- libc/stdlib/arc4random.c | 2 +- libc/stdlib/drand48.c | 2 +- libc/stdlib/drand48_r.c | 2 +- libc/stdlib/erand48.c | 2 +- libc/stdlib/erand48_r.c | 2 +- libc/stdlib/jrand48.c | 2 +- libc/stdlib/jrand48_r.c | 2 +- libc/stdlib/lrand48.c | 2 +- libc/stdlib/lrand48_r.c | 4 +- libc/stdlib/malloc-simple/alloc.c | 2 +- libc/stdlib/malloc-standard/free.c | 2 +- libc/stdlib/malloc-standard/mallinfo.c | 2 +- libc/stdlib/malloc-standard/malloc.h | 2 +- libc/stdlib/malloc-standard/realloc.c | 2 +- libc/stdlib/malloc/free.c | 2 +- libc/stdlib/malloc/malloc_debug.c | 4 +- libc/stdlib/mrand48.c | 2 +- libc/stdlib/mrand48_r.c | 2 +- libc/stdlib/nrand48.c | 2 +- libc/stdlib/nrand48_r.c | 2 +- libc/stdlib/ptsname.c | 4 +- libc/stdlib/rand.c | 2 +- libc/stdlib/random.c | 10 ++--- libc/stdlib/random_r.c | 8 ++-- libc/stdlib/realpath.c | 4 +- libc/stdlib/seed48.c | 2 +- libc/stdlib/seed48_r.c | 2 +- libc/stdlib/setenv.c | 6 +-- libc/stdlib/srand48.c | 2 +- libc/stdlib/srand48_r.c | 2 +- libc/stdlib/stdlib.c | 42 ++++++++++---------- libc/stdlib/system.c | 10 ++--- libc/stdlib/unix_grantpt.c | 22 +++++------ libc/stdlib/valloc.c | 2 +- libc/string/__glibc_strerror_r.c | 4 +- libc/string/__xpg_strerror_r.c | 2 +- libc/string/_collate.c | 12 +++--- libc/string/strcasecmp.c | 10 ++--- libc/string/strdup.c | 2 +- libc/string/strerror.c | 2 +- libc/string/strncasecmp.c | 10 ++--- libc/string/strtok_r.c | 4 +- libc/sysdeps/linux/arm/aeabi_assert.c | 2 +- libc/sysdeps/linux/arm/aeabi_localeconv.c | 2 +- libc/sysdeps/linux/arm/aeabi_mb_cur_max.c | 2 +- libc/sysdeps/linux/arm/ioperm.c | 8 ++-- libc/sysdeps/linux/arm/iopl.c | 2 +- libc/sysdeps/linux/common/__rt_sigtimedwait.c | 4 +- libc/sysdeps/linux/common/__syscall_fcntl.c | 2 +- libc/sysdeps/linux/common/__syscall_fcntl64.c | 2 +- libc/sysdeps/linux/common/adjtimex.c | 2 +- libc/sysdeps/linux/common/alarm.c | 4 +- libc/sysdeps/linux/common/bits/errno.h | 1 + libc/sysdeps/linux/common/bits/getopt.h | 2 + libc/sysdeps/linux/common/bits/socket.h | 1 + libc/sysdeps/linux/common/bits/uClibc_stdio.h | 2 + libc/sysdeps/linux/common/chdir.c | 2 +- libc/sysdeps/linux/common/chmod.c | 2 +- libc/sysdeps/linux/common/chown.c | 2 +- libc/sysdeps/linux/common/clock_getres.c | 2 +- libc/sysdeps/linux/common/clock_settime.c | 2 +- libc/sysdeps/linux/common/cmsg_nxthdr.c | 2 +- libc/sysdeps/linux/common/creat64.c | 2 +- libc/sysdeps/linux/common/dup2.c | 2 +- libc/sysdeps/linux/common/execve.c | 2 +- libc/sysdeps/linux/common/fchdir.c | 2 +- libc/sysdeps/linux/common/fork.c | 4 +- libc/sysdeps/linux/common/fstat.c | 2 +- libc/sysdeps/linux/common/fstat64.c | 2 +- libc/sysdeps/linux/common/ftruncate.c | 2 +- libc/sysdeps/linux/common/ftruncate64.c | 4 +- libc/sysdeps/linux/common/getcwd.c | 10 ++--- libc/sysdeps/linux/common/getdents64.c | 2 +- libc/sysdeps/linux/common/getdirname.c | 4 +- libc/sysdeps/linux/common/getdomainname.c | 4 +- libc/sysdeps/linux/common/getdtablesize.c | 4 +- libc/sysdeps/linux/common/getegid.c | 4 +- libc/sysdeps/linux/common/geteuid.c | 4 +- libc/sysdeps/linux/common/getgid.c | 2 +- libc/sysdeps/linux/common/getgroups.c | 4 +- libc/sysdeps/linux/common/gethostname.c | 4 +- libc/sysdeps/linux/common/getpagesize.c | 2 +- libc/sysdeps/linux/common/getpriority.c | 2 +- libc/sysdeps/linux/common/getrlimit.c | 2 +- libc/sysdeps/linux/common/getrlimit64.c | 2 +- libc/sysdeps/linux/common/getsid.c | 2 +- libc/sysdeps/linux/common/getuid.c | 2 +- libc/sysdeps/linux/common/kill.c | 2 +- libc/sysdeps/linux/common/llseek.c | 4 +- libc/sysdeps/linux/common/lseek.c | 1 + libc/sysdeps/linux/common/lstat.c | 2 +- libc/sysdeps/linux/common/lstat64.c | 2 +- libc/sysdeps/linux/common/mkdir.c | 2 +- libc/sysdeps/linux/common/mkfifo.c | 2 +- libc/sysdeps/linux/common/mknod.c | 2 +- libc/sysdeps/linux/common/mremap.c | 4 +- libc/sysdeps/linux/common/munmap.c | 2 +- libc/sysdeps/linux/common/nanosleep.c | 2 +- libc/sysdeps/linux/common/nice.c | 4 +- libc/sysdeps/linux/common/ntp_gettime.c | 2 +- libc/sysdeps/linux/common/open64.c | 2 +- libc/sysdeps/linux/common/pause.c | 4 +- libc/sysdeps/linux/common/pipe.c | 2 +- libc/sysdeps/linux/common/poll.c | 6 +-- libc/sysdeps/linux/common/ppoll.c | 2 +- libc/sysdeps/linux/common/pread_write.c | 2 +- libc/sysdeps/linux/common/pselect.c | 2 +- libc/sysdeps/linux/common/readlink.c | 2 +- libc/sysdeps/linux/common/rmdir.c | 2 +- libc/sysdeps/linux/common/select.c | 2 +- libc/sysdeps/linux/common/setegid.c | 4 +- libc/sysdeps/linux/common/seteuid.c | 6 +-- libc/sysdeps/linux/common/setgroups.c | 4 +- libc/sysdeps/linux/common/setitimer.c | 2 +- libc/sysdeps/linux/common/setpgid.c | 2 +- libc/sysdeps/linux/common/setpgrp.c | 2 +- libc/sysdeps/linux/common/setpriority.c | 2 +- libc/sysdeps/linux/common/setregid.c | 2 +- libc/sysdeps/linux/common/setresgid.c | 4 +- libc/sysdeps/linux/common/setresuid.c | 4 +- libc/sysdeps/linux/common/setreuid.c | 2 +- libc/sysdeps/linux/common/setrlimit.c | 2 +- libc/sysdeps/linux/common/setrlimit64.c | 2 +- libc/sysdeps/linux/common/setsid.c | 2 +- libc/sysdeps/linux/common/settimeofday.c | 2 +- libc/sysdeps/linux/common/sigqueue.c | 2 +- libc/sysdeps/linux/common/sigsuspend.c | 2 +- libc/sysdeps/linux/common/splice.c | 5 --- libc/sysdeps/linux/common/ssp.c | 12 +++--- libc/sysdeps/linux/common/stat.c | 2 +- libc/sysdeps/linux/common/stat64.c | 2 +- libc/sysdeps/linux/common/statfs.c | 1 + libc/sysdeps/linux/common/stime.c | 2 +- libc/sysdeps/linux/common/times.c | 2 +- libc/sysdeps/linux/common/truncate.c | 2 +- libc/sysdeps/linux/common/truncate64.c | 2 +- libc/sysdeps/linux/common/ulimit.c | 6 +-- libc/sysdeps/linux/common/uname.c | 2 +- libc/sysdeps/linux/common/unlink.c | 2 +- libc/sysdeps/linux/common/utime.c | 4 +- libc/sysdeps/linux/common/utimes.c | 4 +- libc/sysdeps/linux/common/vfork.c | 4 +- libc/sysdeps/linux/common/vmsplice.c | 5 --- libc/sysdeps/linux/common/wait.c | 2 +- libc/sysdeps/linux/common/wait3.c | 2 +- libc/sysdeps/linux/common/wait4.c | 2 +- libc/sysdeps/linux/common/waitid.c | 2 +- libc/sysdeps/linux/common/waitpid.c | 4 +- libc/sysdeps/linux/cris/fork.c | 2 +- libc/sysdeps/linux/e1/vfork.c | 2 +- libc/sysdeps/linux/frv/fstat64.c | 2 +- libc/sysdeps/linux/frv/lstat64.c | 2 +- libc/sysdeps/linux/frv/stat64.c | 2 +- libc/sysdeps/linux/powerpc/ioctl.c | 4 +- libc/sysdeps/linux/powerpc/pread_write.c | 2 +- libc/sysdeps/linux/sh/pipe.c | 2 +- libc/sysdeps/linux/x86_64/sys/io.h | 1 + libc/sysdeps/linux/xtensa/pread_write.c | 2 +- libc/termios/cfsetspeed.c | 4 +- libc/termios/isatty.c | 4 +- libc/termios/speed.c | 4 +- libc/termios/tcgetattr.c | 2 +- libc/termios/tcgetpgrp.c | 2 +- libc/termios/tcgetsid.c | 4 +- libc/termios/tcsetattr.c | 2 +- libc/termios/ttyname.c | 10 ++--- libc/unistd/daemon.c | 8 ++-- libc/unistd/exec.c | 14 +++---- libc/unistd/getlogin.c | 2 +- libc/unistd/getopt-susv3.c | 2 +- libc/unistd/getopt_long-simple.c | 2 +- libc/unistd/getpass.c | 16 ++++---- libc/unistd/sleep.c | 2 +- libc/unistd/sysconf.c | 6 +-- libc/unistd/ualarm.c | 2 +- libc/unistd/usershell.c | 6 +-- libc/unistd/usleep.c | 2 +- 434 files changed, 1623 insertions(+), 1181 deletions(-) diff --git a/include/arpa/inet.h b/include/arpa/inet.h index 02233d4e7..8ecad55f0 100644 --- a/include/arpa/inet.h +++ b/include/arpa/inet.h @@ -33,6 +33,7 @@ __BEGIN_DECLS /* Convert Internet host address from numbers-and-dots notation in CP into binary data in network byte order. */ extern in_addr_t inet_addr (__const char *__cp) __THROW; +libc_hidden_proto(inet_addr) /* Return the local host address part of the Internet address in IN. */ extern in_addr_t inet_lnaof (struct in_addr __in) __THROW; @@ -41,25 +42,31 @@ extern in_addr_t inet_lnaof (struct in_addr __in) __THROW; network number NET with the local address HOST. */ extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host) __THROW; +libc_hidden_proto(inet_makeaddr) /* Return network number part of the Internet address IN. */ extern in_addr_t inet_netof (struct in_addr __in) __THROW; +libc_hidden_proto(inet_netof) /* Extract the network number in network byte order from the address in numbers-and-dots natation starting at CP. */ extern in_addr_t inet_network (__const char *__cp) __THROW; +libc_hidden_proto(inet_network) /* Convert Internet number in IN to ASCII representation. The return value is a pointer to an internal array containing the string. */ extern char *inet_ntoa (struct in_addr __in) __THROW; +libc_hidden_proto(inet_ntoa) /* Recursion-safe flavor */ extern char *inet_ntoa_r (struct in_addr __in, char *__buf) __THROW; +libc_hidden_proto(inet_ntoa_r) /* Convert from presentation format of an Internet number in buffer starting at CP to the binary network format and store result for interface type AF in buffer starting at BUF. */ extern int inet_pton (int __af, __const char *__restrict __cp, void *__restrict __buf) __THROW; +libc_hidden_proto(inet_pton) /* Convert a Internet address in binary network format for interface type AF in buffer starting at CP to presentation form and place @@ -67,6 +74,7 @@ extern int inet_pton (int __af, __const char *__restrict __cp, extern __const char *inet_ntop (int __af, __const void *__restrict __cp, char *__restrict __buf, socklen_t __len) __THROW; +libc_hidden_proto(inet_ntop) /* The following functions are not part of XNS 5.2. */ @@ -74,6 +82,7 @@ extern __const char *inet_ntop (int __af, __const void *__restrict __cp, /* Convert Internet host address from numbers-and-dots notation in CP into binary data and store the result in the structure INP. */ extern int inet_aton (__const char *__cp, struct in_addr *__inp) __THROW; +libc_hidden_proto(inet_aton) /* Format a network number NET into presentation format and place result in buffer starting at BUF with length of LEN bytes. */ diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h index 496c8dbe8..a9c199e25 100644 --- a/include/arpa/nameser.h +++ b/include/arpa/nameser.h @@ -519,13 +519,16 @@ int ns_parse_ttl (const char *, u_long *) __THROW; u_int32_t ns_datetosecs (const char *cp, int *errp) __THROW; int ns_name_ntol (const u_char *, u_char *, size_t) __THROW; int ns_name_ntop (const u_char *, char *, size_t) __THROW; +libc_hidden_proto(ns_name_ntop) int ns_name_pton (const char *, u_char *, size_t) __THROW; int ns_name_unpack (const u_char *, const u_char *, const u_char *, u_char *, size_t) __THROW; +libc_hidden_proto(ns_name_unpack) int ns_name_pack (const u_char *, u_char *, int, const u_char **, const u_char **) __THROW; int ns_name_uncompress (const u_char *, const u_char *, const u_char *, char *, size_t) __THROW; +libc_hidden_proto(ns_name_uncompress) int ns_name_compress (const char *, u_char *, size_t, const u_char **, const u_char **) __THROW; int ns_name_skip (const u_char **, const u_char *) __THROW; diff --git a/include/assert.h b/include/assert.h index 9b9d1b796..439179d8d 100644 --- a/include/assert.h +++ b/include/assert.h @@ -52,6 +52,7 @@ __BEGIN_DECLS /* This prints an "Assertion failed" message and aborts. */ extern void __assert __P((const char *, const char *, int, const char *)); +libc_hidden_proto(__assert) __END_DECLS diff --git a/include/ctype.h b/include/ctype.h index 065dd5a49..3c1b0c3c7 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -169,6 +169,7 @@ __exctype (isgraph); __exctype (isprint); __exctype (ispunct); __exctype (isspace); +libc_hidden_proto(isspace) __exctype (isupper); __exctype (isxdigit); @@ -203,6 +204,7 @@ extern int isctype (int __c, int __mask) __THROW; /* Return nonzero iff C is in the ASCII set (i.e., is no more than 7 bits wide). */ extern int isascii (int __c) __THROW; +libc_hidden_proto(isascii) /* Return the part of C that is in the ASCII set (i.e., the low-order 7 bits of C). */ @@ -316,6 +318,7 @@ __exctype_l (isgraph_l); __exctype_l (isprint_l); __exctype_l (ispunct_l); __exctype_l (isspace_l); +libc_hidden_proto(isspace_l) __exctype_l (isupper_l); __exctype_l (isxdigit_l); @@ -325,10 +328,12 @@ __exctype_l (isblank_l); /* Return the lowercase version of C in locale L. */ extern int __tolower_l (int __c, __locale_t __l) __THROW; extern int tolower_l (int __c, __locale_t __l) __THROW; +libc_hidden_proto(tolower_l) /* Return the uppercase version of C. */ extern int __toupper_l (int __c, __locale_t __l) __THROW; extern int toupper_l (int __c, __locale_t __l) __THROW; +libc_hidden_proto(toupper_l) # if __GNUC__ >= 2 && defined __OPTIMIZE__ && !defined __cplusplus # define __tolower_l(c, locale) \ diff --git a/include/dirent.h b/include/dirent.h index 565a94dee..e2fce367c 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -133,6 +133,7 @@ typedef struct __dirstream DIR; This function is a possible cancellation point and therefore not marked with __THROW. */ extern DIR *opendir (__const char *__name) __nonnull ((1)); +libc_hidden_proto(opendir) /* Close the directory stream DIRP. Return 0 if successful, -1 if not. @@ -140,6 +141,7 @@ extern DIR *opendir (__const char *__name) __nonnull ((1)); This function is a possible cancellation point and therefore not marked with __THROW. */ extern int closedir (DIR *__dirp) __nonnull ((1)); +libc_hidden_proto(closedir) /* Read a directory entry from DIRP. Return a pointer to a `struct dirent' describing the entry, or NULL for EOF or error. The @@ -153,6 +155,7 @@ extern int closedir (DIR *__dirp) __nonnull ((1)); marked with __THROW. */ #ifndef __USE_FILE_OFFSET64 extern struct dirent *readdir (DIR *__dirp) __nonnull ((1)); +libc_hidden_proto(readdir) #else # ifdef __REDIRECT extern struct dirent *__REDIRECT (readdir, (DIR *__dirp), readdir64) @@ -164,6 +167,7 @@ extern struct dirent *__REDIRECT (readdir, (DIR *__dirp), readdir64) #ifdef __USE_LARGEFILE64 extern struct dirent64 *readdir64 (DIR *__dirp) __nonnull ((1)); +libc_hidden_proto(readdir64) #endif #if defined __USE_POSIX || defined __USE_MISC @@ -177,6 +181,7 @@ extern int readdir_r (DIR *__restrict __dirp, struct dirent *__restrict __entry, struct dirent **__restrict __result) __nonnull ((1, 2, 3)); +libc_hidden_proto(readdir_r) # else # ifdef __REDIRECT extern int __REDIRECT (readdir_r, @@ -194,6 +199,7 @@ extern int readdir64_r (DIR *__restrict __dirp, struct dirent64 *__restrict __entry, struct dirent64 **__restrict __result) __nonnull ((1, 2, 3)); +libc_hidden_proto(readdir64_r) # endif #endif /* POSIX or misc */ @@ -214,6 +220,7 @@ extern long int telldir (DIR *__dirp) __THROW __nonnull ((1)); /* Return the file descriptor used by DIRP. */ extern int dirfd (DIR *__dirp) __THROW __nonnull ((1)); +libc_hidden_proto(dirfd) # if 0 /* defined __OPTIMIZE__ && defined _DIR_dirfd */ # define dirfd(dirp) _DIR_dirfd (dirp) diff --git a/include/err.h b/include/err.h index 7ff3553ab..413e1ab26 100644 --- a/include/err.h +++ b/include/err.h @@ -36,22 +36,26 @@ extern void warn (__const char *__format, ...) __attribute__ ((__format__ (__printf__, 1, 2))); extern void vwarn (__const char *__format, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 1, 0))); +libc_hidden_proto(vwarn) /* Likewise, but without ": " and the standard error string. */ extern void warnx (__const char *__format, ...) __attribute__ ((__format__ (__printf__, 1, 2))); extern void vwarnx (__const char *__format, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 1, 0))); +libc_hidden_proto(vwarnx) /* Likewise, and then exit with STATUS. */ extern void err (int __status, __const char *__format, ...) __attribute__ ((__noreturn__, __format__ (__printf__, 2, 3))); extern void verr (int __status, __const char *__format, __gnuc_va_list) __attribute__ ((__noreturn__, __format__ (__printf__, 2, 0))); +libc_hidden_proto(verr) extern void errx (int __status, __const char *__format, ...) __attribute__ ((__noreturn__, __format__ (__printf__, 2, 3))); extern void verrx (int __status, __const char *, __gnuc_va_list) __attribute__ ((__noreturn__, __format__ (__printf__, 2, 0))); +libc_hidden_proto(verrx) __END_DECLS diff --git a/include/fcntl.h b/include/fcntl.h index 31a0149a7..4356dad60 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -82,6 +82,7 @@ extern int __REDIRECT (fcntl, (int __fd, int __cmd, ...), fcntl64); #endif #ifdef __USE_LARGEFILE64 extern int fcntl64 (int __fd, int __cmd, ...); +libc_hidden_proto(fcntl64) #endif /* Open FILE and return a new file descriptor for it, or -1 on error. @@ -103,6 +104,7 @@ extern int __REDIRECT (open, (__const char *__file, int __oflag, ...), open64) #endif #ifdef __USE_LARGEFILE64 extern int open64 (__const char *__file, int __oflag, ...) __nonnull ((1)); +libc_hidden_proto(open64) #endif #if 0 /*def __USE_GNU*/ @@ -167,6 +169,7 @@ extern int creat64 (__const char *__file, __mode_t __mode) __nonnull ((1)); # ifndef __USE_FILE_OFFSET64 extern int lockf (int __fd, int __cmd, __off_t __len); +libc_hidden_proto(lockf) # else # ifdef __REDIRECT extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len), lockf64); @@ -176,6 +179,7 @@ extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len), lockf64); # endif # ifdef __USE_LARGEFILE64 extern int lockf64 (int __fd, int __cmd, __off64_t __len); +libc_hidden_proto(lockf64) # endif #endif diff --git a/include/fnmatch.h b/include/fnmatch.h index aefb007fb..9178706f0 100644 --- a/include/fnmatch.h +++ b/include/fnmatch.h @@ -64,6 +64,7 @@ extern "C" { returning zero if it matches, FNM_NOMATCH if not. */ extern int fnmatch (__const char *__pattern, __const char *__name, int __flags); +libc_hidden_proto(fnmatch) #ifdef __cplusplus } diff --git a/include/glob.h b/include/glob.h index 68ea2cb9c..875dfc5b2 100644 --- a/include/glob.h +++ b/include/glob.h @@ -173,9 +173,11 @@ typedef struct extern int glob (__const char *__restrict __pattern, int __flags, int (*__errfunc) (__const char *, int), glob_t *__restrict __pglob) __THROW; +libc_hidden_proto(glob) /* Free storage allocated in PGLOB by a previous `glob' call. */ extern void globfree (glob_t *__pglob) __THROW; +libc_hidden_proto(globfree) #else extern int __REDIRECT_NTH (glob, (__const char *__restrict __pattern, int __flags, @@ -189,8 +191,10 @@ extern void __REDIRECT_NTH (globfree, (glob_t *__pglob), globfree64); extern int glob64 (__const char *__restrict __pattern, int __flags, int (*__errfunc) (__const char *, int), glob64_t *__restrict __pglob) __THROW; +libc_hidden_proto(glob64) extern void globfree64 (glob64_t *__pglob) __THROW; +libc_hidden_proto(globfree64) #endif @@ -201,6 +205,7 @@ extern void globfree64 (glob64_t *__pglob) __THROW; This function is not part of the interface specified by POSIX.2 but several programs want to use it. */ extern int glob_pattern_p (__const char *__pattern, int __quote) __THROW; +libc_hidden_proto(glob_pattern_p) #endif __END_DECLS diff --git a/include/grp.h b/include/grp.h index fa381d2d0..45b21043c 100644 --- a/include/grp.h +++ b/include/grp.h @@ -133,6 +133,7 @@ extern struct group *getgrnam (__const char *__name); extern int getgrent_r (struct group *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct group **__restrict __result); +libc_hidden_proto(getgrent_r) # endif /* Search for an entry with a matching group ID. @@ -142,6 +143,7 @@ extern int getgrent_r (struct group *__restrict __resultbuf, extern int getgrgid_r (__gid_t __gid, struct group *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct group **__restrict __result); +libc_hidden_proto(getgrgid_r) /* Search for an entry with a matching group name. @@ -151,6 +153,7 @@ extern int getgrnam_r (__const char *__restrict __name, struct group *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct group **__restrict __result); +libc_hidden_proto(getgrnam_r) # ifdef __USE_SVID /* Read a group entry from STREAM. This function is not standardized @@ -164,6 +167,7 @@ extern int fgetgrent_r (FILE *__restrict __stream, struct group *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct group **__restrict __result); +libc_hidden_proto(fgetgrent_r) # endif #endif /* POSIX or reentrant */ @@ -192,6 +196,7 @@ extern int getgrouplist (__const char *__user, __gid_t __group, /* Set the group set for the current user to GROUPS (N of them). */ extern int setgroups (size_t __n, __const __gid_t *__groups) __THROW; +libc_hidden_proto(setgroups) /* Initialize the group set for the current user by reading the group database and using all groups diff --git a/include/langinfo.h b/include/langinfo.h index 12f008046..f289a66c0 100644 --- a/include/langinfo.h +++ b/include/langinfo.h @@ -603,6 +603,7 @@ enum it is usually in read-only memory and cannot be modified. */ extern char *nl_langinfo (nl_item __item) __THROW; +libc_hidden_proto(nl_langinfo) #ifdef __UCLIBC_HAS_XLOCALE__ @@ -615,6 +616,7 @@ extern char *nl_langinfo (nl_item __item) __THROW; /* Just like nl_langinfo but get the information from the locale object L. */ extern char *nl_langinfo_l (nl_item __item, __locale_t l); +libc_hidden_proto(nl_langinfo_l) #endif #endif diff --git a/include/libc-internal.h b/include/libc-internal.h index 7b2566f74..525444ac8 100644 --- a/include/libc-internal.h +++ b/include/libc-internal.h @@ -46,8 +46,10 @@ /* sources are built w/ _GNU_SOURCE, this gets undefined */ #ifdef __USE_GNU extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen); +libc_hidden_proto(__xpg_strerror_r) #else extern char *__glibc_strerror_r (int __errnum, char *__buf, size_t __buflen); +libc_hidden_proto(__glibc_strerror_r) #endif /* #include */ diff --git a/include/locale.h b/include/locale.h index 241e3f057..cdb3a09d9 100644 --- a/include/locale.h +++ b/include/locale.h @@ -128,6 +128,7 @@ extern char *setlocale (int __category, __const char *__locale) __THROW; /* Return the numeric/monetary information for the current locale. */ extern struct lconv *localeconv (void) __THROW; +libc_hidden_proto(localeconv) __END_NAMESPACE_STD @@ -157,6 +158,7 @@ typedef __locale_t locale_t; made by OR'ing together LC_*_MASK bits above. */ extern __locale_t newlocale (int __category_mask, __const char *__locale, __locale_t __base) __THROW; +libc_hidden_proto(newlocale) /* These are the bits that can be set in the CATEGORY_MASK argument to `newlocale'. In the GNU implementation, LC_FOO_MASK has the value @@ -204,6 +206,7 @@ extern __locale_t newlocale (int __category_mask, __const char *__locale, /* Return a duplicate of the set of locale in DATASET. All usage counters are increased if necessary. */ extern __locale_t duplocale (__locale_t __dataset) __THROW; +libc_hidden_proto(duplocale) /* Free the data associated with a locale dataset previously returned by a call to `setlocale_r'. */ diff --git a/include/malloc.h b/include/malloc.h index 12834a547..1865409f9 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -146,6 +146,7 @@ struct mallinfo { /* Returns a copy of the updated current mallinfo. */ extern struct mallinfo mallinfo __MALLOC_P ((void)); +libc_hidden_proto(mallinfo) /* Release all but __pad bytes of freed top-most memory back to the system. Return 1 if successful, else 0. */ @@ -189,7 +190,9 @@ extern int mallopt __MALLOC_P ((int __param, int __val)); * if it returns. If __uc_malloc_failed is NULL, uclibc will _exit(1). * NB: do not use stdio in __uc_malloc_failed handler! */ extern void *__uc_malloc(size_t size); +libc_hidden_proto(__uc_malloc) extern void (*__uc_malloc_failed)(size_t size); +libc_hidden_proto(__uc_malloc_failed) #ifdef __cplusplus } /* end of extern "C" */ diff --git a/include/mntent.h b/include/mntent.h index a82e9539a..a936b834c 100644 --- a/include/mntent.h +++ b/include/mntent.h @@ -65,6 +65,7 @@ struct mntent /* Prepare to begin reading and/or writing mount table entries from the beginning of FILE. MODE is as for `fopen'. */ extern FILE *setmntent (__const char *__file, __const char *__mode) __THROW; +libc_hidden_proto(setmntent) /* Read one mount table entry from STREAM. Returns a pointer to storage reused on the next call, or null for EOF or error (use feof/ferror to @@ -77,6 +78,7 @@ extern struct mntent *getmntent_r (FILE *__restrict __stream, struct mntent *__restrict __result, char *__restrict __buffer, int __bufsize) __THROW; +libc_hidden_proto(getmntent_r) #endif /* Write the mount table entry described by MNT to STREAM. @@ -86,6 +88,7 @@ extern int addmntent (FILE *__restrict __stream, /* Close a stream opened with `setmntent'. */ extern int endmntent (FILE *__stream) __THROW; +libc_hidden_proto(endmntent) /* Search MNT->mnt_opts for an option matching OPT. Returns the address of the substring, or null if none found. */ diff --git a/include/net/if.h b/include/net/if.h index ebb3e9f30..6d6d59a18 100644 --- a/include/net/if.h +++ b/include/net/if.h @@ -192,13 +192,16 @@ __BEGIN_DECLS /* Convert an interface name to an index, and vice versa. */ extern unsigned int if_nametoindex (__const char *__ifname) __THROW; +libc_hidden_proto(if_nametoindex) extern char *if_indextoname (unsigned int __ifindex, char *__ifname) __THROW; /* Return a list of all interfaces and their indices. */ extern struct if_nameindex *if_nameindex (void) __THROW; +libc_hidden_proto(if_nameindex) /* Free the data returned from if_nameindex. */ extern void if_freenameindex (struct if_nameindex *__ptr) __THROW; +libc_hidden_proto(if_freenameindex) __END_DECLS diff --git a/include/netdb.h b/include/netdb.h index df90601ac..99ba243f5 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -64,6 +64,7 @@ extern int h_errno; /* Function to get address of global `h_errno' variable. */ extern int *__h_errno_location (void) __THROW __attribute__ ((__const__)); +libc_hidden_proto(__h_errno_location) #ifdef _LIBC # define __set_h_errno(x) (h_errno = (x)) @@ -94,6 +95,7 @@ extern int *__h_errno_location (void) __THROW __attribute__ ((__const__)); /* Print error indicated by `h_errno' variable on standard error. STR if non-null is printed before the error string. */ extern void herror (__const char *__str) __THROW; +libc_hidden_proto(herror) /* Return string associated with error ERR_NUM. */ extern __const char *hstrerror (int __err_num) __THROW; @@ -138,12 +140,14 @@ extern struct hostent *gethostent (void); marked with __THROW. */ extern struct hostent *gethostbyaddr (__const void *__addr, __socklen_t __len, int __type); +libc_hidden_proto(gethostbyaddr) /* Return entry from host data base for host with NAME. This function is a possible cancellation point and therefore not marked with __THROW. */ extern struct hostent *gethostbyname (__const char *__name); +libc_hidden_proto(gethostbyname) #ifdef __USE_MISC /* Return entry from host data base for host with NAME. AF must be @@ -170,6 +174,7 @@ extern int gethostent_r (struct hostent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct hostent **__restrict __result, int *__restrict __h_errnop); +libc_hidden_proto(gethostent_r) extern int gethostbyaddr_r (__const void *__restrict __addr, __socklen_t __len, int __type, @@ -177,18 +182,21 @@ extern int gethostbyaddr_r (__const void *__restrict __addr, __socklen_t __len, char *__restrict __buf, size_t __buflen, struct hostent **__restrict __result, int *__restrict __h_errnop); +libc_hidden_proto(gethostbyaddr_r) extern int gethostbyname_r (__const char *__restrict __name, struct hostent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct hostent **__restrict __result, int *__restrict __h_errnop); +libc_hidden_proto(gethostbyname_r) extern int gethostbyname2_r (__const char *__restrict __name, int __af, struct hostent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct hostent **__restrict __result, int *__restrict __h_errnop); +libc_hidden_proto(gethostbyname2_r) #endif /* misc */ @@ -198,12 +206,14 @@ extern int gethostbyname2_r (__const char *__restrict __name, int __af, This function is a possible cancellation point and therefore not marked with __THROW. */ extern void setnetent (int __stay_open); +libc_hidden_proto(setnetent) /* Close network data base files and clear `stay open' flag. This function is a possible cancellation point and therefore not marked with __THROW. */ extern void endnetent (void); +libc_hidden_proto(endnetent) /* Get next entry from network data base file. Open data base if necessary. @@ -211,6 +221,7 @@ extern void endnetent (void); This function is a possible cancellation point and therefore not marked with __THROW. */ extern struct netent *getnetent (void); +libc_hidden_proto(getnetent) /* Return entry from network data base which address match NET and type TYPE. @@ -273,12 +284,14 @@ struct servent This function is a possible cancellation point and therefore not marked with __THROW. */ extern void setservent (int __stay_open); +libc_hidden_proto(setservent) /* Close service data base files and clear `stay open' flag. This function is a possible cancellation point and therefore not marked with __THROW. */ extern void endservent (void); +libc_hidden_proto(endservent) /* Get next entry from service data base file. Open data base if necessary. @@ -301,6 +314,7 @@ extern struct servent *getservbyname (__const char *__name, This function is a possible cancellation point and therefore not marked with __THROW. */ extern struct servent *getservbyport (int __port, __const char *__proto); +libc_hidden_proto(getservbyport) #ifdef __USE_MISC @@ -314,17 +328,20 @@ extern struct servent *getservbyport (int __port, __const char *__proto); extern int getservent_r (struct servent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct servent **__restrict __result); +libc_hidden_proto(getservent_r) extern int getservbyname_r (__const char *__restrict __name, __const char *__restrict __proto, struct servent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct servent **__restrict __result); +libc_hidden_proto(getservbyname_r) extern int getservbyport_r (int __port, __const char *__restrict __proto, struct servent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct servent **__restrict __result); +libc_hidden_proto(getservbyport_r) #endif /* misc */ @@ -342,12 +359,14 @@ struct protoent This function is a possible cancellation point and therefore not marked with __THROW. */ extern void setprotoent (int __stay_open); +libc_hidden_proto(setprotoent) /* Close protocol data base files and clear `stay open' flag. This function is a possible cancellation point and therefore not marked with __THROW. */ extern void endprotoent (void); +libc_hidden_proto(endprotoent) /* Get next entry from protocol data base file. Open data base if necessary. @@ -380,16 +399,19 @@ extern struct protoent *getprotobynumber (int __proto); extern int getprotoent_r (struct protoent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct protoent **__restrict __result); +libc_hidden_proto(getprotoent_r) extern int getprotobyname_r (__const char *__restrict __name, struct protoent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct protoent **__restrict __result); +libc_hidden_proto(getprotobyname_r) extern int getprotobynumber_r (int __proto, struct protoent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct protoent **__restrict __result); +libc_hidden_proto(getprotobynumber_r) #ifdef __UCLIBC_HAS_NETGROUP__ @@ -447,6 +469,7 @@ extern int getnetgrent_r (char **__restrict __hostp, /* ruserpass - remote password check. This function also exists in glibc but is undocumented */ extern int ruserpass(const char *host, const char **aname, const char **apass); +libc_hidden_proto(ruserpass) #ifdef __USE_BSD @@ -509,6 +532,7 @@ extern int rexec_af (char **__restrict __ahost, int __rport, __const char *__restrict __pass, __const char *__restrict __cmd, int *__restrict __fd2p, sa_family_t __af); +libc_hidden_proto(rexec_af) /* Check whether user REMUSER on system RHOST is allowed to login as LOCUSER. If SUSER is not zero the user tries to become superuser. Return 0 if @@ -544,6 +568,7 @@ extern int ruserok_af (__const char *__rhost, int __suser, or due to the implementation it is a cancellation point and therefore not marked with __THROW. */ extern int rresvport (int *__alport); +libc_hidden_proto(rresvport) #if 0 /* FIXME */ @@ -641,9 +666,11 @@ extern int getaddrinfo (__const char *__restrict __name, __const char *__restrict __service, __const struct addrinfo *__restrict __req, struct addrinfo **__restrict __pai); +libc_hidden_proto(getaddrinfo) /* Free `addrinfo' structure AI including associated storage. */ extern void freeaddrinfo (struct addrinfo *__ai) __THROW; +libc_hidden_proto(freeaddrinfo) /* Convert error return from getaddrinfo() to a string. */ extern __const char *gai_strerror (int __ecode) __THROW; @@ -656,6 +683,7 @@ extern int getnameinfo (__const struct sockaddr *__restrict __sa, socklen_t __salen, char *__restrict __host, socklen_t __hostlen, char *__restrict __serv, socklen_t __servlen, unsigned int __flags); +libc_hidden_proto(getnameinfo) #endif /* POSIX */ __END_DECLS diff --git a/include/netinet/ether.h b/include/netinet/ether.h index 0f7029f95..3d8902f50 100644 --- a/include/netinet/ether.h +++ b/include/netinet/ether.h @@ -33,6 +33,7 @@ __BEGIN_DECLS extern char *ether_ntoa (__const struct ether_addr *__addr) __THROW; extern char *ether_ntoa_r (__const struct ether_addr *__addr, char *__buf) __THROW; +libc_hidden_proto(ether_ntoa_r) /* Convert ASCII string S to 48 bit Ethernet address. */ extern struct ether_addr *ether_aton (__const char *__asc) __THROW; diff --git a/include/netinet/in.h b/include/netinet/in.h index 6bfc5e780..942373fcd 100644 --- a/include/netinet/in.h +++ b/include/netinet/in.h @@ -206,6 +206,7 @@ struct in6_addr extern const struct in6_addr in6addr_any; /* :: */ extern const struct in6_addr in6addr_loopback; /* ::1 */ +libc_hidden_proto(in6addr_loopback) #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } #define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } @@ -429,6 +430,7 @@ extern uint16_t htons (uint16_t __hostshort) /* Bind socket to a privileged IP port. */ extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in) __THROW; +libc_hidden_proto(bindresvport) /* The IPv6 version of this function. */ extern int bindresvport6 (int __sockfd, struct sockaddr_in6 *__sock_in) diff --git a/include/pwd.h b/include/pwd.h index e87413304..4623bfddc 100644 --- a/include/pwd.h +++ b/include/pwd.h @@ -140,17 +140,20 @@ extern struct passwd *getpwnam (__const char *__name); extern int getpwent_r (struct passwd *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct passwd **__restrict __result); +libc_hidden_proto(getpwent_r) # endif extern int getpwuid_r (__uid_t __uid, struct passwd *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct passwd **__restrict __result); +libc_hidden_proto(getpwuid_r) extern int getpwnam_r (__const char *__restrict __name, struct passwd *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct passwd **__restrict __result); +libc_hidden_proto(getpwnam_r) # ifdef __USE_SVID @@ -165,6 +168,7 @@ extern int fgetpwent_r (FILE *__restrict __stream, struct passwd *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct passwd **__restrict __result); +libc_hidden_proto(fgetpwent_r) # endif #endif /* POSIX or reentrant */ diff --git a/include/resolv.h b/include/resolv.h index acbd4c7f1..ee204dbe3 100644 --- a/include/resolv.h +++ b/include/resolv.h @@ -310,12 +310,15 @@ void p_query (const u_char *) __THROW; void res_close (void) __THROW; #endif int res_init (void) __THROW; +libc_hidden_proto(res_init) int res_isourserver (const struct sockaddr_in *) __THROW; int res_mkquery (int, const char *, int, int, const u_char *, int, const u_char *, u_char *, int) __THROW; int res_query (const char *, int, int, u_char *, int) __THROW; +libc_hidden_proto(res_query) int res_querydomain (const char *, const char *, int, int, u_char *, int) __THROW; +libc_hidden_proto(res_querydomain) int res_search (const char *, int, int, u_char *, int) __THROW; int res_send (const u_char *, int, u_char *, int) __THROW; __END_DECLS diff --git a/include/rpc/auth.h b/include/rpc/auth.h index 17eb59f70..15126c166 100644 --- a/include/rpc/auth.h +++ b/include/rpc/auth.h @@ -171,8 +171,11 @@ extern struct opaque_auth _null_auth; */ extern AUTH *authunix_create (char *__machname, __uid_t __uid, __gid_t __gid, int __len, __gid_t *__aup_gids); +libc_hidden_proto(authunix_create) extern AUTH *authunix_create_default (void); +libc_hidden_proto(authunix_create_default) extern AUTH *authnone_create (void) __THROW; +libc_hidden_proto(authnone_create) extern AUTH *authdes_create (const char *__servername, u_int __window, struct sockaddr *__syncaddr, des_block *__ckey) __THROW; @@ -218,6 +221,7 @@ extern int key_get_conv (char *, des_block *); * XDR an opaque authentication struct. */ extern bool_t xdr_opaque_auth (XDR *, struct opaque_auth *) __THROW; +libc_hidden_proto(xdr_opaque_auth) __END_DECLS diff --git a/include/rpc/auth_des.h b/include/rpc/auth_des.h index 12ada8404..7a6b8be8d 100644 --- a/include/rpc/auth_des.h +++ b/include/rpc/auth_des.h @@ -105,6 +105,7 @@ extern int getsecretkey (__const char *__name, char *__key, extern int rtime (struct sockaddr_in *__addrp, struct rpc_timeval *__timep, struct rpc_timeval *__timeout) __THROW; +libc_hidden_proto(rtime) __END_DECLS diff --git a/include/rpc/auth_unix.h b/include/rpc/auth_unix.h index 424661d9c..713fcb437 100644 --- a/include/rpc/auth_unix.h +++ b/include/rpc/auth_unix.h @@ -74,6 +74,7 @@ struct authunix_parms extern bool_t xdr_authunix_parms (XDR *__xdrs, struct authunix_parms *__p) __THROW; +libc_hidden_proto(xdr_authunix_parms) /* * If a response verifier has flavor AUTH_SHORT, diff --git a/include/rpc/clnt.h b/include/rpc/clnt.h index cf271c5c1..72801e382 100644 --- a/include/rpc/clnt.h +++ b/include/rpc/clnt.h @@ -310,6 +310,7 @@ extern CLIENT *clnt_create (__const char *__host, __const u_long __prog, extern CLIENT *clnttcp_create (struct sockaddr_in *__raddr, u_long __prog, u_long __version, int *__sockp, u_int __sendsz, u_int __recvsz) __THROW; +libc_hidden_proto(clnttcp_create) /* * UDP based rpc. @@ -335,12 +336,12 @@ extern CLIENT *clnttcp_create (struct sockaddr_in *__raddr, u_long __prog, extern CLIENT *clntudp_create (struct sockaddr_in *__raddr, u_long __program, u_long __version, struct timeval __wait_resend, int *__sockp) __THROW; +libc_hidden_proto(clntudp_create) extern CLIENT *clntudp_bufcreate (struct sockaddr_in *__raddr, u_long __program, u_long __version, struct timeval __wait_resend, int *__sockp, u_int __sendsz, u_int __recvsz) __THROW; - - +libc_hidden_proto(clntudp_bufcreate) /* @@ -357,6 +358,7 @@ extern CLIENT *clntudp_bufcreate (struct sockaddr_in *__raddr, extern CLIENT *clntunix_create (struct sockaddr_un *__raddr, u_long __program, u_long __version, int *__sockp, u_int __sendsz, u_int __recvsz) __THROW; +libc_hidden_proto(clntunix_create) extern int callrpc (__const char *__host, __const u_long __prognum, @@ -364,12 +366,14 @@ extern int callrpc (__const char *__host, __const u_long __prognum, __const xdrproc_t __inproc, __const char *__in, __const xdrproc_t __outproc, char *__out) __THROW; extern int _rpc_dtablesize (void) __THROW; +libc_hidden_proto(_rpc_dtablesize) /* * Print why creation failed */ extern void clnt_pcreateerror (__const char *__msg); /* stderr */ extern char *clnt_spcreateerror(__const char *__msg) __THROW; /* string */ +libc_hidden_proto(clnt_spcreateerror) /* * Like clnt_perror(), but is more verbose in its output @@ -381,8 +385,11 @@ extern void clnt_perrno (enum clnt_stat __num); /* stderr */ */ extern void clnt_perror (CLIENT *__clnt, __const char *__msg); /* stderr */ +libc_hidden_proto(clnt_perror) extern char *clnt_sperror (CLIENT *__clnt, __const char *__msg) __THROW; /* string */ +libc_hidden_proto(clnt_sperror) + /* * If a creation fails, the following allows the user to figure out why. @@ -400,6 +407,7 @@ extern struct rpc_createerr rpc_createerr; * Copy error message to buffer. */ extern char *clnt_sperrno (enum clnt_stat __num) __THROW; /* string */ +libc_hidden_proto(clnt_sperrno) /* * get the port number on the host for the rpc program,version and proto diff --git a/include/rpc/netdb.h b/include/rpc/netdb.h index 86717373c..e9a6565ad 100644 --- a/include/rpc/netdb.h +++ b/include/rpc/netdb.h @@ -51,10 +51,15 @@ struct rpcent }; extern void setrpcent (int __stayopen) __THROW; +libc_hidden_proto(setrpcent) extern void endrpcent (void) __THROW; +libc_hidden_proto(endrpcent) extern struct rpcent *getrpcbyname (__const char *__name) __THROW; +libc_hidden_proto(getrpcbyname) extern struct rpcent *getrpcbynumber (int __number) __THROW; +libc_hidden_proto(getrpcbynumber) extern struct rpcent *getrpcent (void) __THROW; +libc_hidden_proto(getrpcent) #if defined __USE_MISC && defined __UCLIBC_HAS_REENTRANT_RPC__ extern int getrpcbyname_r (__const char *__name, struct rpcent *__result_buf, diff --git a/include/rpc/pmap_clnt.h b/include/rpc/pmap_clnt.h index 1b1c45291..f5e825d67 100644 --- a/include/rpc/pmap_clnt.h +++ b/include/rpc/pmap_clnt.h @@ -71,8 +71,10 @@ typedef bool_t (*resultproc_t) (caddr_t resp, struct sockaddr_in *raddr); extern bool_t pmap_set (__const u_long __program, __const u_long __vers, int __protocol, u_short __port) __THROW; +libc_hidden_proto(pmap_set) extern bool_t pmap_unset (__const u_long __program, __const u_long __vers) __THROW; +libc_hidden_proto(pmap_unset) extern struct pmaplist *pmap_getmaps (struct sockaddr_in *__address) __THROW; extern enum clnt_stat pmap_rmtcall (struct sockaddr_in *__addr, __const u_long __prog, @@ -92,6 +94,7 @@ extern u_short pmap_getport (struct sockaddr_in *__address, __const u_long __program, __const u_long __version, u_int __protocol) __THROW; +libc_hidden_proto(pmap_getport) __END_DECLS diff --git a/include/rpc/pmap_prot.h b/include/rpc/pmap_prot.h index cd64e36de..30b26709f 100644 --- a/include/rpc/pmap_prot.h +++ b/include/rpc/pmap_prot.h @@ -95,6 +95,7 @@ struct pmap { }; extern bool_t xdr_pmap (XDR *__xdrs, struct pmap *__regs) __THROW; +libc_hidden_proto(xdr_pmap) struct pmaplist { struct pmap pml_map; @@ -102,6 +103,7 @@ struct pmaplist { }; extern bool_t xdr_pmaplist (XDR *__xdrs, struct pmaplist **__rp) __THROW; +libc_hidden_proto(xdr_pmaplist) __END_DECLS diff --git a/include/rpc/pmap_rmt.h b/include/rpc/pmap_rmt.h index 7a38b5f5f..59b4f6587 100644 --- a/include/rpc/pmap_rmt.h +++ b/include/rpc/pmap_rmt.h @@ -53,6 +53,8 @@ struct rmtcallargs { extern bool_t xdr_rmtcall_args (XDR *__xdrs, struct rmtcallargs *__crp) __THROW; +libc_hidden_proto(xdr_rmtcall_args) + struct rmtcallres { u_long *port_ptr; @@ -62,6 +64,7 @@ struct rmtcallres { }; extern bool_t xdr_rmtcallres (XDR *__xdrs, struct rmtcallres *__crp) __THROW; +libc_hidden_proto(xdr_rmtcallres) __END_DECLS diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h index 8194ffee3..dce1c3e71 100644 --- a/include/rpc/rpc.h +++ b/include/rpc/rpc.h @@ -84,10 +84,12 @@ __BEGIN_DECLS /* Global variables, protected for multi-threaded applications. */ extern fd_set *__rpc_thread_svc_fdset (void) __attribute__ ((__const__)); +libc_hidden_proto(__rpc_thread_svc_fdset) #define svc_fdset (*__rpc_thread_svc_fdset ()) extern struct rpc_createerr *__rpc_thread_createerr (void) __attribute__ ((__const__)); +libc_hidden_proto(__rpc_thread_createerr) #define get_rpc_createerr() (*__rpc_thread_createerr ()) /* The people who "engineered" RPC should bee punished for naming the data structure and the variable the same. We cannot always define the @@ -100,13 +102,17 @@ extern struct rpc_createerr *__rpc_thread_createerr (void) extern struct pollfd **__rpc_thread_svc_pollfd (void) __attribute__ ((__const__)); +libc_hidden_proto(__rpc_thread_svc_pollfd) #define svc_pollfd (*__rpc_thread_svc_pollfd ()) extern int *__rpc_thread_svc_max_pollfd (void) __attribute__ ((__const__)); +libc_hidden_proto(__rpc_thread_svc_max_pollfd) #define svc_max_pollfd (*__rpc_thread_svc_max_pollfd ()) extern bool_t xdr_accepted_reply (XDR *xdrs, struct accepted_reply *ar); +libc_hidden_proto(xdr_accepted_reply) extern bool_t xdr_rejected_reply (XDR *xdrs, struct rejected_reply *rr); +libc_hidden_proto(xdr_rejected_reply) __END_DECLS diff --git a/include/rpc/rpc_msg.h b/include/rpc/rpc_msg.h index c04f03cc6..c848b39c2 100644 --- a/include/rpc/rpc_msg.h +++ b/include/rpc/rpc_msg.h @@ -171,6 +171,7 @@ struct rpc_msg { * struct rpc_msg *cmsg; */ extern bool_t xdr_callmsg (XDR *__xdrs, struct rpc_msg *__cmsg) __THROW; +libc_hidden_proto(xdr_callmsg) /* * XDR routine to pre-serialize the static part of a rpc message. @@ -179,6 +180,7 @@ extern bool_t xdr_callmsg (XDR *__xdrs, struct rpc_msg *__cmsg) __THROW; * struct rpc_msg *cmsg; */ extern bool_t xdr_callhdr (XDR *__xdrs, struct rpc_msg *__cmsg) __THROW; +libc_hidden_proto(xdr_callhdr) /* * XDR routine to handle a rpc reply. @@ -197,6 +199,7 @@ libc_hidden_proto(xdr_replymsg) */ extern void _seterr_reply (struct rpc_msg *__msg, struct rpc_err *__error) __THROW; +libc_hidden_proto(_seterr_reply) __END_DECLS diff --git a/include/rpc/svc.h b/include/rpc/svc.h index 3ffca50bd..689832548 100644 --- a/include/rpc/svc.h +++ b/include/rpc/svc.h @@ -173,6 +173,7 @@ typedef void (*__dispatch_fn_t) (struct svc_req*, SVCXPRT*); extern bool_t svc_register (SVCXPRT *__xprt, rpcprog_t __prog, rpcvers_t __vers, __dispatch_fn_t __dispatch, rpcprot_t __protocol) __THROW; +libc_hidden_proto(svc_r