Index | Thread | Search

From:
Jan Stary <hans@stare.cz>
Subject:
ITIMER names
To:
tech@openbsd.org
Date:
Fri, 26 Jun 2026 17:54:34 +0200

Download raw body.

Thread
  • Jan Stary:

    ITIMER names

The setitimer(2) manpage lists the #define's
for the ITIMER_* names in the SYNOPSIS.

Is that intended? These are already defined in sys/time.h,
and surely the caller is not supposed to #define them.
In fact, the caller should only use the names,
described in detail in DESCRIPTION, right?

	Jan


diff --git a/lib/libc/sys/getitimer.2 b/lib/libc/sys/getitimer.2
index 1e1d25ddc28..fb305c8439c 100644
--- a/lib/libc/sys/getitimer.2
+++ b/lib/libc/sys/getitimer.2
@@ -40,9 +40,6 @@
 .Sh SYNOPSIS
 .In sys/time.h
 .Pp
-.Fd #define ITIMER_REAL		0
-.Fd #define ITIMER_VIRTUAL	1
-.Fd #define ITIMER_PROF		2
 .Ft int
 .Fn getitimer "int which" "struct itimerval *value"
 .Ft int