summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-29 04:39:12 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-29 04:39:12 +0000
commit91334307930f5cfb1bf5dc835de6ff5cc24d0ede (patch)
tree28b9c8a955f0b234ebc8e0652b8512b268515054
parent0b01e4471fab3d6dcb26e514d1ce83db055d0b70 (diff)
downloaduClibc-alpine-91334307930f5cfb1bf5dc835de6ff5cc24d0ede.tar.bz2
uClibc-alpine-91334307930f5cfb1bf5dc835de6ff5cc24d0ede.tar.xz
hide some functions to cut down on relocations
-rw-r--r--librt/mq_getsetattr.c6
-rw-r--r--librt/mq_receive.c6
-rw-r--r--librt/mq_send.c6
3 files changed, 12 insertions, 6 deletions
diff --git a/librt/mq_getsetattr.c b/librt/mq_getsetattr.c
index 4ffda26ca..d412beebb 100644
--- a/librt/mq_getsetattr.c
+++ b/librt/mq_getsetattr.c
@@ -18,16 +18,18 @@ static inline _syscall3(int, __syscall_mq_getsetattr, int, mqdes,
* Set attributes associated with message queue (and possibly also get
* its old attributes)
*/
-int mq_setattr(mqd_t mqdes, const struct mq_attr *mqstat,
+attribute_hidden
+int __mq_setattr(mqd_t mqdes, const struct mq_attr *mqstat,
struct mq_attr *omqstat)
{
return __syscall_mq_getsetattr(mqdes, mqstat, omqstat);
}
+strong_alias(__mq_setattr,mq_setattr)
/* Query status and attributes of message queue */
int mq_getattr(mqd_t mqdes, struct mq_attr *mqstat)
{
- return mq_setattr(mqdes, NULL, mqstat);
+ return __mq_setattr(mqdes, NULL, mqstat);
}
#endif
diff --git a/librt/mq_receive.c b/librt/mq_receive.c
index 8726bbe64..25e3bd25b 100644
--- a/librt/mq_receive.c
+++ b/librt/mq_receive.c
@@ -19,7 +19,8 @@ static inline _syscall5(int, __syscall_mq_timedreceive, int, mqdes,
* Receive the oldest from highest priority messages.
* Stop waiting if abs_timeout expires.
*/
-ssize_t mq_timedreceive(mqd_t mqdes, char *msg_ptr, size_t msg_len,
+attribute_hidden
+ssize_t __mq_timedreceive(mqd_t mqdes, char *msg_ptr, size_t msg_len,
unsigned int *msg_prio,
const struct timespec *abs_timeout)
{
@@ -30,10 +31,11 @@ ssize_t mq_timedreceive(mqd_t mqdes, char *msg_ptr, size_t msg_len,
return -1;
#endif
}
+strong_alias(__mq_timedreceive,mq_timedreceive)
/* Receive the oldest from highest priority messages */
ssize_t mq_receive(mqd_t mqdes, char *msg_ptr, size_t msg_len,
unsigned int *msg_prio)
{
- return mq_timedreceive(mqdes, msg_ptr, msg_len, msg_prio, NULL);
+ return __mq_timedreceive(mqdes, msg_ptr, msg_len, msg_prio, NULL);
}
diff --git a/librt/mq_send.c b/librt/mq_send.c
index 218157b27..642575915 100644
--- a/librt/mq_send.c
+++ b/librt/mq_send.c
@@ -19,7 +19,8 @@ static inline _syscall5(int, __syscall_mq_timedsend, int, mqdes,
* Add a message to queue. If O_NONBLOCK is set and queue is full, wait
* for sufficient room in the queue until abs_timeout expires.
*/
-int mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
+attribute_hidden
+int __mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
unsigned int msg_prio,
const struct timespec *abs_timeout)
{
@@ -30,10 +31,11 @@ int mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
return -1;
#endif
}
+strong_alias(__mq_timedsend,mq_timedsend)
/* Add a message to queue */
int mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
unsigned int msg_prio)
{
- return mq_timedsend(mqdes, msg_ptr, msg_len, msg_prio, NULL);
+ return __mq_timedsend(mqdes, msg_ptr, msg_len, msg_prio, NULL);
}