Other Parts Discussed in Thread: SYSBIOS
Hello,
mq_open() fails with error EINVAL ( Invalid argument )
/* First we need to set up the attribute structure */
q_attr.mq_maxmsg = LOG_QUEUE_ENTRIES; // 4
q_attr.mq_msgsize = LOG_QUEUE_MSG_SIZE; // 32
q_attr.mq_flags = 0;
q_attr.mq_curmsgs = 0;
myQueue = mq_open(LOG_QUEUE_NAME, O_RDONLY | O_CREAT, 0664, &q_attr);
if ((long)myQueue < 0)
{
System_printf("Error opening queue!\r\n");
pthread_exit(NULL);
}
Any ideas why ?
Is posix queue supported ?