[v2,07/14] nptl: Remove msgsnd from pthread-compat-wrappers

Message ID 20210319202914.2475530-8-adhemerval.zanella@linaro.org
State Committed
Commit 8562794d116af49650f22d763128e47cd9b21db9
Headers
Series libpthread removal: pthread-compat-wrappers and other libc symbols |

Commit Message

Adhemerval Zanella Netto March 19, 2021, 8:29 p.m. UTC
  The symbol is not exported by libpthread.
---
 nptl/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
  

Comments

Florian Weimer March 25, 2021, 2:33 p.m. UTC | #1
* Adhemerval Zanella via Libc-alpha:

> The symbol is not exported by libpthread.
> ---
>  nptl/Makefile | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/nptl/Makefile b/nptl/Makefile
> index c5ad85507d..c159af8a33 100644
> --- a/nptl/Makefile
> +++ b/nptl/Makefile
> @@ -81,7 +81,7 @@ static-only-routines = pthread_atfork
>  # We need to provide certain routines for compatibility with existing
>  # binaries.
>  pthread-compat-wrappers = \
> -		      msgrcv msgsnd \
> +		      msgrcv \
>  		      sigsuspend \
>  
>  libpthread-routines = \
> @@ -281,7 +281,6 @@ CFLAGS-sem_clockwait.c = -fexceptions -fasynchronous-unwind-tables
>  CFLAGS-lockf.c += -fexceptions
>  CFLAGS-sigwait.c += -fexceptions -fasynchronous-unwind-tables
>  CFLAGS-msgrcv.c += -fexceptions -fasynchronous-unwind-tables
> -CFLAGS-msgsnd.c += -fexceptions -fasynchronous-unwind-tables
>  CFLAGS-sigsuspend.c += -fexceptions -fasynchronous-unwind-tables
>  CFLAGS-fdatasync.c += -fexceptions -fasynchronous-unwind-tables

Looks good.
  

Patch

diff --git a/nptl/Makefile b/nptl/Makefile
index c5ad85507d..c159af8a33 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -81,7 +81,7 @@  static-only-routines = pthread_atfork
 # We need to provide certain routines for compatibility with existing
 # binaries.
 pthread-compat-wrappers = \
-		      msgrcv msgsnd \
+		      msgrcv \
 		      sigsuspend \
 
 libpthread-routines = \
@@ -281,7 +281,6 @@  CFLAGS-sem_clockwait.c = -fexceptions -fasynchronous-unwind-tables
 CFLAGS-lockf.c += -fexceptions
 CFLAGS-sigwait.c += -fexceptions -fasynchronous-unwind-tables
 CFLAGS-msgrcv.c += -fexceptions -fasynchronous-unwind-tables
-CFLAGS-msgsnd.c += -fexceptions -fasynchronous-unwind-tables
 CFLAGS-sigsuspend.c += -fexceptions -fasynchronous-unwind-tables
 CFLAGS-fdatasync.c += -fexceptions -fasynchronous-unwind-tables