MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / mq_close

Function mq_close

components/libc/posix/ipc/mqueue.c:390–393  ·  view source on GitHub ↗

* @brief Closes a message queue descriptor. * @param id Message queue descriptor to be closed. * @return Upon successful completion, returns 0; * otherwise, returns -1 and sets errno to indicate the error. * * @note This function closes the message queue descriptor specified by id. * It delegates the closing operation to the close() function, which closes the file d

Source from the content-addressed store, hash-verified

388 * If an error occurs during the close operation, errno is set to indicate the error, and the function returns -1.
389 */
390int mq_close(mqd_t id)
391{
392 return close(id);
393}
394RTM_EXPORT(mq_close);
395
396/**

Callers 2

sys_mq_closeFunction · 0.85
libc_mqFunction · 0.85

Calls 1

closeFunction · 0.50

Tested by

no test coverage detected