#include <mqueue.h>
#include <fcntl.h>
-#include <errno.h>
#include <stdarg.h>
#include "syscall.h"
{
mode_t mode = 0;
struct mq_attr *attr = 0;
- if (*name++ != '/') {
- errno = EINVAL;
- return -1;
- }
+ if (*name == '/') name++;
if (flags & O_CREAT) {
va_list ap;
va_start(ap, flags);