extern int errno;
-extern char *strerror (), *malloc ();
+extern char *strerror ();
extern time_t time ();
/*
getevent ()
{
int i;
- int n_events;
/* In principle the itimer should be disabled on entry to this
function, but it really doesn't make any important difference
#endif /* ! HAVE_STRERROR */
+long *
+xmalloc (size)
+ int size;
+{
+ register long *val;
+
+ val = (long *) malloc (size);
+
+ if (!val && size)
+ {
+ fprintf (stderr, "timer: virtual memory exceeded\n");
+ exit (1);
+ }
+
+ return val;
+}
+
/* timer.c ends here */