Detect FPU by checking CPUID features.
[dragonfly.git] / contrib / bind-9.5.2 / lib / bind / bsd / setitimer.c
blob67881d7ca8a55fbae20f8a215b50dc0c5174f6e4
1 #ifndef LINT
2 static const char rcsid[] = "$Id: setitimer.c,v 1.2 2005/04/27 04:56:12 sra Exp $";
3 #endif
5 #include "port_before.h"
7 #include <sys/time.h>
9 #include "port_after.h"
11 /*%
12 * Setitimer emulation routine.
14 #ifndef NEED_SETITIMER
15 int __bindcompat_setitimer;
16 #else
18 int
19 __setitimer(int which, const struct itimerval *value,
20 struct itimerval *ovalue)
22 if (alarm(value->it_value.tv_sec) >= 0)
23 return (0);
24 else
25 return (-1);
27 #endif
29 /*! \file */