diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/gen/alarm.3 | 10 | ||||
| -rw-r--r-- | lib/libc/gen/ualarm.3 | 11 |
2 files changed, 17 insertions, 4 deletions
diff --git a/lib/libc/gen/alarm.3 b/lib/libc/gen/alarm.3 index 4d99fa108d9d..5e47a151681b 100644 --- a/lib/libc/gen/alarm.3 +++ b/lib/libc/gen/alarm.3 @@ -60,10 +60,14 @@ will supersede the prior call. The request .Fn alarm "0" voids the current -alarm and the signal SIGALRM will not be delivered. The maximum number of +alarm and the signal SIGALRM will not be delivered. +.Pp +Due to +.Xr setitimer 2 +restriction the maximum number of .Ar seconds -allowed -is 2147483647. +allowed is 100000000. +.Sh RETURN VALUES .Pp The return value of .Fn alarm diff --git a/lib/libc/gen/ualarm.3 b/lib/libc/gen/ualarm.3 index 91713b2dd149..bad7e102b662 100644 --- a/lib/libc/gen/ualarm.3 +++ b/lib/libc/gen/ualarm.3 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" From: @(#)ualarm.3 8.2 (Berkeley) 4/19/94 -.\" $Id: ualarm.3,v 1.5 1997/02/22 14:58:19 peter Exp $ +.\" $Id: ualarm.3,v 1.6 1997/08/14 06:32:25 ache Exp $ .\" .Dd April 19, 1994 .Dt UALARM 3 @@ -67,6 +67,15 @@ to the process every microseconds after the timer expires (e.g. after .Fa value microseconds have passed). +.Pp +Due to +.Xr setitimer 2 +restriction the maximum number of +.Ar microseconds +and +.Ar interval +is limited to 100000000000000 +(in case this value fit in the unsigned integer). .Sh RETURN VALUES When the signal has successfully been caught, .Fn ualarm |
