about summary refs log tree commit diff
path: root/rt
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-25 10:42:52 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-25 12:20:47 +0200
commit2da5f22fff639e891b9f516724683d9d7ad1511c (patch)
tree89ef1ccd5f2d6d3363704cd03a797f94a9ba9da3 /rt
parentf66d9abca7ecc4ee4c7afcc1d1496411bfc70911 (diff)
downloadglibc-2da5f22fff639e891b9f516724683d9d7ad1511c.tar.gz
glibc-2da5f22fff639e891b9f516724683d9d7ad1511c.tar.xz
glibc-2da5f22fff639e891b9f516724683d9d7ad1511c.zip
Linux: Move mq_notify from librt to libc
The symbol was moved using scripts/move-symbol-to-libc.py.

An explicit call from fork into the mq_notify implementation replaces
the previous use of pthread_atfork.

Reviewed-by: Adhemerva Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'rt')
-rw-r--r--rt/Makefile2
-rw-r--r--rt/Versions4
2 files changed, 4 insertions, 2 deletions
diff --git a/rt/Makefile b/rt/Makefile
index f753a9aa7a..e86a3107ee 100644
--- a/rt/Makefile
+++ b/rt/Makefile
@@ -30,7 +30,6 @@ routines = \
 
 librt-routines = \
   librt-compat \
-  mq_notify \
   mq_open \
   mq_receive \
   mq_send \
@@ -62,6 +61,7 @@ $(librt-routines-var) += \
   lio_listio64 \
   mq_close \
   mq_getattr \
+  mq_notify \
   mq_setattr \
 
 tests := tst-shm tst-timer tst-timer2 \
diff --git a/rt/Versions b/rt/Versions
index 38f23c16ef..b3c9bba9ff 100644
--- a/rt/Versions
+++ b/rt/Versions
@@ -28,6 +28,7 @@ libc {
 %if PTHREAD_IN_LIBC
     mq_close;
     mq_getattr;
+    mq_notify;
     mq_setattr;
 %endif
   }
@@ -58,6 +59,7 @@ libc {
     lio_listio64;
     mq_close;
     mq_getattr;
+    mq_notify;
     mq_setattr;
 %endif
     shm_open;
@@ -112,9 +114,9 @@ librt {
 %if !PTHREAD_IN_LIBC
     mq_close;
     mq_getattr;
+    mq_notify;
     mq_setattr;
 %endif
-    mq_notify;
     mq_open;
     mq_receive;
     mq_send;