!61 mq_getattr & setattr interface add

Merge pull request !61 from give-me-five/master
This commit is contained in:
openharmony_ci 2021-04-08 14:28:37 +08:00 committed by Gitee
commit 2c17c08c03
1 changed files with 10 additions and 0 deletions

View File

@ -428,6 +428,16 @@ int mq_getsetattr(mqd_t mqd, const struct mq_attr *new, struct mq_attr *old)
return OsMqSetAttr(mqd, new, old); return OsMqSetAttr(mqd, new, old);
} }
int mq_getattr(mqd_t mqd, struct mq_attr *attr)
{
return mq_getsetattr(mqd, 0, attr);
}
int mq_setattr(mqd_t mqd, const struct mq_attr *new, struct mq_attr *old)
{
return mq_getsetattr(mqd, new, old);
}
int mq_unlink(const char *mqName) int mq_unlink(const char *mqName)
{ {
INT32 ret = 0; INT32 ret = 0;