* @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
| 388 | * If an error occurs during the close operation, errno is set to indicate the error, and the function returns -1. |
| 389 | */ |
| 390 | int mq_close(mqd_t id) |
| 391 | { |
| 392 | return close(id); |
| 393 | } |
| 394 | RTM_EXPORT(mq_close); |
| 395 | |
| 396 | /** |
no test coverage detected