Subject: Setitimer ?
To: 'tech-kern@netbsd.org' <tech-kern@netbsd.org>
From: Riaz Randeree <RiazR@cat.co.za>
List: tech-kern
Date: 03/11/1999 11:51:13
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------ =_NextPart_001_01BE6BA4.B3B6ECA0
Content-Type: text/plain

Hello,

I have NetBSD 1.3.2 for i386, and the call to setitimer
fails with EINVAL.

Looking at file: sys/kern/kern_time.c,
a function itimerfix is called and if tv_sec > 100 000 000
(3/3/1973) it fails.

So I set the time to the 0th hour and
setitimer(ITIMER_REAL...) works.

Does setitimer work with today's date?
Could someone please provide me with a sample?

All I want is similarly functionality as the POSIX
timer_settime.

Thanks in advance
Riaz

------ =_NextPart_001_01BE6BA4.B3B6ECA0
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.0.1460.9">
<TITLE>Setitimer ?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Hello,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have NetBSD 1.3.2 for i386, and the call to setitimer fails with EINVAL.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Looking at file: sys/kern/kern_time.c,</FONT>
<BR><FONT SIZE=2 FACE="Arial">a function itimerfix is called and if tv_sec &gt; 100 000 000 (3/3/1973) it fails.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">So I set the time to the 0th hour and setitimer(ITIMER_REAL...) works.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Does setitimer work with today's date?</FONT>
<BR><FONT SIZE=2 FACE="Arial">Could someone please provide me with a sample?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">All I want is similarly functionality as the POSIX timer_settime.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks in advance</FONT>
<BR><FONT SIZE=2 FACE="Arial">Riaz</FONT>
</P>

</BODY>
</HTML>
------ =_NextPart_001_01BE6BA4.B3B6ECA0--