home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!racerx!bridge.COM
- From: ken@bridge.COM (Ken Hardy)
- Newsgroups: comp.sys.sun.misc
- Subject: adjtime(2)
- Message-ID: <1130@racerx.bridge.COM>
- Date: 23 Jul 92 15:27:26 GMT
- Sender: ken@racerx.bridge.COM
- Organization: Planet Earth
- Lines: 23
-
- I've got a realtime source of what, for my purposes, can be considered
- the "correct" time. I'm trying to use the adjtime(2) system call to
- adjust the time on a ss1 and a 386i to match what I'm seeing in the
- data feed.
-
- The man page says that adjtime(2) will return the amount of any remaining
- adjustment from a previous call in the timeval struct pointed to by
- the second arguement. I _always_ get zeroes returned in this
- structure, even immediately after setting an adjustment that has not
- had time to take effect yet (as verified by checking the system time
- before and after.)
-
- Q1: Is the time adjustment amount in an adjtime(2) call added to any
- remaining adjustment from a previous call, or does it supercede
- it, replacing it as an absolute value?
-
- If it is cumulative, I need to know the remaining value so that I
- don't blindly whipsaw the clock around when trying to make an
- adjustment when a previous one is still taking effect.
-
- Q2: Is the adjtime(2) call known to not work as advertised? I'm
- running SunOS 4.1.1 on a ss1 and SunOS 4.0 on a 386i.
-
-