ipcperm
ipcperm(struct ucred *cred, struct ipc_perm *perm, int mode)
if ((error = ipcperm(cred, &semaptr->sem_perm, IPC_W))) {