summaryrefslogtreecommitdiffstats
path: root/games/grdc
Commit message (Collapse)AuthorAgeFilesLines
* Final step of eliminating the "games" distribution: Merge src/gamescperciva2015-10-024-333/+0
| | | | | | | | | (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
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge head from 7/28sjg2014-08-192-3/+2
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| * | Updated/new Makefile.dependsjg2012-11-081-0/+1
| | |
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | Correct grdc(1) 12-hour display between 12:00 and 13:00emaste2015-06-021-5/+5
| |/ |/| | | | | | | | | | | | | PM starts at 12:00, not 13:00. PR: 194291, 200133 Submitted by: Nick Price MFC after: 1 week
* | Replace all uses of libncurses and libtermcap with their wide characterbrooks2014-07-171-2/+2
|/ | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL
* Add static keywords to variables and functions where possible in games/.ed2011-11-051-17/+18
| | | | | This allows us to detect unused functions and variables and allows the compiler to do a better job at optimisation.
* grdc(6): de-obfuscate the timekeeping of now/delayuqs2010-08-031-6/+8
| | | | | | | | | - '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
* grdc(6): Partial backout of r210755uqs2010-08-031-18/+24
| | | | | | | | | | | | | | | | | 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
* grdc(6): fix timekeeping for user-supplied value nuqs2010-08-021-18/+15
| | | | | | | | | - 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
* games: make WARNS=6 the default, remove overridesuqs2010-02-151-1/+0
| | | | | | This also bumps factor, fortune, primes, and random to WARNS=6. Approved by: ed (Co-mentor)
* grdc(6) make WARNS=6 clean and bump accordinglyuqs2010-02-152-18/+16
| | | | Approved by: ed (Co-mentor)
* Improve time precision for grdc(6):delphij2010-02-101-2/+15
| | | | | | | | | | | | | | | | | | | 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
* Handle 12-hour clocks properly: when the time is 00:00-00:59, adjust thewill2003-06-231-1/+5
| | | | hour to 12 so the time reads "12:00-12:59 AM".
* mdoc(7) police: Make SYNOPSIS match usage().ru2003-05-161-2/+1
| | | | Approved by: re (blanket)
* Add an option to print the time in 12-hour format.mux2003-03-282-4/+26
| | | | Submitted by: Samy Al Bahra <samy@kerneled.com>
* mdoc(7) police: Added the missing .Os call; it's not strictlyru2002-12-111-0/+1
| | | | | | | necessary nowadays, but is documented as "required", and may become so again in the future. Approved by: re
* - Only use sig_atomic_t objects in signal handlers.ru2001-09-253-28/+64
| | | | | | | | | | | - 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
* - Backout botched attempt to intoduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for games/ to 6.ru2001-03-201-1/+0
|
* Remove unneded -ltermcap or -lmytinfoache2000-09-161-2/+2
|
* -Wall fixes.billf1999-12-121-0/+1
|
* Add curs_set(0) to get rid of that annoying cursor. I also have to evillygreen1999-09-181-0/+3
| | | | add $FreeBSD$ so I can commit this.
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Change long variable to time_t where it is passed to time() by reference.jb1998-05-091-1/+1
|
* Remove so-called revoke, this game not installed sguidache1997-09-011-4/+0
|
* Change games from setuid games to setgid games.eivind1997-09-011-0/+4
| | | | | Reviewed by: maybe@yes.no Obtained from: OpenBSD (mostly deraadt@openbsd.org)
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Remove trailing whitespace.rgrimes1995-05-301-6/+6
|
* gdc -> grdcache1994-12-052-6/+6
|
* Re-import with new name, old name conflicts with gatedache1994-12-043-0/+232
OpenPOWER on IntegriCloud