summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-26 22:04:19 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-26 22:04:19 +0000
commit05e75260d6952308d7c865ff67c0e3678b7ba935 (patch)
treeac1a5d0ab7904783917b52ffa5489e8367743ff7
parent2fec342738cefe71910e8e8ab8636accfc5867bc (diff)
Get rid of missing prototype warnings
-rw-r--r--ldso/ldso/dl-elf.c1
-rw-r--r--ldso/ldso/ldso.c3
-rw-r--r--ldso/libdl/libdl.c3
-rw-r--r--libc/inet/ntohl.c21
-rw-r--r--libc/inet/opensock.c3
-rw-r--r--libc/inet/resolv.c12
-rw-r--r--libc/inet/rpc/create_xid.c3
-rw-r--r--libc/inet/rpc/rcmd.c3
-rw-r--r--libc/inet/rpc/sa_len.c3
-rw-r--r--libc/inet/rpc/svc_authux.c6
-rw-r--r--libc/inet/rpc/svc_simple.c2
-rw-r--r--libc/inet/rpc/svc_tcp.c2
-rw-r--r--libc/inet/rpc/svc_udp.c1
-rw-r--r--libc/inet/rpc/svc_unix.c2
-rw-r--r--libc/inet/socketcalls.c8
-rw-r--r--libc/misc/error/error.c12
-rw-r--r--libc/misc/sysvipc/ipc.h4
-rw-r--r--libc/pwd_grp/lckpwdf.c1
-rw-r--r--libc/signal/allocrtsig.c1
-rw-r--r--libc/signal/raise.c3
-rw-r--r--libc/signal/sigjmp.c2
-rw-r--r--libc/signal/signal.c1
-rw-r--r--libc/signal/sigwait.c3
-rw-r--r--libc/stdio/_fpmaxtostr.c4
-rw-r--r--libc/stdio/_load_inttype.c3
-rw-r--r--libc/stdio/_store_inttype.c3
-rw-r--r--libc/stdlib/atexit.c1
-rw-r--r--libc/stdlib/drand48-iter.c3
-rw-r--r--libc/stdlib/realpath.c1
-rw-r--r--libc/stdlib/setenv.c4
-rw-r--r--libc/stdlib/system.c8
-rw-r--r--libc/string/__xpg_basename.c1
-rw-r--r--libc/string/dirname.c1
-rw-r--r--libc/string/psignal.c1
-rw-r--r--libc/string/strlcpy.c4
-rw-r--r--libc/sysdeps/linux/arm/__syscall_error.c3
-rw-r--r--libc/sysdeps/linux/arm/sigaction.c2
-rw-r--r--libc/sysdeps/linux/common/__socketcall.c3
-rw-r--r--libc/sysdeps/linux/common/__syscall_ipc.c3
-rw-r--r--libc/sysdeps/linux/common/__syscall_rt_sigaction.c4
-rw-r--r--libc/sysdeps/linux/common/__syscall_sigaction.c4
-rw-r--r--libc/sysdeps/linux/common/capget.c1
-rw-r--r--libc/sysdeps/linux/common/capset.c1
-rw-r--r--libc/sysdeps/linux/common/close.c1
-rw-r--r--libc/sysdeps/linux/common/create_module.c3
-rw-r--r--libc/sysdeps/linux/common/delete_module.c1
-rw-r--r--libc/sysdeps/linux/common/fork.c1
-rw-r--r--libc/sysdeps/linux/common/fsync.c1
-rw-r--r--libc/sysdeps/linux/common/get_kernel_syms.c1
-rw-r--r--libc/sysdeps/linux/common/getpagesize.c1
-rw-r--r--libc/sysdeps/linux/common/getpgid.c1
-rw-r--r--libc/sysdeps/linux/common/getpid.c1
-rw-r--r--libc/sysdeps/linux/common/getresgid.c1
-rw-r--r--libc/sysdeps/linux/common/getresuid.c1
-rw-r--r--libc/sysdeps/linux/common/init_module.c1
-rw-r--r--libc/sysdeps/linux/common/ioperm.c1
-rw-r--r--libc/sysdeps/linux/common/iopl.c1
-rw-r--r--libc/sysdeps/linux/common/klogctl.c1
-rw-r--r--libc/sysdeps/linux/common/llseek.c2
-rw-r--r--libc/sysdeps/linux/common/longjmp.c3
-rw-r--r--libc/sysdeps/linux/common/madvise.c1
-rw-r--r--libc/sysdeps/linux/common/mincore.c1
-rw-r--r--libc/sysdeps/linux/common/modify_ldt.c1
-rw-r--r--libc/sysdeps/linux/common/msync.c1
-rw-r--r--libc/sysdeps/linux/common/nanosleep.c2
-rw-r--r--libc/sysdeps/linux/common/noophooks.c2
-rw-r--r--libc/sysdeps/linux/common/open64.c1
-rw-r--r--libc/sysdeps/linux/common/pause.c1
-rw-r--r--libc/sysdeps/linux/common/pivot_root.c1
-rw-r--r--libc/sysdeps/linux/common/prctl.c3
-rw-r--r--libc/sysdeps/linux/common/pread_write.c7
-rw-r--r--libc/sysdeps/linux/common/query_module.c2
-rw-r--r--libc/sysdeps/linux/common/read.c1
-rw-r--r--libc/sysdeps/linux/common/reboot.c1
-rw-r--r--libc/sysdeps/linux/common/ssp-local.c4
-rw-r--r--libc/sysdeps/linux/common/ssp.c10
-rw-r--r--libc/sysdeps/linux/common/sysctl.c4
-rw-r--r--libc/sysdeps/linux/common/uselib.c1
-rw-r--r--libc/sysdeps/linux/common/wait.c2
-rw-r--r--libc/sysdeps/linux/common/waitpid.c3
-rw-r--r--libc/sysdeps/linux/common/write.c1
-rw-r--r--libc/sysdeps/linux/common/xattr.c3
-rw-r--r--libc/sysdeps/linux/hppa/__syscall_error.c3
-rw-r--r--libc/sysdeps/linux/i386/__syscall_error.c3
-rw-r--r--libc/sysdeps/linux/i386/sigaction.c1
-rw-r--r--libc/sysdeps/linux/m68k/__syscall_error.c3
-rw-r--r--libc/sysdeps/linux/mips/__longjmp.c2
-rw-r--r--libc/sysdeps/linux/mips/__syscall_error.c3
-rw-r--r--libc/sysdeps/linux/mips/sigaction.c3
-rw-r--r--libc/sysdeps/linux/powerpc/__syscall_error.c3
-rw-r--r--libc/sysdeps/linux/sparc/__syscall_error.c3
-rw-r--r--libc/sysdeps/linux/x86_64/__syscall_error.c3
-rw-r--r--libc/sysdeps/linux/x86_64/sigaction.c4
-rw-r--r--libc/termios/tcdrain.c1
-rw-r--r--libc/unistd/getlogin.c1
-rw-r--r--libcrypt/des.c3
-rw-r--r--libm/w_gamma_r.c1
-rw-r--r--libpthread/linuxthreads.old/internals.h2
98 files changed, 203 insertions, 66 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c
index 241d0222a..954f68126 100644
--- a/ldso/ldso/dl-elf.c
+++ b/ldso/ldso/dl-elf.c
@@ -797,6 +797,7 @@ void _dl_parse_dynamic_info(ElfW(Dyn) *dpnt, unsigned long dynamic_info[], void
/* we want this in ldso.so and libdl.a but nowhere else */
#ifdef __USE_GNU
#if defined IS_IN_rtld || (defined IS_IN_libdl && ! defined SHARED)
+extern __typeof(dl_iterate_phdr) __dl_iterate_phdr;
int
__dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info, size_t size, void *data), void *data)
{
diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c
index b1d3d8009..c3538426b 100644
--- a/ldso/ldso/ldso.c
+++ b/ldso/ldso/ldso.c
@@ -74,7 +74,8 @@ static int _dl_suid_ok(void);
* can set an internal breakpoint on it, so that we are notified when the
* address mapping is changed in some way.
*/
-void _dl_debug_state(void)
+void _dl_debug_state(void);
+void _dl_debug_state()
{
}
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index 37b1c3abd..5c542e8ad 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -125,7 +125,8 @@ static const char *dl_error_names[] = {
"Unable to resolve symbol"
};
-void __attribute__ ((destructor)) dl_cleanup(void)
+void dl_cleanup(void) __attribute__ ((destructor));
+void dl_cleanup(void)
{
struct dyn_elf *d;
for (d = _dl_handles; d; d = d->next_handle) {
diff --git a/libc/inet/ntohl.c b/libc/inet/ntohl.c
index 4fbdf7096..87a034bf0 100644
--- a/libc/inet/ntohl.c
+++ b/libc/inet/ntohl.c
@@ -22,43 +22,48 @@
#include <endian.h>
#include <byteswap.h>
+uint32_t ntohl (uint32_t x);
+uint16_t ntohs (uint16_t x);
+uint32_t htonl (uint32_t x);
+uint16_t htons (uint16_t x);
+
#if __BYTE_ORDER == __BIG_ENDIAN
-extern uint32_t ntohl (uint32_t x)
+uint32_t ntohl (uint32_t x)
{
return x;
}
-extern uint16_t ntohs (uint16_t x)
+uint16_t ntohs (uint16_t x)
{
return x;
}
-extern uint32_t htonl (uint32_t x)
+uint32_t htonl (uint32_t x)
{
return x;
}
-extern uint16_t htons (uint16_t x)
+uint16_t htons (uint16_t x)
{
return x;
}
#elif __BYTE_ORDER == __LITTLE_ENDIAN
-extern uint32_t ntohl (uint32_t x)
+uint32_t ntohl (uint32_t x)
{
return __bswap_32(x);
}
-extern uint16_t ntohs (uint16_t x)
+uint16_t ntohs (uint16_t x)
{
return __bswap_16(x);
}
-extern uint32_t htonl (uint32_t x)
+uint32_t htonl (uint32_t x)
{
return __bswap_32(x);
}
-extern uint16_t htons (uint16_t x)
+uint16_t htons (uint16_t x)
{
return __bswap_16(x);
}
diff --git a/libc/inet/opensock.c b/libc/inet/opensock.c
index 4db86bd7b..a2c09dcf5 100644
--- a/libc/inet/opensock.c
+++ b/libc/inet/opensock.c
@@ -29,7 +29,8 @@ libc_hidden_proto(socket)
/* Return a socket of any type. The socket can be used in subsequent
ioctl calls to talk to the kernel. */
-int attribute_hidden
+int __opensock(void) attribute_hidden;
+int
__opensock (void)
{
int fd;
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index 0b479ee20..885413db8 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -600,7 +600,13 @@ int attribute_hidden __decode_answer(unsigned char *message, int offset,
#endif
#ifdef L_encodep
-int attribute_hidden __encode_packet(struct resolv_header *h,
+int __encode_packet(struct resolv_header *h,
+ struct resolv_question **q,
+ struct resolv_answer **an,
+ struct resolv_answer **ns,
+ struct resolv_answer **ar,
+ unsigned char *dest, int maxlen) attribute_hidden;
+int __encode_packet(struct resolv_header *h,
struct resolv_question **q,
struct resolv_answer **an,
struct resolv_answer **ns,
@@ -657,13 +663,15 @@ int attribute_hidden __encode_packet(struct resolv_header *h,
#endif
#ifdef L_decodep
-int attribute_hidden __decode_packet(unsigned char *data, struct resolv_header *h)
+int __decode_packet(unsigned char *data, struct resolv_header *h) attribute_hidden;
+int __decode_packet(unsigned char *data, struct resolv_header *h)
{
return __decode_header(data, h);
}
#endif
#ifdef L_formquery
+int __form_query(int id, const char *name, int type, unsigned char *packet, int maxlen);
int __form_query(int id, const char *name, int type, unsigned char *packet,
int maxlen)
{
diff --git a/libc/inet/rpc/create_xid.c b/libc/inet/rpc/create_xid.c
index 3527eef17..3b90d7a48 100644
--- a/libc/inet/rpc/create_xid.c
+++ b/libc/inet/rpc/create_xid.c
@@ -41,7 +41,8 @@ static pthread_mutex_t createxid_lock = PTHREAD_MUTEX_INITIALIZER;
static int is_initialized;
static struct drand48_data __rpc_lrand48_data;
-u_long attribute_hidden _create_xid (void)
+u_long _create_xid (void) attribute_hidden;
+u_long _create_xid (void)
{
unsigned long res;
diff --git a/libc/inet/rpc/rcmd.c b/libc/inet/rpc/rcmd.c
index 1bd511d26..6fcb01738 100644
--- a/libc/inet/rpc/rcmd.c
+++ b/libc/inet/rpc/rcmd.c
@@ -532,6 +532,7 @@ iruserok2 (raddr, superuser, ruser, luser, rhost)
}
/* This is the exported version. */
+int iruserok (u_int32_t raddr, int superuser, const char * ruser, const char * luser);
int iruserok (u_int32_t raddr, int superuser, const char * ruser, const char * luser)
{
return iruserok2 (raddr, superuser, ruser, luser, "-");
@@ -550,6 +551,8 @@ int iruserok (u_int32_t raddr, int superuser, const char * ruser, const char * l
* Returns 0 if ok, -1 if not ok.
*/
int
+__ivaliduser(FILE *hostf, u_int32_t raddr, const char *luser, const char *ruser);
+int
__ivaliduser(FILE *hostf, u_int32_t raddr, const char *luser, const char *ruser)
{
return __ivaliduser2(hostf, raddr, luser, ruser, "-");
diff --git a/libc/inet/rpc/sa_len.c b/libc/inet/rpc/sa_len.c
index 21a6417af..3b37eba44 100644
--- a/libc/inet/rpc/sa_len.c
+++ b/libc/inet/rpc/sa_len.c
@@ -31,7 +31,8 @@
#include <netrose/rose.h>
#endif
-int attribute_hidden __libc_sa_len (sa_family_t af)
+int __libc_sa_len (sa_family_t af) attribute_hidden;
+int __libc_sa_len (sa_family_t af)
{
switch (af)
{
diff --git a/libc/inet/rpc/svc_authux.c b/libc/inet/rpc/svc_authux.c
index 3afcfc5d4..ef8476784 100644
--- a/libc/inet/rpc/svc_authux.c
+++ b/libc/inet/rpc/svc_authux.c
@@ -54,7 +54,8 @@ libc_hidden_proto(xdr_authunix_parms)
/*
* Unix longhand authenticator
*/
-attribute_hidden
+enum auth_stat
+_svcauth_unix (struct svc_req *rqst, struct rpc_msg *msg) attribute_hidden;
enum auth_stat
_svcauth_unix (struct svc_req *rqst, struct rpc_msg *msg)
{
@@ -153,7 +154,8 @@ done:
* Looks up longhand in a cache.
*/
/*ARGSUSED */
-attribute_hidden
+enum auth_stat
+_svcauth_short (struct svc_req *rqst attribute_unused, struct rpc_msg *msg attribute_unused) attribute_hidden;
enum auth_stat
_svcauth_short (struct svc_req *rqst attribute_unused, struct rpc_msg *msg attribute_unused)
{
diff --git a/libc/inet/rpc/svc_simple.c b/libc/inet/rpc/svc_simple.c
index a40f2b7b4..075b930b1 100644
--- a/libc/inet/rpc/svc_simple.c
+++ b/libc/inet/rpc/svc_simple.c
@@ -90,6 +90,8 @@ static void universal (struct svc_req *rqstp, SVCXPRT *transp_s);
static SVCXPRT *transp;
#endif
+int registerrpc (u_long prognum, u_long versnum, u_long procnum,
+ char *(*progname) (char *), xdrproc_t inproc, xdrproc_t outproc);
int
registerrpc (u_long prognum, u_long versnum, u_long procnum,
char *(*progname) (char *), xdrproc_t inproc, xdrproc_t outproc)
diff --git a/libc/inet/rpc/svc_tcp.c b/libc/inet/rpc/svc_tcp.c
index 8f2863f76..c94f2de07 100644
--- a/libc/inet/rpc/svc_tcp.c
+++ b/libc/inet/rpc/svc_tcp.c
@@ -232,6 +232,8 @@ svctcp_create (int sock, u_int sendsize, u_int recvsize)
* descriptor as its first input.
*/
SVCXPRT *
+svcfd_create (int fd, u_int sendsize, u_int recvsize);
+SVCXPRT *
svcfd_create (int fd, u_int sendsize, u_int recvsize)
{
return makefd_xprt (fd, sendsize, recvsize);
diff --git a/libc/inet/rpc/svc_udp.c b/libc/inet/rpc/svc_udp.c
index 4be2782fa..53ef7ab35 100644
--- a/libc/inet/rpc/svc_udp.c
+++ b/