* @brief Close a message queue descriptor. * * This function closes a message queue descriptor. After calling this function, the * descriptor can no longer be used to interact with the message queue. Any resources * associated with the descriptor are released. If the message queue was opened with the * `O_CLOEXEC` flag, it will be automatically closed when the calling process executes * an `
| 9387 | * @see sys_mq_open, sys_mq_unlink |
| 9388 | */ |
| 9389 | sysret_t sys_mq_close(mqd_t mqd) |
| 9390 | { |
| 9391 | int ret = 0; |
| 9392 | #ifdef ARCH_MM_MMU |
| 9393 | ret = mq_close(mqd); |
| 9394 | #else |
| 9395 | ret = mq_close(mqd); |
| 9396 | #endif |
| 9397 | return (ret < 0 ? GET_ERRNO() : ret); |
| 9398 | } |
| 9399 | |
| 9400 | #define ICACHE (1<<0) |
| 9401 | #define DCACHE (1<<1) |
nothing calls this directly
no test coverage detected