1 #include <sys/msg.h> 2 #include <unsupported_api.h> 3 #include "syscall.h" 4 #include "ipc.h" 5 msgget(key_t k,int flag)6int msgget(key_t k, int flag) 7 { 8 UNSUPPORTED_API_VOID(LITEOS_A); 9 #ifndef SYS_ipc 10 return syscall(SYS_msgget, k, flag); 11 #else 12 return syscall(SYS_ipc, IPCOP_msgget, k, flag); 13 #endif 14 } 15