linux-user discrete IPC calls
PATCH 1/1 linux-user discrete IPC calls
At least armel implements discreet IPC calls instead of multiplexing them through a single syscall. This patch adds support for this.
Stuart
Stuart R. Anderson [email protected] Network & Software Engineering http://www.netsweng.com/ 1024D/37A79149: 0791 D3B8 9A4C 2CDC A31F BD03 0A62 E534 37A7 9149
linux-user/syscall.c +35 -0
@@ -3742,6 +3742,41 @@ ret =do_ipc (arg1, arg2, arg3, arg4, arg5, arg6);break ;#endif +#ifdef TARGET_NR_semop +case TARGET_NR_semop: + ret =get_errno (semop (arg1,(struct sembuf *) arg2, arg3)); +break ; +#endif +#ifdef TARGET_NR_semget +case TARGET_NR_semget: + ret =get_errno (semget (arg1, arg2, arg3)); +break ; +#endif +#ifdef TARGET_NR_semctl +case TARGET_NR_semctl: + ret =do_semctl (arg1, arg2, arg3, arg4); +break ; +#endif +#ifdef TARGET_NR_msgsnd +case TARGET_NR_msgsnd: + ret =do_msgsnd (arg1, arg2, arg3, arg4); +break ; +#endif +#ifdef TARGET_NR_msgrcv +case TARGET_NR_msgrcv: + ret =do_msgrcv (arg1, arg2, arg3, arg4, arg5); +break ; +#endif +#ifdef TARGET_NR_msgget +case TARGET_NR_msgget: + ret =get_errno (msgget (arg1, arg2)); +break ; +#endif +#ifdef TARGET_NR_msgctl +case TARGET_NR_msgctl: + ret =do_msgctl (arg1, arg2, arg3); +break ; +#endif case TARGET_NR_fsync: ret =get_errno (fsync (arg1));break ;