| #
88cbbbb6
|
| 10-May-2024 |
Warner Losh <imp@FreeBSD.org> |
Revert "grdc: Add copyright"
It turns out this wasn't in 4.4BSD. I had a false positive for gdc.c (which is in 4.4BSD, but part of gated, not this). gdc.c comes from the ncurses tests, so it shouldn
Revert "grdc: Add copyright"
It turns out this wasn't in 4.4BSD. I had a false positive for gdc.c (which is in 4.4BSD, but part of gated, not this). gdc.c comes from the ncurses tests, so it shouldn't have this copyright. This version is mostly Amos Shapir and John Lupien's code. It comes from ncurses test directory. ncurses has made dozens of improvements to this file since we imported it in 1997 (which pre-dates their online history), so it's not clear if their new copyright applies (which doesn't mention Amos or John) or if some other copyright applies. In any case, it wasn't 4.4BSD, so revert this.
This reverts commit 6ed7d0e3ac9c34fa9deeb73f2322b9f25b708788.
Sponsored by: Netflix
show more ...
|
| #
6ed7d0e3
|
| 10-May-2024 |
Warner Losh <imp@FreeBSD.org> |
grdc: Add copyright
Add the stock BSD copyright and license from the 4.4-Lite distribution (indirected by SPDX).
Sponsored by: Netflix
|
| #
71ed1add
|
| 10-May-2024 |
Gavin Atkinson <gavin@FreeBSD.org> |
grdc: add countdown timer mode
PR: 35113 Differential Revision: https://reviews.freebsd.org/D43463
|
| #
b3e76948
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| #
a1b6427a
|
| 07-Jul-2023 |
Alfonso Gregory <gfunni234@gmail.com> |
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dea
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
show more ...
|
| #
88cbbbb6
|
| 10-May-2024 |
Warner Losh <imp@FreeBSD.org> |
Revert "grdc: Add copyright"
It turns out this wasn't in 4.4BSD. I had a false positive for gdc.c (which is in 4.4BSD, but part of gated, not this). gdc.c comes from the ncurses tests, so it shouldn
Revert "grdc: Add copyright"
It turns out this wasn't in 4.4BSD. I had a false positive for gdc.c (which is in 4.4BSD, but part of gated, not this). gdc.c comes from the ncurses tests, so it shouldn't have this copyright. This version is mostly Amos Shapir and John Lupien's code. It comes from ncurses test directory. ncurses has made dozens of improvements to this file since we imported it in 1997 (which pre-dates their online history), so it's not clear if their new copyright applies (which doesn't mention Amos or John) or if some other copyright applies. In any case, it wasn't 4.4BSD, so revert this.
This reverts commit 6ed7d0e3ac9c34fa9deeb73f2322b9f25b708788.
Sponsored by: Netflix
show more ...
|
| #
6ed7d0e3
|
| 10-May-2024 |
Warner Losh <imp@FreeBSD.org> |
grdc: Add copyright
Add the stock BSD copyright and license from the 4.4-Lite distribution (indirected by SPDX).
Sponsored by: Netflix
|
| #
71ed1add
|
| 10-May-2024 |
Gavin Atkinson <gavin@FreeBSD.org> |
grdc: add countdown timer mode
PR: 35113 Differential Revision: https://reviews.freebsd.org/D43463
|
| #
b3e76948
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| #
a1b6427a
|
| 07-Jul-2023 |
Alfonso Gregory <gfunni234@gmail.com> |
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dea
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
show more ...
|
| #
6ae1554a
|
| 02-Oct-2015 |
Colin Percival <cperciva@FreeBSD.org> |
Final step of eliminating the "games" distribution: Merge src/games (or what's left of it, at least) into src/usr.bin.
This change will not be MFCed.
Discussed at: EuroBSDCon 2014 Committed from:
Final step of eliminating the "games" distribution: Merge src/games (or what's left of it, at least) into src/usr.bin.
This change will not be MFCed.
Discussed at: EuroBSDCon 2014 Committed from: EuroBSDCon 2015
show more ...
|
| #
37be5063
|
| 02-Jun-2015 |
Ed Maste <emaste@FreeBSD.org> |
Correct grdc(1) 12-hour display between 12:00 and 13:00
PM starts at 12:00, not 13:00.
PR: 194291, 200133 Submitted by: Nick Price MFC after: 1 week
|
| #
3b9fe1e1
|
| 05-Nov-2011 |
Ed Schouten <ed@FreeBSD.org> |
Add static keywords to variables and functions where possible in games/.
This allows us to detect unused functions and variables and allows the compiler to do a better job at optimisation.
|
| #
ec2368eb
|
| 03-Aug-2010 |
Ulrich Spörlein <uqs@FreeBSD.org> |
grdc(6): de-obfuscate the timekeeping of now/delay
- 'now' only contains current time readings - delay is only used as parameter to nanosleep - prev_sec contains the time_t of the previous loop iter
grdc(6): de-obfuscate the timekeeping of now/delay
- 'now' only contains current time readings - delay is only used as parameter to nanosleep - prev_sec contains the time_t of the previous loop iteration
Submitted by: bde MFC after: 2 weeks
show more ...
|
| #
1c9d5fc2
|
| 03-Aug-2010 |
Ulrich Spörlein <uqs@FreeBSD.org> |
grdc(6): Partial backout of r210755
The previous revision was flawed in numerous ways: - the if condition would depend on garbage stack values - grdc(6) would loop n times, not n seconds. This only
grdc(6): Partial backout of r210755
The previous revision was flawed in numerous ways: - the if condition would depend on garbage stack values - grdc(6) would loop n times, not n seconds. This only makes a difference if it takes more than 1 second to recalculate/redraw the display. - style(9) violations
The following change adds argument checking and tracks the elapsed time between loops explicitly and will exit after roughly n seconds.
While here sort headers and remove bogus #ifndef
Submitted by: bde MFC after: 2 weeks
show more ...
|
| #
de1070d4
|
| 02-Aug-2010 |
Ulrich Spörlein <uqs@FreeBSD.org> |
grdc(6): fix timekeeping for user-supplied value n
- Keep timespec 'now' and 'delay' separate to avoid confusion - Increase user-supplied n to run _at least_ n seconds, not max n
PR: bin
grdc(6): fix timekeeping for user-supplied value n
- Keep timespec 'now' and 'delay' separate to avoid confusion - Increase user-supplied n to run _at least_ n seconds, not max n
PR: bin/149130 (based on) Submitted by: Andy Farkas MFC after: 2 weeks
show more ...
|
| #
72cb6052
|
| 15-Feb-2010 |
Ulrich Spörlein <uqs@FreeBSD.org> |
grdc(6) make WARNS=6 clean and bump accordingly
Approved by: ed (Co-mentor)
|
| #
eb1930d3
|
| 10-Feb-2010 |
Xin LI <delphij@FreeBSD.org> |
Improve time precision for grdc(6):
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 re
Improve time precision for grdc(6):
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 MFC after: 1 month
show more ...
|
| #
17527010
|
| 23-Jun-2003 |
Will Andrews <will@FreeBSD.org> |
Handle 12-hour clocks properly: when the time is 00:00-00:59, adjust the hour to 12 so the time reads "12:00-12:59 AM".
|
| #
37087753
|
| 28-Mar-2003 |
Maxime Henrion <mux@FreeBSD.org> |
Add an option to print the time in 12-hour format.
Submitted by: Samy Al Bahra <samy@kerneled.com>
|
| #
fb2473d2
|
| 25-Sep-2001 |
Ruslan Ermilov <ru@FreeBSD.org> |
- Only use sig_atomic_t objects in signal handlers. - Use getopt() to parse command line. - Add usage(). - WARNSify. - Convert manpage to mdoc(7).
PR: bin/30641 Submitted by: Andrey Simonenko <simo
- Only use sig_atomic_t objects in signal handlers. - Use getopt() to parse command line. - Add usage(). - WARNSify. - Convert manpage to mdoc(7).
PR: bin/30641 Submitted by: Andrey Simonenko <simon@simon.org.ua>, ru MFC after: 1 week
show more ...
|
| #
88285905
|
| 12-Dec-1999 |
Bill Fumerola <billf@FreeBSD.org> |
-Wall fixes.
|
| #
22f0eae8
|
| 18-Sep-1999 |
Brian Feldman <green@FreeBSD.org> |
Add curs_set(0) to get rid of that annoying cursor. I also have to evilly add $FreeBSD$ so I can commit this.
|
| #
4af1e600
|
| 09-May-1998 |
John Birrell <jb@FreeBSD.org> |
Change long variable to time_t where it is passed to time() by reference.
|
| #
fafd0d1b
|
| 01-Sep-1997 |
Andrey A. Chernov <ache@FreeBSD.org> |
Remove so-called revoke, this game not installed sguid
|