summaryrefslogtreecommitdiff
path: root/games/bs/bs.c
AgeCommit message (Expand)Author
2021-10-23if both stdout and stderr are redirected to a non-tty, pledge(2) will killRicardo Mestre
2018-08-24Remove a few too early pledge(2)s on games/ and apply them a little bit laterRicardo Mestre
2018-08-05remove duplicate installation of the SIGINT handler;Ingo Schwarze
2016-03-07- General changes:mestre
2016-01-10Remove needless casts to (char *) NULL. Some were kept, namely for execl(3)mestre
2016-01-08Remove unnecessary headers an sortmestre
2016-01-07Some basic code maintenance in games/tb
2016-01-03About 13 years ago when the idiom srandom(time()), and sometimesmestre
2015-12-26Set as __dead a few more functions, that don't return, on games/mestre
2015-12-25Apply some more KNF to the declaration of functions, but keep style to the re...mestre
2015-12-24Function prototypes and a little bit of KNF.tb
2015-12-04assume modern curses and unifdef ancient feature testsTed Unangst
2015-11-30pledge "stdio rpath tty" for bstb
2015-10-24Cast toupper()'s argument to unsigned char.mmcc
2015-09-27Make prompt() properly printf-like, eliminating empty dummy argsPhilip Guenther
2015-02-18improve ship placement interface. per the instructions, 2468 should work,Ted Unangst
2014-11-16Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,Philip Guenther
2014-07-12mlarkin found disabled code to print a battleship. improve it and enable.Ted Unangst
2013-08-29replace srandomdev()+random() with the arc4random*() familyChristian Weisgerber
2009-11-14Use getopt() to parse the argument list, shrinking the code andPhilip Guenthe
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2009-10-17sort flags; "usage:" is lowercase.Igor Sobrado
2003-06-11Original author agreed to permit bs to be released under BSD license.Paul Janzen
2003-05-19Remove #ifdef'ed out unnecessary defines.Paul Janzen
2002-12-06Replace things like srandom(time(NULL)) with srandomdev(3). random(3)Todd C. Miller
2002-08-09Only target in the playing field when using mouse.Paul Janzen
2002-08-09Fix an error in the CPU random fire routine that could cause a segfault.Paul Janzen
2002-08-09Bug fix in random placement code from Erik Sigra.Paul Janzen
2002-05-31de-registerPaul Janzen
2002-05-31No dm -> no need to revoke setegid.Paul Janzen
2002-02-18more signed char issuesTheo de Raadt
2001-06-23Make sure screen is big enough to play.Paul Janzen
2001-02-17long usernames, and some -Wall-agePaul Janzen
2000-09-08bools should only be TRUE or FALSE. Negative numbers are right out.Paul Janzen
2000-07-23Handle EOF on stdin.Paul Janzen
1998-03-12OpenBSD rscid and proper gid revoke (again)Paul Janzen
1998-03-12Bugfixes and strategical improvementsPaul Janzen
1997-07-23tabifykstailey
1997-02-14Use standard header files instead of declaring system funcs explicitlyNiklas Hallqvist
1996-12-22proper gid revokeTheo de Raadt
1996-12-19setgid games, not setuid games. closes a neat set of holesTheo de Raadt
1996-08-21battleships, from FreeBSDJason Downs