/* This function will remove a message queue (REALTIME).  */
int mq_unlink(const char *name)
/* This function will remove a message queue (REALTIME).  */
int mq_unlink(const char *name)
{
    if(*name == '/')
    {
        name++;
    }
    const char *mq_path = "/dev/mqueue/";
    char mq_name[RT_NAME_MAX + 12] = {0};
    rt_sprintf(mq_name, "%s%s", mq_path, name);
    return unlink(mq_name);
}