Subject: Re: alarm(4G)?
To: None <email@example.com>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 01/07/1999 09:30:12
In article <Pine.NEB.email@example.com> firstname.lastname@example.org (Hubert Feyrer) writes:
>According to the manpage, alarm(3) has an unsigned int as argument, but
>the same manpages states that the maximim number of seconds allowed is
>2147483647 which sounds like a signed int. Why?
Because it is implemented on top of setitimer(2) which uses
struct itimerval -> struct timeval -> tv_sec. tv_sec is defined
to be long in <sys/time.h>, and in 32 bit machines the limit is
0x7fffffff, which is 2147483647.