1 #include <sys/msg.h> 2 #include <unsupported_api.h> 3 #include "syscall.h" 4 #include "ipc.h" 5 msgrcv(int q,void * m,size_t len,long type,int flag)6ssize_t msgrcv(int q, void *m, size_t len, long type, int flag) 7 { 8 UNSUPPORTED_API_VOID(LITEOS_A); 9 #ifndef SYS_ipc 10 return syscall_cp(SYS_msgrcv, q, m, len, type, flag); 11 #else 12 return syscall_cp(SYS_ipc, IPCOP_msgrcv, q, len, flag, ((long[]){ (long)m, type })); 13 #endif 14 } 15