2N/A#ifndef LINT
2N/Astatic const char rcsid[] = "$Id: setitimer.c,v 1.2 2005/04/27 04:56:12 sra Exp $";
2N/A#endif
2N/A
2N/A#include "port_before.h"
2N/A
2N/A#include <sys/time.h>
2N/A
2N/A#include "port_after.h"
2N/A
2N/A/*%
2N/A * Setitimer emulation routine.
2N/A */
2N/A#ifndef NEED_SETITIMER
2N/Aint __bindcompat_setitimer;
2N/A#else
2N/A
2N/Aint
2N/A__setitimer(int which, const struct itimerval *value,
2N/A struct itimerval *ovalue)
2N/A{
2N/A if (alarm(value->it_value.tv_sec) >= 0)
2N/A return (0);
2N/A else
2N/A return (-1);
2N/A}
2N/A#endif
2N/A
2N/A/*! \file */