Sanchayan Maity
63062e7e15
Implement message queues support for Minix. Pending tasks: Blocking or non blocking for send receive? Sort by priority and time? Test codes? Bug fixes?
29 lines
662 B
C
29 lines
662 B
C
|
|
/* The kernel call implemented in this file:
|
|
* m_type: SYS_MQ_OPEN
|
|
*
|
|
*/
|
|
|
|
#include "kernel/mqueue.h"
|
|
#include "kernel/system.h"
|
|
#include "kernel/vm.h"
|
|
#include <signal.h>
|
|
#include <string.h>
|
|
#include <assert.h>
|
|
|
|
#include <minix/endpoint.h>
|
|
#include <minix/u64.h>
|
|
|
|
#if USE_MQ_IPC
|
|
|
|
/*===========================================================================*
|
|
* do_mq_open *
|
|
*===========================================================================*/
|
|
int do_mq_open(struct proc * caller, message * m_ptr)
|
|
{
|
|
return mq_open(m_ptr->m_lsys_krn_sys_mqueue_open.name,
|
|
m_ptr->m_lsys_krn_sys_mqueue_open.oflag);
|
|
}
|
|
|
|
#endif /* USE_MQ_IPC */
|