<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/games/grdc, branch release/8.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2010-08-17T16:25:44Z</updated>
<entry>
<title>MFC r203920,210755,210809,210827:</title>
<updated>2010-08-17T16:25:44Z</updated>
<author>
<name>Ulrich Spörlein</name>
<email>uqs@FreeBSD.org</email>
</author>
<published>2010-08-17T16:25:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1c7462039baef0d7f0b906317c0d284d0bea55ba'/>
<id>urn:sha1:1c7462039baef0d7f0b906317c0d284d0bea55ba</id>
<content type='text'>
- WARNS?=6 cleanup
- fix timekeeping for user-supplied value n
- de-obfuscate the timekeeping of now/delay
</content>
</entry>
<entry>
<title>MFC r203760: Improve time precision for grdc(6):</title>
<updated>2010-03-12T00:51:13Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2010-03-12T00:51:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ea2c000633765fbfb42e63a74b8ee3fb10bb4aff'/>
<id>urn:sha1:ea2c000633765fbfb42e63a74b8ee3fb10bb4aff</id>
<content type='text'>
Traditionally, grdc would obtain time through time(3) which in turn gets
only the second part of clock (CLOCK_SECOND), and sleep for 1 second after
each screen refresh.

This approach would have two problems.  First, we are not guaranteed to
be waken up at the beginning of a whole second, which will typically
exhibit as a "lag" on second number.  Second, because we sleep for whole
second, and the refresh process would take some time, the error would
accumulate from time to time, making the lag variable.

Make grdc(6) to use time(3) to get time only at the beginning, and sample
time in CLOCK_REALTIME_FAST granularity after refreshing, and use the
nanosecond part to caculate how much time we want to sleep.

PR:		bin/120813
</content>
</entry>
<entry>
<title>Handle 12-hour clocks properly: when the time is 00:00-00:59, adjust the</title>
<updated>2003-06-23T16:01:11Z</updated>
<author>
<name>Will Andrews</name>
<email>will@FreeBSD.org</email>
</author>
<published>2003-06-23T16:01:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=17527010e2e3496000a26c0b1ee157a31146e625'/>
<id>urn:sha1:17527010e2e3496000a26c0b1ee157a31146e625</id>
<content type='text'>
hour to 12 so the time reads "12:00-12:59 AM".
</content>
</entry>
<entry>
<title>mdoc(7) police: Make SYNOPSIS match usage().</title>
<updated>2003-05-16T21:27:23Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2003-05-16T21:27:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c8d3a56cb862c45aeea53cc30643dcf672696e8a'/>
<id>urn:sha1:c8d3a56cb862c45aeea53cc30643dcf672696e8a</id>
<content type='text'>
Approved by:	re (blanket)
</content>
</entry>
<entry>
<title>Add an option to print the time in 12-hour format.</title>
<updated>2003-03-28T16:37:45Z</updated>
<author>
<name>Maxime Henrion</name>
<email>mux@FreeBSD.org</email>
</author>
<published>2003-03-28T16:37:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=37087753b2126a720a6c7b8c59652b73b70aa3be'/>
<id>urn:sha1:37087753b2126a720a6c7b8c59652b73b70aa3be</id>
<content type='text'>
Submitted by:	Samy Al Bahra &lt;samy@kerneled.com&gt;
</content>
</entry>
<entry>
<title>mdoc(7) police: Added the missing .Os call; it's not strictly</title>
<updated>2002-12-11T15:55:29Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2002-12-11T15:55:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=051bb54bd3ad86473c3f598db5d67e4f1f356f40'/>
<id>urn:sha1:051bb54bd3ad86473c3f598db5d67e4f1f356f40</id>
<content type='text'>
necessary nowadays, but is documented as "required", and may
become so again in the future.

Approved by:	re
</content>
</entry>
<entry>
<title>- Only use sig_atomic_t objects in signal handlers.</title>
<updated>2001-09-25T13:45:46Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-09-25T13:45:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=fb2473d217d4111f1b006e1fd9690df5ddc760f4'/>
<id>urn:sha1:fb2473d217d4111f1b006e1fd9690df5ddc760f4</id>
<content type='text'>
- Use getopt() to parse command line.
- Add usage().
- WARNSify.
- Convert manpage to mdoc(7).

PR:		bin/30641
Submitted by:	Andrey Simonenko &lt;simon@simon.org.ua&gt;, ru
MFC after:	1 week
</content>
</entry>
<entry>
<title>- Backout botched attempt to intoduce MANSECT feature.</title>
<updated>2001-03-26T14:22:12Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-03-26T14:22:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e5b5c66bcad3c6a5639669f734a19ec37d1ed0ff'/>
<id>urn:sha1:e5b5c66bcad3c6a5639669f734a19ec37d1ed0ff</id>
<content type='text'>
- MAN[1-9] -&gt; MAN.
</content>
</entry>
<entry>
<title>Set the default manual section for games/ to 6.</title>
<updated>2001-03-20T18:08:43Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-03-20T18:08:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1c011f20f684784227856596edeaf9ef2d6e0373'/>
<id>urn:sha1:1c011f20f684784227856596edeaf9ef2d6e0373</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove unneded -ltermcap or -lmytinfo</title>
<updated>2000-09-16T03:52:06Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2000-09-16T03:52:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ca6d811ee5b430e910adeff412eba8c3d91c3dfe'/>
<id>urn:sha1:ca6d811ee5b430e910adeff412eba8c3d91c3dfe</id>
<content type='text'>
</content>
</entry>
</feed>
