git: 06b69937a87e - main - (u)alarm.3: Improve readability of setitmer(2) restrictions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Apr 2025 09:44:55 UTC
The branch main has been updated by bnovkov:
URL: https://cgit.FreeBSD.org/src/commit/?id=06b69937a87e0e2472f2c9241da53dd7cd45bcad
commit 06b69937a87e0e2472f2c9241da53dd7cd45bcad
Author: Bojan Novković <bnovkov@FreeBSD.org>
AuthorDate: 2025-04-08 16:41:58 +0000
Commit: Bojan Novković <bnovkov@FreeBSD.org>
CommitDate: 2025-04-10 09:44:39 +0000
(u)alarm.3: Improve readability of setitmer(2) restrictions
Add separators to make the maximum number of (micro)seconds
in (u)alarm.3 more readable.
Sponsored by: Klara, Inc.
Obtained from: https://github.com/apple-oss-distributions/Libc
Differential Revision: https://reviews.freebsd.org/D49712
Reviewed by: markj
---
lib/libc/gen/alarm.3 | 2 +-
lib/libc/gen/ualarm.3 | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/libc/gen/alarm.3 b/lib/libc/gen/alarm.3
index 8aeda29481eb..4a24cc6d7216 100644
--- a/lib/libc/gen/alarm.3
+++ b/lib/libc/gen/alarm.3
@@ -63,7 +63,7 @@ Due to
.Xr setitimer 2
restriction the maximum number of
.Fa seconds
-allowed is 100000000.
+allowed is 100,000,000.
.Sh RETURN VALUES
The return value of
.Fn alarm
diff --git a/lib/libc/gen/ualarm.3 b/lib/libc/gen/ualarm.3
index f4e0973b133a..dfd9ddd5f434 100644
--- a/lib/libc/gen/ualarm.3
+++ b/lib/libc/gen/ualarm.3
@@ -70,7 +70,7 @@ restriction the maximum number of
.Fa microseconds
and
.Fa interval
-is limited to 100000000000000
+is limited to 100,000,000,000,000
(in case this value fits in the unsigned integer).
.Sh RETURN VALUES
When the signal has successfully been caught,