Subject: Re: alarm(4G)?
To: None <firstname.lastname@example.org>
From: Christos Zoulas <email@example.com>
Date: 01/07/1999 09:30:12
In article <Pine.NEB.firstname.lastname@example.org> email@example.com (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.