summaryrefslogtreecommitdiff
path: root/lib/librt
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2016-10-02 17:02:59 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2016-10-02 17:02:59 +0000
commitddce1c3ddbfb773c2ee1343721f4e5bbe07186d0 (patch)
treec2ba7e9b032c44fe1ae58dfa5a602ba4debb8890 /lib/librt
parenta7d1d4161757d358a67d40a08f4c4b283db1f313 (diff)
downloadsrc-test-ddce1c3ddbfb773c2ee1343721f4e5bbe07186d0.tar.gz
src-test-ddce1c3ddbfb773c2ee1343721f4e5bbe07186d0.zip
Export the mq_getfd_np() symbol from librt.so, which allows to get
file descriptor for the given posix mqueue. Export the timer_oshandle_np() symbol to get ktimer id for the given posix timer. Requested by: Lewis Donzis <lew@perftech.com> Reviewed by: jilles Discussed with: kan Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=306588
Diffstat (limited to 'lib/librt')
-rw-r--r--lib/librt/Symbol.map5
-rw-r--r--lib/librt/mq.c3
-rw-r--r--lib/librt/timer.c3
3 files changed, 9 insertions, 2 deletions
diff --git a/lib/librt/Symbol.map b/lib/librt/Symbol.map
index 161bb766cc477..fef3c1557941c 100644
--- a/lib/librt/Symbol.map
+++ b/lib/librt/Symbol.map
@@ -25,6 +25,11 @@ FBSD_1.0 {
timer_getoverrun;
};
+FBSD_1.5 {
+ mq_getfd_np;
+ timer_oshandle_np;
+};
+
FBSDprivate_1.0 {
_aio_read;
_aio_write;
diff --git a/lib/librt/mq.c b/lib/librt/mq.c
index 750e969fad423..513fa72c14fb3 100644
--- a/lib/librt/mq.c
+++ b/lib/librt/mq.c
@@ -272,8 +272,9 @@ __mq_unlink(const char *path)
return __sys_kmq_unlink(path);
}
+#pragma weak mq_getfd_np
int
-__mq_oshandle(mqd_t mqd)
+mq_getfd_np(mqd_t mqd)
{
return (mqd->oshandle);
diff --git a/lib/librt/timer.c b/lib/librt/timer.c
index 90269c265dae2..b5f775c797924 100644
--- a/lib/librt/timer.c
+++ b/lib/librt/timer.c
@@ -175,8 +175,9 @@ __timer_settime(timer_t timerid, int flags,
flags, value, ovalue);
}
+#pragma weak timer_oshandle_np
int
-__timer_oshandle(timer_t timerid)
+timer_oshandle_np(timer_t timerid)
{
return (timerid->oshandle);