about summary refs log tree commit diff
path: root/rt/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-21 08:25:15 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-21 08:25:15 +0200
commitc6e7ec2f123bceb323836cc4558f9586959ebf58 (patch)
tree9fc6a7af72b75e9996ed0e0c90278f976737e3ab /rt/Makefile
parenta749a00fb55e7ee7ede658ef12de4c7de1570b99 (diff)
downloadglibc-c6e7ec2f123bceb323836cc4558f9586959ebf58.tar.gz
glibc-c6e7ec2f123bceb323836cc4558f9586959ebf58.tar.xz
glibc-c6e7ec2f123bceb323836cc4558f9586959ebf58.zip
rt: Move shm_open into libc
This function has no dependency on libpthread, so the move is also
applied to Hurd.

To avoid localplt failures, use __open64_nocancel instead of
pthread_setcancelstate and open.

The symbol was moved using scripts/move-symbol-to-libc.py.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'rt/Makefile')
-rw-r--r--rt/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/rt/Makefile b/rt/Makefile
index 47bc594dee..ba141c82f2 100644
--- a/rt/Makefile
+++ b/rt/Makefile
@@ -24,6 +24,9 @@ include ../Makeconfig
 
 headers	:= aio.h mqueue.h bits/mqueue.h bits/mqueue2.h
 
+routines = \
+  shm_open \
+
 librt-routines = \
   aio_cancel \
   aio_error \
@@ -49,7 +52,6 @@ librt-routines = \
   mq_timedreceive \
   mq_timedsend \
   mq_unlink \
-  shm_open \
   shm_unlink \
   timer_create \
   timer_delete \