Bye,
Melinda.
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
--0-944088738-1177796764=:5915
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
I'm using an MPC885 with the linux kernel rtc emulator driver. Because I need
to wake a process every second, exactly synchronized with the rtc, I'm using
the following code
snippet:<br><br>____________________________________________<br>/* Turn on
update interrupts (one per second) */<br>retval = ioctl(fd, RTC_UIE_ON,
0);<br>if (retval == -1) {<br>
perror("ioctl");<br>
exit(errno);<br>}<br><br>while
(1)<br>{<br> /* This read will block
*/<br> retval = read(fd, &data,
sizeof(unsigned long));<br> if
(retval == -1)
{<br>
perror("read");<br>
exit(errno);<br>
}<br> /* Do something exactly synchronized
with RTC */<br> /* ......
*/<br>}<br><br>_________________________________________<br><br><br>From time
to time I receive the message on the subject. What's
happening?<br><br><br>Bye,<br>Melinda.<br><br><p> 
<hr size=1>Ahhh...imagining that irresistible "new car" smell?<br> Check
out
<a
href="http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM-">new
cars at Yahoo! Autos.</a>
--0-944088738-1177796764=:5915--