ITIMER names

Jan Stary <[email protected]>
Newsgroups gmane.os.openbsd.tech
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.