aboutsummaryrefslogtreecommitdiff
path: root/games/grdc
Commit message (Collapse)AuthorAgeFilesLines
* Final step of eliminating the "games" distribution: Merge src/gamesColin Percival2015-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 Notes: svn path=/head/; revision=288485
* Add META_MODE support.Simon J. Gerraty2015-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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge head from 7/28Simon J. Gerraty2014-08-192-3/+2
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Updated/new Makefile.dependSimon J. Gerraty2012-11-081-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | Correct grdc(1) 12-hour display between 12:00 and 13:00Ed Maste2015-06-021-5/+5
| |/ |/| | | | | | | | | | | | | | | | | | | PM starts at 12:00, not 13:00. PR: 194291, 200133 Submitted by: Nick Price MFC after: 1 week Notes: svn path=/head/; revision=283929
* | Replace all uses of libncurses and libtermcap with their wide characterBrooks Davis2014-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 Notes: svn path=/head/; revision=268804
* Add static keywords to variables and functions where possible in games/.Ed Schouten2011-11-051-17/+18
| | | | | | | | This allows us to detect unused functions and variables and allows the compiler to do a better job at optimisation. Notes: svn path=/head/; revision=227101
* grdc(6): de-obfuscate the timekeeping of now/delayUlrich Spörlein2010-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 Notes: svn path=/head/; revision=210827
* grdc(6): Partial backout of r210755Ulrich Spörlein2010-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 Notes: svn path=/head/; revision=210809
* grdc(6): fix timekeeping for user-supplied value nUlrich Spörlein2010-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 Notes: svn path=/head/; revision=210755
* games: make WARNS=6 the default, remove overridesUlrich Spörlein2010-02-151-1/+0
| | | | | | | | | This also bumps factor, fortune, primes, and random to WARNS=6. Approved by: ed (Co-mentor) Notes: svn path=/head/; revision=203923
* grdc(6) make WARNS=6 clean and bump accordinglyUlrich Spörlein2010-02-152-18/+16
| | | | | | | Approved by: ed (Co-mentor) Notes: svn path=/head/; revision=203920
* Improve time precision for grdc(6):Xin LI2010-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 Notes: svn path=/head/; revision=203760
* Handle 12-hour clocks properly: when the time is 00:00-00:59, adjust theWill Andrews2003-06-231-1/+5
| | | | | | | hour to 12 so the time reads "12:00-12:59 AM". Notes: svn path=/head/; revision=116739
* mdoc(7) police: Make SYNOPSIS match usage().Ruslan Ermilov2003-05-161-2/+1
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115085
* Add an option to print the time in 12-hour format.Maxime Henrion2003-03-282-4/+26
| | | | | | | Submitted by: Samy Al Bahra <samy@kerneled.com> Notes: svn path=/head/; revision=112749
* mdoc(7) police: Added the missing .Os call; it's not strictlyRuslan Ermilov2002-12-111-0/+1
| | | | | | | | | | necessary nowadays, but is documented as "required", and may become so again in the future. Approved by: re Notes: svn path=/head/; revision=107744
* - Only use sig_atomic_t objects in signal handlers.Ruslan Ermilov2001-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 Notes: svn path=/head/; revision=83928
* - Backout botched attempt to intoduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74814
* Set the default manual section for games/ to 6.Ruslan Ermilov2001-03-201-1/+0
| | | | Notes: svn path=/head/; revision=74528
* Remove unneded -ltermcap or -lmytinfoAndrey A. Chernov2000-09-161-2/+2
| | | | Notes: svn path=/head/; revision=65912
* -Wall fixes.Bill Fumerola1999-12-121-0/+1
| | | | Notes: svn path=/head/; revision=54466
* Add curs_set(0) to get rid of that annoying cursor. I also have to evillyBrian Feldman1999-09-181-0/+3
| | | | | | | add $FreeBSD$ so I can commit this. Notes: svn path=/head/; revision=51358
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50472
* Change long variable to time_t where it is passed to time() by reference.John Birrell1998-05-091-1/+1
| | | | Notes: svn path=/head/; revision=35890
* Remove so-called revoke, this game not installed sguidAndrey A. Chernov1997-09-011-4/+0
| | | | Notes: svn path=/head/; revision=29015
* Change games from setuid games to setgid games.Eivind Eklund1997-09-011-0/+4
| | | | | | | | Reviewed by: maybe@yes.no Obtained from: OpenBSD (mostly deraadt@openbsd.org) Notes: svn path=/head/; revision=28979
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22992
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-6/+6
| | | | Notes: svn path=/head/; revision=8856
* gdc -> grdcAndrey A. Chernov1994-12-052-6/+6
| | | | Notes: svn path=/head/; revision=4993
* Re-import with new name, old name conflicts with gatedAndrey A. Chernov1994-12-043-0/+232
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=4974