Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

posix: implement mq_timedsend() #66971

Closed
Tracked by #51211
ycsin opened this issue Dec 24, 2023 · 2 comments · Fixed by #68176
Closed
Tracked by #51211

posix: implement mq_timedsend() #66971

ycsin opened this issue Dec 24, 2023 · 2 comments · Fixed by #68176
Assignees
Labels
area: POSIX POSIX API Library Enhancement Changes/Updates/Additions to existing features Good first issue Good for a first time contributor to take

Comments

@ycsin
Copy link
Member

ycsin commented Dec 24, 2023

This is part of the See POSIX Roadmap for LTSv3 (RFC #51211).

mq_timedsend() is required as part of _POSIX_TIMEOUTS Option Group.

For more information, please refer to https://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_timedsend.html

@ycsin ycsin added Feature Request A request for a new feature Good first issue Good for a first time contributor to take area: POSIX POSIX API Library labels Dec 24, 2023
@nashif nashif added Enhancement Changes/Updates/Additions to existing features and removed Feature Request A request for a new feature labels Jan 19, 2024
@awojasinski
Copy link
Collaborator

It is implemented

zephyr/lib/posix/mqueue.c

Lines 254 to 261 in e78aacd

int mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
unsigned int msg_prio, const struct timespec *abstime)
{
mqueue_desc *mqd = (mqueue_desc *)mqdes;
int32_t timeout = (int32_t) timespec_to_timeoutms(abstime);
return send_message(mqd, msg_ptr, msg_len, K_MSEC(timeout));
}

@cfriedt
Copy link
Member

cfriedt commented Jan 26, 2024

I think it's just not marked as implemented in the docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: POSIX POSIX API Library Enhancement Changes/Updates/Additions to existing features Good first issue Good for a first time contributor to take
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants