Browse Source

allocrtsig.c,pthread.c: disable __libc_allocate_rtsig, unused

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger 14 years ago
parent
commit
1f3ca8e086

+ 2 - 0
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

+ 2 - 0
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:

+ 2 - 0
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