diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-03-01 08:06:09 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-03-01 08:06:09 +0000 |
commit | c6524368869a75e3b763eea109b83a55015878b3 (patch) | |
tree | 23dbc214a556ebe5bbbfffebe7f195e1e4c3b423 /lib | |
parent | ba86c198c3e4129bf9862de4872af7713eff23c2 (diff) | |
download | FreeBSD-src-c6524368869a75e3b763eea109b83a55015878b3.zip FreeBSD-src-c6524368869a75e3b763eea109b83a55015878b3.tar.gz |
Add missing parameter mq_attr * for mq_open.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/librt/mq.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/librt/mq.c b/lib/librt/mq.c index 507ff68..0edfe62 100644 --- a/lib/librt/mq.c +++ b/lib/librt/mq.c @@ -42,7 +42,8 @@ #include "un-namespace.h" extern int __sys_kmq_notify(int, const struct sigevent *); -extern int __sys_kmq_open(const char *, int, mode_t); +extern int __sys_kmq_open(const char *, int, mode_t, + const struct mq_attr *); extern int __sys_kmq_setattr(int, const struct mq_attr *__restrict, struct mq_attr *__restrict); extern ssize_t __sys_kmq_timedreceive(int, char *__restrict, size_t, @@ -79,7 +80,8 @@ __weak_reference(__mq_receive, mq_receive); __weak_reference(__mq_receive, _mq_receive); mqd_t -__mq_open(const char *name, int oflag, mode_t mode) +__mq_open(const char *name, int oflag, mode_t mode, + const struct mq_attr *attr) { struct __mq *mq; int err; @@ -88,7 +90,7 @@ __mq_open(const char *name, int oflag, mode_t mode) if (mq == NULL) return (NULL); - mq->oshandle = __sys_kmq_open(name, oflag, mode); + mq->oshandle = __sys_kmq_open(name, oflag, mode, attr); if (mq->oshandle != -1) { mq->node = NULL; return (mq); |