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