aboutsummaryrefslogtreecommitdiff
path: root/games/backgammon/common_source
Commit message (Collapse)AuthorAgeFilesLines
* copyright/sccsid/rcsid cleanup.Bill Fumerola1999-11-3010-18/+40
| | | | Notes: svn path=/head/; revision=53920
* Sync our register usage with NetBSD's (non-)usage.Bill Fumerola1999-11-169-71/+70
| | | | Notes: svn path=/head/; revision=53210
* Add $FreeBSD$Bill Fumerola1999-11-169-0/+18
| | | | Notes: svn path=/head/; revision=53209
* Merge a bunch of cleanups from NetBSD.Steve Price1999-04-197-94/+124
| | | | | | | | | PR: 8083 Submitted by: Stephen J. Roznowski <sjr@home.net> Obtained from: a whole slew of NetBSD PRs Notes: svn path=/head/; revision=45801
* Change prototype for addbuf to make it compatible with tputs now thatJohn Birrell1998-05-091-2/+3
| | | | | | | there is a prototype to check it against. Notes: svn path=/head/; revision=35867
* Add #include string.h, stdlib.h and termcap.h to get prototypes.John Birrell1998-05-091-1/+4
| | | | | | | | Change prototype for addbuf to make it compatible with tputs now that there is a prototype to check it against. Notes: svn path=/head/; revision=35866
* Add #include string to get prototypes.John Birrell1998-05-091-0/+1
| | | | Notes: svn path=/head/; revision=35865
* Add 'extern' to those arrays that are declared and initialisedJohn Birrell1998-05-091-3/+3
| | | | | | | in other files. Notes: svn path=/head/; revision=35864
* Remove unused fileAndrey A. Chernov1997-09-241-751/+0
| | | | Notes: svn path=/head/; revision=29837
* Added an option `-h' which gives you usage info.Masafumi Max NAKANE1997-02-151-10/+15
| | | | | | | | (According to the original man page, giving `-' by itself as the argument is supposed to do this, but it seems that it never worked that way.) Notes: svn path=/head/; revision=22735
* Instead of swapping ruid and euid before and after touching user's file,Masafumi Max NAKANE1997-02-011-4/+0
| | | | | | | | simply drop the privilege right after the program is started. Thanks to bde for giving me good suggestion about this problem. Notes: svn path=/head/; revision=22191
* Include string.h for prototype of strdup().Masafumi Max NAKANE1997-02-011-0/+1
| | | | Notes: svn path=/head/; revision=22172
* Style police:Masafumi Max NAKANE1997-01-311-6/+6
| | | | | | | | | | | | - Indentation corrections - Spaces -> tabs. - func() -> func () (To be consistent with the original code.) - Check if getopt() returns -1, not EOF. Suggested by: bde Notes: svn path=/head/; revision=22164
* Better handling of command-line argument:Masafumi Max NAKANE1997-01-303-30/+29
| | | | | | | | | | | | 1. Pass argc and argv to getarg and process them with getopt(). 2. Instead of using an array to save arg characters, use array of pointers and call backgammon/teachgammon with execv, instead of execl. This should fix problems with calling teachgammon. 2.2 candidate. Notes: svn path=/head/; revision=22114
* Oops, setreuid() also needed before and after opening/closing the recover fileMasafumi Max NAKANE1997-01-301-0/+2
| | | | | | | | in recover(). 2.2 candidate. Notes: svn path=/head/; revision=22110
* Do getreuid(geteuid(), getuid()) before opening file to save the game andMasafumi Max NAKANE1997-01-301-0/+2
| | | | | | | | | after closing it. This fixes bug that user couldn't save the game in progress. 2.2 candidate. Notes: svn path=/head/; revision=22109
* When calling recover() from getarg(), also check to see if the firstMasafumi Max NAKANE1997-01-231-1/+1
| | | | | | | | | | | | character of the argument being processed isn't '\0'. This fixes problem with backgammon exiting abnormally when you answer 'y' to the question it asks if you need instruction for the game. 2.2 cnadidate, maybe? Notes: svn path=/head/; revision=21957
* gets() -> fgets(). I'm tired of looking at the compiler messages!Jordan K. Hubbard1995-12-011-6/+6
| | | | Notes: svn path=/head/; revision=12551
* Remove trailing whitespace.Rodney W. Grimes1995-05-305-14/+14
| | | | Notes: svn path=/head/; revision=8856
* Bring in the 4.4 Lite games directory, modulo man page changes and segregationJordan K. Hubbard1994-09-0412-0/+3381
of the x11 based games. I'm not going to tag the originals with bsd_44_lite and do this in two stages since it's just not worth it for this collection, and I've got directory renames to deal with that way. Bleah. Submitted by: jkh Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=2490