summaryrefslogtreecommitdiffstats
path: root/games/random (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - General changes:mestre2016-03-071-3/+3
| | | | | | | | | | | | - Remove -? from getopt(3) options, but still keep (or add) -h where applicable - Replace hardcoded program strings by getprogname(3) - Specific changes: - atc(6): this used -? and -u for usage(), remove both from game and manpage - bcd(6): use __progname instead of getprogname(3), no need to include stdlib.h - hunt(6): replace fputs(3) by fprintf(3) OK tb@ after his suggestions
* As per style(9), remove remaining lint-style comments from games/mestre2016-01-101-3/+1
| | | | OK tb@
* Some basic code maintenance in games/tb2016-01-071-2/+2
| | | | | | | | | | - in main() replace exit with return - drop some /* NOTREACHED */ lint comments along the way. - make more use of standard CFLAGS, esp. -Wimplicit-function-declaration - add and sort some headers when needed - add straightforward pledges to some programs used at compile time discussed with and ok mestre@
* More headers removal and sorted the remaining alphabetically.mestre2016-01-041-4/+1
| | | | | | | | | Most noticeable that were removed are sys/types.h which will be included from stdlib.h and in turn also brings along sys/cdefs.h. The other one is limits.h that was used with the old idiom (denom * random() / LONG_MAX), although it was only removed were applicable (some files still need that header). OK tb@
* About 13 years ago when the idiom srandom(time()), and sometimesmestre2016-01-031-4/+1
| | | | | | | | | | | | srandom(time()+getpid()), was changed by srandomdev(), but #include <time.h> lived up until this day so remove it. Additionally, earlier than that, 18 years ago, random(6) was one of the first consumers of arc4random(3) family, and was pulling it from dev/rndvar.h but these days we pull it from stdlib.h, which is already done, so while here remove dev/rndvar.h also. "seems comprehensive to me" deraadt@ and OK tb@
* Declare usage() functions as __dead void, if they don't return, on games section.mestre2015-12-251-2/+2
| | | | | | Found another one in arithmetic(6) which also didn't return, and removed a function from number(6) which is not used anymore. OK tb@
* replace setbuf with setvbuf, from Frederic Nowaktedu2015-11-041-2/+2
|
* Pledge "stdio" for simple games.doug2015-10-141-1/+4
| | | | ok semarie@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-15/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* Use arc4random_buf() when requesting more than a single word of outputdjm2008-04-131-5/+5
| | | | | | | Use arc4random_uniform() when the desired random number upper bound is not a power of two ok deraadt@ millert@
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* more ansi; khalek@linuxgamers.netderaadt2004-07-101-6/+4
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-032-13/+5
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* No dm -> no need to revoke setegid.pjanzen2002-05-311-6/+2
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-3/+3
|
* remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonaaron1999-05-231-2/+2
| | | | is used instead; kwesterback@home.com
* Always provide an argument to .Nm in SYNOPSIS sectionpjanzen1998-12-151-2/+2
|
* Don't capitalize game names at the beginning of sentences.pjanzen1998-11-291-2/+2
|
* More largely NetBSD-inspired code cleanuppjanzen1998-08-222-7/+7
|
* use arc4randomkstailey1997-10-011-8/+6
|
* $OpenBSD$deraadt1997-09-211-2/+1
|
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-1/+1
|
* proper gid revokederaadt1996-12-221-0/+2
|
* setgid games, not setuid games. closes a neat set of holesderaadt1996-12-191-0/+2
|
* initial import of NetBSD treederaadt1995-10-183-0/+233