Selaa lähdekoodia

NPTL: rename __new_sem_* to sem_*

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger 13 vuotta sitten
vanhempi
commit
f0a3d118ea

+ 1 - 2
libpthread/nptl/sem_destroy.c

@@ -22,7 +22,7 @@
 
 
 int
-__new_sem_destroy (
+sem_destroy (
      sem_t *sem)
 {
   /* XXX Check for valid parameter.  */
@@ -30,4 +30,3 @@ __new_sem_destroy (
   /* Nothing to do.  */
   return 0;
 }
-weak_alias(__new_sem_destroy, sem_destroy)

+ 1 - 2
libpthread/nptl/sem_getvalue.c

@@ -22,7 +22,7 @@
 
 
 int
-__new_sem_getvalue (
+sem_getvalue (
      sem_t *sem,
      int *sval)
 {
@@ -34,4 +34,3 @@ __new_sem_getvalue (
 
   return 0;
 }
-weak_alias(__new_sem_getvalue, sem_getvalue)

+ 1 - 2
libpthread/nptl/sem_init.c

@@ -25,7 +25,7 @@
 
 
 int
-__new_sem_init (
+sem_init (
      sem_t *sem,
      int pshared,
      unsigned int value)
@@ -53,4 +53,3 @@ __new_sem_init (
 
   return 0;
 }
-weak_alias(__new_sem_init, sem_init)

+ 0 - 11
libpthread/nptl/semaphoreP.h

@@ -56,14 +56,3 @@ extern void __where_is_shmfs (void) attribute_hidden;
 
 /* Comparison function for search in tree with existing mappings.  */
 extern int __sem_search (const void *a, const void *b) attribute_hidden;
-
-
-/* Prototypes of functions with multiple interfaces.  */
-extern int __new_sem_init (sem_t *sem, int pshared, unsigned int value);
-extern int __old_sem_init (sem_t *sem, int pshared, unsigned int value);
-extern int __new_sem_destroy (sem_t *sem);
-extern int __new_sem_post (sem_t *sem);
-extern int __new_sem_wait (sem_t *sem);
-extern int __old_sem_wait (sem_t *sem);
-extern int __new_sem_trywait (sem_t *sem);
-extern int __new_sem_getvalue (sem_t *sem, int *sval);

+ 4 - 6
libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S

@@ -25,10 +25,10 @@
 
 	.text
 
-	.globl	__new_sem_post
-	.type	__new_sem_post,@function
+	.globl	sem_post
+	.type	sem_post,@function
 	.align	16
-__new_sem_post:
+sem_post:
 	cfi_startproc
 	pushl	%ebx
 	cfi_adjust_cfa_offset(4)
@@ -126,9 +126,7 @@ __new_sem_post:
 	cfi_restore(%ebx)
 	ret
 	cfi_endproc
-	.size	__new_sem_post,.-__new_sem_post
-weak_alias(__new_sem_post, sem_post)
-
+	.size	sem_post,.-sem_post
 
 #ifdef __PIC__
 	.section .gnu.linkonce.t.__x86.get_pc_thunk.bx,"ax",@progbits

+ 4 - 6
libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S

@@ -23,10 +23,10 @@
 
 	.text
 
-	.globl	__new_sem_trywait
-	.type	__new_sem_trywait,@function
+	.globl	sem_trywait
+	.type	sem_trywait,@function
 	.align	16
-__new_sem_trywait:
+sem_trywait:
 	movl	4(%esp), %ecx
 
 	movl	(%ecx), %eax
@@ -63,9 +63,7 @@ __new_sem_trywait:
 #endif
 	orl	$-1, %eax
 	ret
-	.size	__new_sem_trywait,.-__new_sem_trywait
-weak_alias(__new_sem_trywait, sem_trywait)
-
+	.size	sem_trywait,.-sem_trywait
 
 #ifdef __PIC__
 	.section .gnu.linkonce.t.__x86.get_pc_thunk.cx,"ax",@progbits

+ 4 - 5
libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S

@@ -29,10 +29,10 @@
 
 	.text
 
-	.globl	__new_sem_wait
-	.type	__new_sem_wait,@function
+	.globl	sem_wait
+	.type	sem_wait,@function
 	.align	16
-__new_sem_wait:
+sem_wait:
 .LSTARTCODE:
 	pushl	%ebx
 .Lpush_ebx:
@@ -129,8 +129,7 @@ __new_sem_wait:
 	orl	$-1, %eax
 
 	jmp	9b
-	.size	__new_sem_wait,.-__new_sem_wait
-weak_alias(__new_sem_wait, sem_wait)
+	.size	sem_wait,.-sem_wait
 
 
 	.type	sem_wait_cleanup,@function

+ 1 - 2
libpthread/nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c

@@ -25,7 +25,7 @@
 #include <semaphore.h>
 
 int
-__new_sem_post (sem_t *sem)
+sem_post (sem_t *sem)
 {
   struct new_sem *isem = (struct new_sem *) sem;
 
@@ -44,4 +44,3 @@ __new_sem_post (sem_t *sem)
     }
   return 0;
 }
-weak_alias(__new_sem_post, sem_post)

+ 1 - 2
libpthread/nptl/sysdeps/unix/sysv/linux/sem_post.c

@@ -26,7 +26,7 @@
 #include <tls.h>
 
 int
-__new_sem_post (sem_t *sem)
+sem_post (sem_t *sem)
 {
   struct new_sem *isem = (struct new_sem *) sem;
 
@@ -55,4 +55,3 @@ __new_sem_post (sem_t *sem)
     }
   return 0;
 }
-weak_alias(__new_sem_post, sem_post)

+ 1 - 2
libpthread/nptl/sysdeps/unix/sysv/linux/sem_trywait.c

@@ -26,7 +26,7 @@
 
 
 int
-__new_sem_trywait (sem_t *sem)
+sem_trywait (sem_t *sem)
 {
   int *futex = (int *) sem;
   int val;
@@ -41,4 +41,3 @@ __new_sem_trywait (sem_t *sem)
   __set_errno (EAGAIN);
   return -1;
 }
-weak_alias(__new_sem_trywait, sem_trywait)

+ 1 - 2
libpthread/nptl/sysdeps/unix/sysv/linux/sem_wait.c

@@ -38,7 +38,7 @@ __sem_wait_cleanup (void *arg)
 
 
 int
-__new_sem_wait (sem_t *sem)
+sem_wait (sem_t *sem)
 {
   struct new_sem *isem = (struct new_sem *) sem;
   int err;
@@ -81,4 +81,3 @@ __new_sem_wait (sem_t *sem)
 
   return err;
 }
-weak_alias(__new_sem_wait, sem_wait)

+ 4 - 5
libpthread/nptl/sysdeps/unix/sysv/linux/sh/sem_post.S

@@ -25,10 +25,10 @@
 
 	.text
 
-	.globl	__new_sem_post
-	.type	__new_sem_post,@function
+	.globl	sem_post
+	.type	sem_post,@function
 	.align	5
-__new_sem_post:
+sem_post:
 	mov.l	@(VALUE,r4), r2
 0:
 	mov.l	.Lmax, r1
@@ -106,5 +106,4 @@ __new_sem_post:
 .Lerrloc3:
 	.long	__errno_location@PLT-(.Lerrloc3b-.)
 #endif
-	.size	__new_sem_post,.-__new_sem_post
-	weak_alias(__new_sem_post, sem_post)
+	.size	sem_post,.-sem_post

+ 4 - 5
libpthread/nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S

@@ -24,10 +24,10 @@
 
 	.text
 
-	.globl	__new_sem_trywait
-	.type	__new_sem_trywait,@function
+	.globl	sem_trywait
+	.type	sem_trywait,@function
 	.align	5
-__new_sem_trywait:
+sem_trywait:
 	mov.l	r12, @-r15
 	mov.l	r8, @-r15
 	sts.l	pr, @-r15
@@ -86,5 +86,4 @@ __new_sem_trywait:
 .Lerrloc1:
 	.long	__errno_location@PLT-(.Lerrloc1b-.)
 #endif
-	.size	__new_sem_trywait,.-__new_sem_trywait
-	weak_alias(__new_sem_trywait, sem_trywait)
+	.size	sem_trywait,.-sem_trywait

+ 4 - 5
libpthread/nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S

@@ -30,10 +30,10 @@
 
 	.text
 
-	.globl	__new_sem_wait
-	.type	__new_sem_wait,@function
+	.globl	sem_wait
+	.type	sem_wait,@function
 	.align	5
-__new_sem_wait:
+sem_wait:
 .LSTARTCODE:
 	mov.l	r8, @-r15
 .Lpush_r8:
@@ -161,8 +161,7 @@ __new_sem_wait:
 	.long	__pthread_enable_asynccancel-.Lenable0b
 .Ldisable0:
 	.long	__pthread_disable_asynccancel-.Ldisable0b
-	.size	__new_sem_wait,.-__new_sem_wait
-	weak_alias(__new_sem_wait, sem_wait)
+	.size	sem_wait,.-sem_wait
 
 
 	.type	sem_wait_cleanup,@function

+ 1 - 3
libpthread/nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c

@@ -26,7 +26,7 @@
 
 
 int
-__new_sem_init (sem, pshared, value)
+sem_init (sem, pshared, value)
      sem_t *sem;
      int pshared;
      unsigned int value;
@@ -53,5 +53,3 @@ __new_sem_init (sem, pshared, value)
 
   return 0;
 }
-weak_alias(__new_sem_init, sem_init)
-

+ 1 - 3
libpthread/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c

@@ -25,7 +25,7 @@
 #include <semaphore.h>
 
 int
-__new_sem_post (sem_t *sem)
+sem_post (sem_t *sem)
 {
   struct sparc_new_sem *isem = (struct sparc_new_sem *) sem;
   int nr;
@@ -51,5 +51,3 @@ __new_sem_post (sem_t *sem)
     }
   return 0;
 }
-weak_alias(__new_sem_post, sem_post)
-

+ 1 - 3
libpthread/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c

@@ -26,7 +26,7 @@
 
 
 int
-__new_sem_trywait (sem_t *sem)
+sem_trywait (sem_t *sem)
 {
   struct sparc_old_sem *isem = (struct sparc_old_sem *) sem;
   int val;
@@ -50,5 +50,3 @@ __new_sem_trywait (sem_t *sem)
   __set_errno (EAGAIN);
   return -1;
 }
-weak_alias(__new_sem_trywait, sem_trywait)
-

+ 1 - 3
libpthread/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c

@@ -45,7 +45,7 @@ __sem_wait_cleanup (void *arg)
 
 
 int
-__new_sem_wait (sem_t *sem)
+sem_wait (sem_t *sem)
 {
   struct sparc_new_sem *isem = (struct sparc_new_sem *) sem;
   int err;
@@ -123,5 +123,3 @@ __new_sem_wait (sem_t *sem)
 
   return err;
 }
-weak_alias(__new_sem_wait, sem_wait)
-