int semctl(int id, int num, int cmd, ...) { #if !defined(__LP64__) // Annoyingly, the kernel requires this for 32-bit but rejects it for 64-bit.
cmd |= IPC_64; #endif
va_list ap;
va_start(ap, cmd);
semun arg = va_arg(ap, semun);
va_end(ap); return syscall(SYS_semctl, id, num, cmd, arg);
}
int semget(key_t key, int n, int flags) { return syscall(SYS_semget, key, n, flags);
}
int semtimedop(int id, sembuf* ops, size_t op_count, const timespec* ts) { #ifdefined(SYS_semtimedop) return syscall(SYS_semtimedop, id, ops, op_count, ts); #else // 32-bit x86 -- the only architecture without semtimedop(2) -- only has // semtimedop_time64(2), but since we don't have any timespec64 stuff, // it's less painful for us to just stick with the legacy ipc(2) here. return syscall(SYS_ipc, SEMTIMEDOP, id, op_count, 0, ops, ts); #endif
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.11Bemerkung:
(vorverarbeitet am 2026-06-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.