blob: 1bb92af1fa6f66cc0620877b3a654c5f111186a3 (
plain) (
tree)
|
|
#include <mqueue.h>
#include <errno.h>
#include "syscall.h"
int mq_unlink(const char *name)
{
int ret;
if (*name++ != '/') {
errno = EINVAL;
return -1;
}
ret = __syscall(SYS_mq_unlink, name);
if (ret < 0) {
if (ret == -EPERM) ret = -EACCES;
errno = -ret;
return -1;
}
return ret;
}
|