public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] posix time functions
@ 2004-10-01  4:16 David Brennan
  2004-10-01  9:14 ` Nick Garnett
  0 siblings, 1 reply; 13+ messages in thread
From: David Brennan @ 2004-10-01  4:16 UTC (permalink / raw)
  To: eCos Discuss

We discovered a (perhaps) un-documented feature in the eCos posix 
clock_settime and clock_gettime functions. Setting the time, changes the 
system clock (number of ticks). The system clock should only be 
changeable by the interrupt routine which is incrementing it. All other 
code should really only have read access. Is there a chance this could 
be changed? That is, if we fix it in the kernel, would that type of 
patch be accepted. I would think that setting the clock and possibly 
losing alarms would be something that other people have noticed before. 
For now we have implemented our own time off-set and never call settime 
and call our own gettime which adds our offset to the time that the OS 
is returning. But this seems like the hard way of doing it.

David Brennan

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-11-21 16:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-01  4:16 [ECOS] posix time functions David Brennan
2004-10-01  9:14 ` Nick Garnett
2004-10-12 20:08   ` Sam Pham
2004-10-22  9:45   ` David Brennan
2004-10-22 12:40     ` Nick Garnett
2004-10-22 13:01       ` David Brennan
2004-10-22 15:05         ` [ECOS] eCos x Cirrus EP9302 sraposo
2004-10-25 12:43         ` [ECOS] posix time functions Nick Garnett
2004-10-25 13:20           ` David Brennan
2004-10-25 14:55             ` Nick Garnett
2004-10-28 17:25               ` [ECOS] clock_settime() help Sam Pham
2005-11-21 16:50               ` [ECOS] tcsendbreak Sam Pham
2004-10-27 16:22             ` [ECOS] clock_settime() function Sam Pham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).