[git commit future 1/1] allocrtsig.c, pthread.c: disable __libc_allocate_rtsig, unused

Peter S. Mazinger ps.m at gmx.net
Wed Mar 16 19:20:32 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=aaff0a6bfbc7c6ceda03f606b299180c81cf4d26
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 libc/signal/allocrtsig.c                           |    2 ++
 libpthread/linuxthreads.old/pthread.c              |    2 ++
 .../sysdeps/unix/sysv/linux/allocrtsig.c           |    2 ++
 3 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/libc/signal/allocrtsig.c b/libc/signal/allocrtsig.c
index 40b5ea2..05f3d6c 100644
--- a/libc/signal/allocrtsig.c
+++ b/libc/signal/allocrtsig.c
@@ -59,6 +59,7 @@ int __libc_current_sigrtmax (void)
   return current_rtmax;
 }
 
+#if 0
 /* Allocate real-time signal with highest/lowest available
    priority.  Please note that we don't use a lock since we assume
    this function to be called at program start.  */
@@ -71,3 +72,4 @@ int __libc_allocate_rtsig (int high)
 
   return high ? current_rtmin++ : current_rtmax--;
 }
+#endif
diff --git a/libpthread/linuxthreads.old/pthread.c b/libpthread/linuxthreads.old/pthread.c
index 8484753..652a389 100644
--- a/libpthread/linuxthreads.old/pthread.c
+++ b/libpthread/linuxthreads.old/pthread.c
@@ -256,6 +256,7 @@ int __libc_current_sigrtmax (void)
     return current_rtmax;
 }
 
+#if 0
 /* Allocate real-time signal with highest/lowest available
    priority.  Please note that we don't use a lock since we assume
    this function to be called at program start.  */
@@ -268,6 +269,7 @@ int __libc_allocate_rtsig (int high)
     return high ? current_rtmin++ : current_rtmax--;
 }
 #endif
+#endif
 
 /* Initialize the pthread library.
    Initialization is split in two functions:
diff --git a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/allocrtsig.c b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/allocrtsig.c
index b9ada64..0716a44 100644
--- a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/allocrtsig.c
+++ b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/allocrtsig.c
@@ -70,6 +70,7 @@ __libc_current_sigrtmax (void)
 strong_alias (__libc_current_sigrtmax, __libc_current_sigrtmax_private)
 libc_hidden_def (__libc_current_sigrtmax)
 
+#if 0
 /* Allocate real-time signal with highest/lowest available
    priority.  Please note that we don't use a lock since we assume
    this function to be called at program start.  */
@@ -85,3 +86,4 @@ __libc_allocate_rtsig (int high)
   return high ? current_rtmin++ : current_rtmax--;
 }
 strong_alias (__libc_allocate_rtsig, __libc_allocate_rtsig_private)
+#endif
-- 
1.7.3.4



More information about the uClibc-cvs mailing list