[git commit master 1/1] add missing prototypes
Peter S. Mazinger
ps.m at gmx.net
Thu Mar 3 17:22:53 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=1fc68eae4846de4a1e276e68aee743ef731f3e91
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
Add some missing prototypes
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
include/alloca.h | 2 ++
libc/misc/pthread/tsd.c | 1 +
libpthread/nptl/sysdeps/generic/dl-tls.c | 2 ++
libpthread/nptl/sysdeps/generic/libc-tls.c | 1 +
.../nptl/sysdeps/unix/sysv/linux/jmp-unwind.c | 1 +
5 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/include/alloca.h b/include/alloca.h
index 2565b48..4790b30 100644
--- a/include/alloca.h
+++ b/include/alloca.h
@@ -67,6 +67,8 @@ extern void *alloca (size_t __size) __THROW;
# define extend_alloca(buf, len, newlen) \
alloca (((len) = (newlen)))
# endif
+
+extern int __libc_alloca_cutoff (size_t size);
#endif
__END_DECLS
diff --git a/libc/misc/pthread/tsd.c b/libc/misc/pthread/tsd.c
index 835ee22..0c222e8 100644
--- a/libc/misc/pthread/tsd.c
+++ b/libc/misc/pthread/tsd.c
@@ -2,6 +2,7 @@
We define it here instead of in libpthread so t here instead of in libpthread so that it doesn't
need to have a TLS segment of its own just for this one pointer. */
+void **__libc_dl_error_tsd(void) __attribute__ ((const));
void ** __attribute__ ((const))
__libc_dl_error_tsd (void)
{
diff --git a/libpthread/nptl/sysdeps/generic/dl-tls.c b/libpthread/nptl/sysdeps/generic/dl-tls.c
index 4acfa4b..904da8b 100644
--- a/libpthread/nptl/sysdeps/generic/dl-tls.c
+++ b/libpthread/nptl/sysdeps/generic/dl-tls.c
@@ -66,6 +66,7 @@ oom (void)
# endif
+void *_dl_memalign(size_t alignment, size_t bytes);
void *_dl_memalign(size_t alignment, size_t bytes)
{
return _dl_malloc(bytes);
@@ -836,6 +837,7 @@ __tls_get_addr (GET_ADDR_ARGS)
+void _dl_add_to_slotinfo (struct link_map *l);
void
_dl_add_to_slotinfo (struct link_map *l)
{
diff --git a/libpthread/nptl/sysdeps/generic/libc-tls.c b/libpthread/nptl/sysdeps/generic/libc-tls.c
index b78d964..c45e761 100644
--- a/libpthread/nptl/sysdeps/generic/libc-tls.c
+++ b/libpthread/nptl/sysdeps/generic/libc-tls.c
@@ -110,6 +110,7 @@ init_static_tls (size_t memsz, size_t align)
GL(dl_tls_static_nelem) = GL(dl_tls_max_dtv_idx);
}
+void __libc_setup_tls (size_t tcbsize, size_t tcbalign);
void
__libc_setup_tls (size_t tcbsize, size_t tcbalign)
{
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c b/libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c
index f279551..642198b 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c
@@ -25,6 +25,7 @@ extern void __pthread_cleanup_upto (__jmp_buf env, char *targetframe);
#pragma weak __pthread_cleanup_upto
+void _longjmp_unwind (jmp_buf env, int val);
void
_longjmp_unwind (jmp_buf env, int val)
{
--
1.7.3.4
More information about the uClibc-cvs
mailing list