SEM_UNDO
if ((operations[i].sem_flg & SEM_UNDO) == 0)
if (operations[j].sem_flg & SEM_UNDO) {
array[i].sem_flg = SEM_UNDO;