Cross Reference: setitimer.c
xref
: /
osnet-11
/
usr
/
src
/
lib
/
libresolv2
/
common
/
bsd
/
setitimer.c
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
setitimer.c revision 2
2
N/A
#
ifndef
LINT
2
N/A
static
const
char
rcsid
[] =
"$Id:
setitimer.c
,v 1.2 2005/04/27 04:56:12 sra Exp $"
;
2
N/A
#
endif
2
N/A
2
N/A
#
include
"
port_before.h
"
2
N/A
2
N/A
#
include
<
sys
/
time.h
>
2
N/A
2
N/A
#
include
"
port_after.h
"
2
N/A
2
N/A
/*%
2
N/A
* Setitimer emulation routine.
2
N/A
*/
2
N/A
#
ifndef
NEED_SETITIMER
2
N/A
int
__bindcompat_setitimer
;
2
N/A
#
else
2
N/A
2
N/A
int
2
N/A
__setitimer
(
int
which
,
const
struct
itimerval
*
value
,
2
N/A
struct
itimerval
*
ovalue
)
2
N/A
{
2
N/A
if
(
alarm
(
value
->
it_value
.
tv_sec
) >= 0)
2
N/A
return
(0);
2
N/A
else
2
N/A
return
(-
1
);
2
N/A
}
2
N/A
#
endif
2
N/A
2
N/A
/*! \file */