custom message type for SEMOP

This commit is contained in:
Ben Gras
2014-07-26 13:53:54 +02:00
committed by Lionel Sambuc
parent c476408dea
commit fce93dad32
4 changed files with 15 additions and 9 deletions

View File

@@ -90,9 +90,9 @@ int semop(int semid, struct sembuf *sops, size_t nsops)
}
memset(&m, 0, sizeof(m));
m.SEMOP_ID = semid;
m.SEMOP_OPS = (long) sops;
m.SEMOP_SIZE = nsops;
m.m_lc_ipc_semop.id = semid;
m.m_lc_ipc_semop.ops = sops;
m.m_lc_ipc_semop.size = nsops;
return _syscall(ipc_pt, IPC_SEMOP, &m);
}