int sys_msgctl(struct tcb *tcp) { if (entering(tcp)) { tprintf("%lu, ", tcp->u_arg[0]); PRINTCTL(msgctl_flags, tcp->u_arg[1], "MSG_???"); tprintf(", %#lx", tcp->u_arg[indirect_ipccall(tcp) ? 3 : 2]); } return 0; }
int sys_semctl(struct tcb *tcp) { if (entering(tcp)) { tprintf("%lu, %lu, ", tcp->u_arg[0], tcp->u_arg[1]); PRINTCTL(semctl_flags, tcp->u_arg[2], "SEM_???"); tprintf(", %#lx", tcp->u_arg[3]); } return 0; }
int sys_shmctl(struct tcb *tcp) { if (entering(tcp)) { tprintf("%lu, ", tcp->u_arg[0]); PRINTCTL(shmctl_flags, tcp->u_arg[1], "SHM_???"); if (indirect_ipccall(tcp)) { tprintf(", %#lx", tcp->u_arg[3]); } else { tprintf(", %#lx", tcp->u_arg[2]); } } return 0; }