2 * mq_unlink.c - remove a message queue.
6 #include <sys/syscall.h>
12 #define __NR___syscall_mq_unlink __NR_mq_unlink
13 static __inline__
_syscall1(int, __syscall_mq_unlink
, const char *, name
);
15 /* Remove message queue */
16 int mq_unlink(const char *name
)
25 ret
= __syscall_mq_unlink(name
+ 1);
27 /* While unlink can return either EPERM or EACCES, mq_unlink should return just EACCES. */