MacOSX/Darwin has its own definition for alarm() in libSystem (MacOSX's
equivalent of libc), causing a multiple symbol definition error when
linking temacs. Is the alarm() in signal.c equivalent to the one in
libc? If so, why is it redefined in signal.c? Perhaps it's to correct
for a broken libc alarm() on some platforms?
Andrew
(Here's the manpage:
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
unsigned int
alarm(unsigned int seconds);
DESCRIPTION
This interface is made obsolete by setitimer(2).
The alarm() function sets a timer to deliver the signal SIGALRM to
the
calling process after the specified number of seconds. If an
alarm has
already been set with alarm() but has not been delivered, another
call to
alarm() will supersede the prior call. The request alarm(0) voids
the
current alarm and the signal SIGALRM will not be delivered.
Due to setitimer(2) restriction the maximum number of seconds
allowed is
100000000.
)
-----------
Andrew Begel
Ph.D. Candidate
Computer Science Division
University of California, Berkeley