]>
git.cameronkatri.com Git - bsdgames-darwin.git/log
christos [Wed, 11 Nov 2020 19:55:33 +0000 (19:55 +0000)]
use strchr, strrchr, random, more lint removal, savefile in /var/games/warp
not /usr/share/games/warp...
christos [Wed, 11 Nov 2020 19:54:53 +0000 (19:54 +0000)]
no need for -lcompat
christos [Wed, 11 Nov 2020 17:11:19 +0000 (17:11 +0000)]
- use termios
- enable setgid games
- enable savedir
kamil [Wed, 11 Nov 2020 11:54:42 +0000 (11:54 +0000)]
Fix the old leftover license note
Larry Wall: "I outgrew commercial-free licensing about 30 years ago."
christos [Tue, 10 Nov 2020 23:32:33 +0000 (23:32 +0000)]
remove error(1) comments
christos [Tue, 10 Nov 2020 23:03:22 +0000 (23:03 +0000)]
Antivaxer support.
christos [Tue, 10 Nov 2020 22:56:49 +0000 (22:56 +0000)]
can't have config.h and config.H in case-preserving but case-folding file-systems.
christos [Tue, 10 Nov 2020 22:52:45 +0000 (22:52 +0000)]
don't segv if the terminal is too big.
christos [Tue, 10 Nov 2020 22:52:32 +0000 (22:52 +0000)]
pray-tell where are you trying to write?
christos [Tue, 10 Nov 2020 22:42:19 +0000 (22:42 +0000)]
Time warp forward 34 years so that it compiles (but not work)
kamil [Tue, 10 Nov 2020 11:29:29 +0000 (11:29 +0000)]
Remove the smap.* files
They are generated during the build.
kamil [Tue, 10 Nov 2020 08:49:08 +0000 (08:49 +0000)]
Integrate Warp Kit into the NetBSD build
Fix the build and make it install and run with minimal required changes.
kamil [Tue, 10 Nov 2020 00:02:11 +0000 (00:02 +0000)]
Reset CVS keywords
kamil [Mon, 9 Nov 2020 23:37:05 +0000 (23:37 +0000)]
Add Warp Kit, Version 7.0 by Larry Wall
Warp is a real-time space war game that doesn't get boring very quickly.
Read warp.doc and the manual page for more information.
games/warp originally distributed with 4.3BSD-Reno, is back to the BSD
world via NetBSD. Its remnants were still mentioned in games/Makefile.
Larry Wall, the original author and the copyright holder, generously
donated the game and copyright to The NetBSD Foundation, Inc.
Import the game sources as-is from 4.3BSD-Reno, with the cession
of the copyright and license to BSD-2-clause NetBSD-style.
Signed-off-by: Larry Wall <larry@wall.org>
Signed-off-by: Kamil Rytarowski <kamil@netbsd.org>
dholland [Mon, 9 Nov 2020 03:23:14 +0000 (03:23 +0000)]
Restore the catman joke.
It needs the (8), or it fails to work for people who don't know or had
forgotten catman(8) was ever a thing.
as the de facto fortunes editor and also I think the person who added
that fortune in the first place, and given the discussion in
tech-userlevel, I think I get to do this.
kamil [Mon, 9 Nov 2020 00:46:00 +0000 (00:46 +0000)]
Revert to the original phrasing, but remove the man 8 section reference.
catman is a historical Unix tool.
kamil [Sun, 8 Nov 2020 17:37:29 +0000 (17:37 +0000)]
catman(8) is a past thing
simonb [Fri, 30 Oct 2020 04:56:32 +0000 (04:56 +0000)]
Add one.
nia [Wed, 14 Oct 2020 18:32:04 +0000 (18:32 +0000)]
rain(6): Make the default delay useful for modern terminals
nia [Wed, 14 Oct 2020 07:32:53 +0000 (07:32 +0000)]
worms(6): Use a reasonable default delay for non-1980s terminals.
This is still fast, but not unreasonably fast.
christos [Mon, 12 Oct 2020 13:54:51 +0000 (13:54 +0000)]
- remove duplicate comment
- flush after printing the number
(from kre@)
christos [Mon, 12 Oct 2020 13:53:43 +0000 (13:53 +0000)]
more clarifications.
christos [Sun, 11 Oct 2020 18:48:20 +0000 (18:48 +0000)]
mention hex numbers
christos [Sun, 11 Oct 2020 18:46:21 +0000 (18:46 +0000)]
Remove is_hex_str() (trying to guess if a number was hex or not). It is not
documented and can lead to unexpected behavior.
christos [Sun, 11 Oct 2020 17:18:34 +0000 (17:18 +0000)]
From gson@
- don't assume -h is always on for large factors
- fix saved large factors printing when -h
christos [Wed, 7 Oct 2020 19:48:29 +0000 (19:48 +0000)]
- for readability when the exponent < 10 don't prefix it with 0x (from kre)
- fix usage
- merge printing code.
christos [Mon, 5 Oct 2020 21:11:47 +0000 (21:11 +0000)]
PR/55695: Andreas Gustafsson: factor(6) -h option doesn't always work
Handle -h for factors greater than the primes table.
christos [Mon, 5 Oct 2020 14:31:30 +0000 (14:31 +0000)]
revert previous and don't parse octal
tnn [Mon, 5 Oct 2020 12:22:49 +0000 (12:22 +0000)]
factor: usage(): mark __dead
christos [Sun, 4 Oct 2020 19:32:15 +0000 (19:32 +0000)]
- Accept octal input.
- Don't play with the original string so we can print it.
kre [Sun, 4 Oct 2020 14:22:52 +0000 (14:22 +0000)]
Fix a typo (s/int/in/)
christos [Sat, 3 Oct 2020 22:27:00 +0000 (22:27 +0000)]
PR/55693: Andreas Gustafsson: factor(6) lists factors in wrong order
Sync with FreeBSD and change their -h (that printed hex) to -x because
we were already using -h.
mrg [Mon, 7 Sep 2020 00:31:11 +0000 (00:31 +0000)]
avoid uninit memory and use memmove vs strncpy for a will be
truncated on purpose string.
mrg [Sun, 6 Sep 2020 10:51:20 +0000 (10:51 +0000)]
apply ${GCC_NO_FORMAT_TRUNCATION} to scores.c
msaitoh [Wed, 19 Aug 2020 02:19:06 +0000 (02:19 +0000)]
s/ be be / be /
nia [Sun, 26 Jul 2020 15:38:22 +0000 (15:38 +0000)]
robots: Use arc4random_uniform for better uniform distribution
nia [Sun, 26 Jul 2020 15:24:00 +0000 (15:24 +0000)]
random(6): Use arc4random_uniform to simplify code
nia [Sun, 26 Jul 2020 15:14:09 +0000 (15:14 +0000)]
Revert arc4random usage for now
this is a host tool and needs to be portable
future plans: add arc4random to libnbcompat
nia [Tue, 21 Jul 2020 03:05:40 +0000 (03:05 +0000)]
fortune: arc4random_uniform for better uniform values than random() % ...
nia [Tue, 21 Jul 2020 02:42:05 +0000 (02:42 +0000)]
tetris: Use arc4random_uniform instead of modulo for better randomness
dholland [Sun, 12 Jul 2020 02:34:54 +0000 (02:34 +0000)]
Avoid messing up the display when too many letters are guessed at once.
The field to put them in was made 26 characters wide... but includes
the string "Guessed: ". So if you get to 17 it wraps to the next line
and clreol()'s it. Instead, when reaching this point step on the
"Guessed:" string instead.
Reported by phil@.
rillig [Thu, 2 Jul 2020 19:11:01 +0000 (19:11 +0000)]
cgram(6): use standard cursor keys, use standard shuffle algorithm
The previous shuffle algorithm asked for 100 random numbers, on average.
The new algorithm asks exactly for 26 random numbers.
Curses predefines numeric constants for keys, and there is no apparent
reason not to use these standard keys for cursor movement.
sevan [Mon, 15 Jun 2020 12:57:51 +0000 (12:57 +0000)]
A revision of "The purpose of computing is insight, not numbers" by
Richard Hamming.
From The Art of Doing Science and Engineering
leot [Sun, 7 Jun 2020 15:41:03 +0000 (15:41 +0000)]
Recommend using `pkg_admin {fetch-pkg-vulnerabilities,audit}' instead of
{download-vulnerability-list,audit-packages}.
leot [Sun, 7 Jun 2020 15:37:04 +0000 (15:37 +0000)]
Properly quote printf string
Noticed by Ottavio Caruso on #netbsd@Freenode, thanks!
sevan [Mon, 18 May 2020 20:19:08 +0000 (20:19 +0000)]
Heads up on Bell patents
P21 on https://minnie.tuhs.org/Archive/Documentation/AUUGN/AUUGN-V01.1.pdf
msaitoh [Thu, 14 May 2020 08:34:17 +0000 (08:34 +0000)]
Remove extra semicolon.
christos [Thu, 30 Apr 2020 12:40:11 +0000 (12:40 +0000)]
Simplify, little KNF
christos [Thu, 30 Apr 2020 12:32:26 +0000 (12:32 +0000)]
Simplify, errors to stderr.
nia [Wed, 29 Apr 2020 21:00:42 +0000 (21:00 +0000)]
unstr: Check that the input filename fits in the buffer.
nia [Wed, 29 Apr 2020 20:45:05 +0000 (20:45 +0000)]
strfile: Check that input/output filenames don't exceed the buffer size
joerg [Wed, 22 Apr 2020 23:36:26 +0000 (23:36 +0000)]
buffnum is shared between subs.c and fancy.c
sevan [Thu, 2 Apr 2020 05:55:02 +0000 (05:55 +0000)]
Disks can sense vibes, DTrace confirms it.
https://youtu.be/tDacjrSCeq4
sevan [Sat, 22 Feb 2020 19:03:04 +0000 (19:03 +0000)]
Andrew Weatherall's tattoo and a track on A Pox On The Pioneers album.
https://pbs.twimg.com/media/ERAuddhU4AAFv3w?format=jpg&name=orig
Story:
https://www.dummymag.com/features/andrew-weatherall-interview-it-s-bollocks-it-s-discos-tell-me-tales-of-the/
dholland [Sun, 16 Feb 2020 23:14:19 +0000 (23:14 +0000)]
something I apparently forgot to commit months or years ago
fox [Sat, 8 Feb 2020 00:59:55 +0000 (00:59 +0000)]
games/hack: Suppress -Werror=stringop-truncation error.
Add GCC_NO_STRINGOP_TRUNCATION to hack.end.c to prevent build failure.
Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.
Reviewed by: kamil@
fox [Fri, 7 Feb 2020 22:04:02 +0000 (22:04 +0000)]
games/hack: Revert the strlcpy(1) change since this changes expected behavior from strncpy(3).
Reviewed by: kamil@
fox [Fri, 7 Feb 2020 20:34:18 +0000 (20:34 +0000)]
games/hack: Fix -Wstringop-truncation warning.
Replace strncpy(3) with strlcpy(3).
Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.
Reviewed by: kamil@
fox [Thu, 6 Feb 2020 22:09:43 +0000 (22:09 +0000)]
games/battlestar: Replace snprintf(3) with strlcpy(3) for better performance.
Reviewed by: kamil@
fox [Wed, 5 Feb 2020 20:11:54 +0000 (20:11 +0000)]
games/battlestar: Fix the -Werror=restrict warning.
Replace strcpy(1) with the safer snprintf(3) which guarantees NULL
termination of strings.
Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.
Reviewed by: kamil@
msaitoh [Fri, 27 Dec 2019 09:17:59 +0000 (09:17 +0000)]
s/saftey/safety/
msaitoh [Fri, 27 Dec 2019 07:41:22 +0000 (07:41 +0000)]
s/opration/operation/
sevan [Tue, 3 Dec 2019 22:42:29 +0000 (22:42 +0000)]
Introspection. From "Surely You're Joking, Mr. Feynman!"
sevan [Sun, 10 Nov 2019 22:42:21 +0000 (22:42 +0000)]
https://twitter.com/sei6r/status/
1182433546331279360
sevan [Sun, 10 Nov 2019 00:54:57 +0000 (00:54 +0000)]
Definition of austerity by Alexei Sayle on Radio 4
https://web.archive.org/web/
20190916192807 /https://www.bbc.co.uk/sounds/play/m0008bbc
christos [Tue, 29 Oct 2019 21:30:42 +0000 (21:30 +0000)]
Gcc-8 bug confusion with restrict on sh3
sevan [Sun, 27 Oct 2019 23:31:15 +0000 (23:31 +0000)]
Chris' happiest moment
http://bbc.co.uk/programmes/b09b1zbb
mrg [Sun, 13 Oct 2019 07:42:57 +0000 (07:42 +0000)]
adjust a fallthru comment and add a missing break.
mrg [Sun, 13 Oct 2019 07:28:04 +0000 (07:28 +0000)]
introduce some common variables for use in GCC warning disables:
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)
use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.
we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
mrg [Sat, 5 Oct 2019 23:34:14 +0000 (23:34 +0000)]
expand the internal consistency checks in truedirec() to avoid
fallthrough cases. now if direction turns up wrong (it should
not, but this code can't tell that, and convert it to an enum
that would also fix this, is more effort than this is worth.
mrg [Sun, 29 Sep 2019 23:44:58 +0000 (23:44 +0000)]
convert HAVE_GCC == 7 to HAVE_GCC >= 7.
wiz [Mon, 2 Sep 2019 08:26:00 +0000 (08:26 +0000)]
End sentence with a dot.
sevan [Sun, 1 Sep 2019 22:50:11 +0000 (22:50 +0000)]
Document history.
https://www.bell-labs.com/usr/dmr/www/man11.pdf
Between v1 & v6 UNIX, bcd was rewritten in C, but I don't know if which version,
hence I've skipped mentioning it.
sevan [Thu, 22 Aug 2019 22:51:47 +0000 (22:51 +0000)]
Donnie Darko
sevan [Fri, 26 Jul 2019 07:41:22 +0000 (07:41 +0000)]
The mother of all demos
uwe [Tue, 23 Jul 2019 11:02:29 +0000 (11:02 +0000)]
Use .Dl for displays with single command. Specify .Bl -width with the
same formatting as the actual tags.
uwe [Tue, 23 Jul 2019 10:40:55 +0000 (10:40 +0000)]
strfile is installed, don't claim it isn't.
uwe [Tue, 23 Jul 2019 09:50:27 +0000 (09:50 +0000)]
Prettify formatting.
sevan [Mon, 22 Jul 2019 13:44:13 +0000 (13:44 +0000)]
Use double dash to simulate em dash
sevan [Mon, 22 Jul 2019 13:37:37 +0000 (13:37 +0000)]
Use \(em to get an emphasis dash
sevan [Mon, 22 Jul 2019 09:47:28 +0000 (09:47 +0000)]
Art for the masses - The Dream Machine
The text used an em dash which I've replaced with a coma here.
pgoyette [Tue, 19 Mar 2019 00:11:34 +0000 (00:11 +0000)]
Report the users score _after_ the game has ended and the screen has
been restored to pre-game state. Otherwise, the user gets a message
that their score did (or more likely, did not) improve over their
previous score, yet the user has no indication of what the current
score actually was!
sevan [Sun, 24 Feb 2019 12:34:00 +0000 (12:34 +0000)]
Shorter than a season - The Soul Of A New Machine
christos [Mon, 18 Feb 2019 19:35:44 +0000 (19:35 +0000)]
add fallthrough
mrg [Mon, 4 Feb 2019 09:51:47 +0000 (09:51 +0000)]
apply -Wno-error=implicit-fallthrough on files that have fallthru
comments but are missed by the current checker.
mrg [Mon, 4 Feb 2019 03:33:15 +0000 (03:33 +0000)]
- done() can return in wizard mode. don't NOTREACHED'd it
but break instead.
mrg [Mon, 4 Feb 2019 03:29:41 +0000 (03:29 +0000)]
- 'cango' is used beyond a bool type. make it an int.
- add a couple of fallthru comments.
mrg [Sun, 3 Feb 2019 10:48:46 +0000 (10:48 +0000)]
- enlarge buffer to avoid snprintf() truncation
mrg [Sun, 3 Feb 2019 10:45:58 +0000 (10:45 +0000)]
- avoid multipling a boolean value, use &&.
mrg [Sun, 3 Feb 2019 03:19:25 +0000 (03:19 +0000)]
- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily
sevan [Mon, 21 Jan 2019 16:58:47 +0000 (16:58 +0000)]
Add Alfred North Whitehead quote.
jakllsch [Sun, 13 Jan 2019 17:55:03 +0000 (17:55 +0000)]
Incite the "Purple Cow" wrath of Gelett Burgess upon ourselves.
pgoyette [Sat, 15 Dec 2018 22:00:16 +0000 (22:00 +0000)]
More appropriate line-wrapping for previous.
sevan [Sat, 15 Dec 2018 17:11:10 +0000 (17:11 +0000)]
Some advice from Adam Savage / Alex Jason
https://www.reddit.com/r/mythbusters/comments/3wgqgv/the_origin_of_the_remember_kids_the_only/
sevan [Wed, 3 Oct 2018 00:13:16 +0000 (00:13 +0000)]
Advice from Bob Morris
https://www.ieee-security.org/Cipher/ConfReports/conf-rep-Crypto95.html
sevan [Wed, 12 Sep 2018 22:10:07 +0000 (22:10 +0000)]
I've been on an Ed Wood binge.
maxv [Sun, 2 Sep 2018 16:08:12 +0000 (16:08 +0000)]
replace ipf->npf
dholland [Sat, 25 Aug 2018 19:38:37 +0000 (19:38 +0000)]
typo
maya [Thu, 16 Aug 2018 13:31:04 +0000 (13:31 +0000)]
Try freebsd's pkg-info as well
From John Hein, via Nikolai Lifanov. PR misc/52684
mrg [Sun, 24 Jun 2018 12:55:36 +0000 (12:55 +0000)]
fix the previous. the code was right, just badly formatted before.
should fix infinite loops reported in some cases.