christos
e8edee0bb7
remove error(1) comments
2020-11-10 23:32:33 +00:00
christos
17184abace
Antivaxer support.
2020-11-10 23:03:22 +00:00
christos
b90df07acf
can't have config.h and config.H in case-preserving but case-folding file-systems.
2020-11-10 22:56:49 +00:00
christos
ccdf7d95e3
don't segv if the terminal is too big.
2020-11-10 22:52:45 +00:00
christos
e123ae1b57
pray-tell where are you trying to write?
2020-11-10 22:52:32 +00:00
christos
e7d77274fb
Time warp forward 34 years so that it compiles (but not work)
2020-11-10 22:42:19 +00:00
kamil
deb8b2cb72
Remove the smap.* files
...
They are generated during the build.
2020-11-10 11:29:29 +00:00
kamil
2710a02cd6
Integrate Warp Kit into the NetBSD build
...
Fix the build and make it install and run with minimal required changes.
2020-11-10 08:49:08 +00:00
kamil
653de20730
Reset CVS keywords
2020-11-10 00:02:11 +00:00
kamil
59ba73f691
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>
2020-11-09 23:37:05 +00:00
dholland
386c99328f
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.
2020-11-09 03:23:14 +00:00
kamil
fa5b5b5087
Revert to the original phrasing, but remove the man 8 section reference.
...
catman is a historical Unix tool.
2020-11-09 00:46:00 +00:00
kamil
dfc109fe43
catman(8) is a past thing
2020-11-08 17:37:29 +00:00
simonb
2286c9861b
Add one.
2020-10-30 04:56:32 +00:00
nia
8f725d8695
rain(6): Make the default delay useful for modern terminals
2020-10-14 18:32:04 +00:00
nia
7aac251b81
worms(6): Use a reasonable default delay for non-1980s terminals.
...
This is still fast, but not unreasonably fast.
2020-10-14 07:32:53 +00:00
christos
5d858a7a6b
- remove duplicate comment
...
- flush after printing the number
(from kre@)
2020-10-12 13:54:51 +00:00
christos
c6669ee4d0
more clarifications.
2020-10-12 13:53:43 +00:00
christos
df7f34cf57
mention hex numbers
2020-10-11 18:48:20 +00:00
christos
662c0e244b
Remove is_hex_str() (trying to guess if a number was hex or not). It is not
...
documented and can lead to unexpected behavior.
2020-10-11 18:46:21 +00:00
christos
f1aebb0c36
From gson@
...
- don't assume -h is always on for large factors
- fix saved large factors printing when -h
2020-10-11 17:18:34 +00:00
christos
0540874be3
- for readability when the exponent < 10 don't prefix it with 0x (from kre)
...
- fix usage
- merge printing code.
2020-10-07 19:48:29 +00:00
christos
c5aeb8a719
PR/55695: Andreas Gustafsson: factor(6) -h option doesn't always work
...
Handle -h for factors greater than the primes table.
2020-10-05 21:11:47 +00:00
christos
a17b1cd2d7
revert previous and don't parse octal
2020-10-05 14:31:30 +00:00
tnn
7f481043e4
factor: usage(): mark __dead
2020-10-05 12:22:49 +00:00
christos
2c61d0e8cd
- Accept octal input.
...
- Don't play with the original string so we can print it.
2020-10-04 19:32:15 +00:00
kre
5bbbc6a94d
Fix a typo (s/int/in/)
2020-10-04 14:22:52 +00:00
christos
5e85fe34cc
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.
2020-10-03 22:27:00 +00:00
mrg
1ff60d1f84
avoid uninit memory and use memmove vs strncpy for a will be
...
truncated on purpose string.
2020-09-07 00:31:11 +00:00
mrg
07f014edcb
apply ${GCC_NO_FORMAT_TRUNCATION} to scores.c
2020-09-06 10:51:20 +00:00
msaitoh
cc67c5474a
s/ be be / be /
2020-08-19 02:19:06 +00:00
nia
42708011d3
robots: Use arc4random_uniform for better uniform distribution
2020-07-26 15:38:22 +00:00
nia
e54fc04f5a
random(6): Use arc4random_uniform to simplify code
2020-07-26 15:24:00 +00:00
nia
e59dc3e7bc
Revert arc4random usage for now
...
this is a host tool and needs to be portable
future plans: add arc4random to libnbcompat
2020-07-26 15:14:09 +00:00
nia
6e4479f819
fortune: arc4random_uniform for better uniform values than random() % ...
2020-07-21 03:05:40 +00:00
nia
6ad85e2cf9
tetris: Use arc4random_uniform instead of modulo for better randomness
2020-07-21 02:42:05 +00:00
dholland
7ca3fbbe70
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@.
2020-07-12 02:34:54 +00:00
rillig
e8699354fb
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.
2020-07-02 19:11:01 +00:00
sevan
328e83a3c0
A revision of "The purpose of computing is insight, not numbers" by
...
Richard Hamming.
From The Art of Doing Science and Engineering
2020-06-15 12:57:51 +00:00
leot
5cd696c2e3
Recommend using `pkg_admin {fetch-pkg-vulnerabilities,audit}' instead of
...
{download-vulnerability-list,audit-packages}.
2020-06-07 15:41:03 +00:00
leot
3acc7de7ef
Properly quote printf string
...
Noticed by Ottavio Caruso on #netbsd@Freenode, thanks!
2020-06-07 15:37:04 +00:00
sevan
dc34a600e7
Heads up on Bell patents
...
P21 on https://minnie.tuhs.org/Archive/Documentation/AUUGN/AUUGN-V01.1.pdf
2020-05-18 20:19:08 +00:00
msaitoh
8012ca3f0e
Remove extra semicolon.
2020-05-14 08:34:17 +00:00
christos
58acbfa340
Simplify, little KNF
2020-04-30 12:40:11 +00:00
christos
8e08aa4add
Simplify, errors to stderr.
2020-04-30 12:32:26 +00:00
nia
669bbdba3b
unstr: Check that the input filename fits in the buffer.
2020-04-29 21:00:42 +00:00
nia
5774e6823b
strfile: Check that input/output filenames don't exceed the buffer size
2020-04-29 20:45:05 +00:00
joerg
adc9d2a05f
buffnum is shared between subs.c and fancy.c
2020-04-22 23:36:26 +00:00
sevan
12fff5803d
Disks can sense vibes, DTrace confirms it.
...
https://youtu.be/tDacjrSCeq4
2020-04-02 05:55:02 +00:00
sevan
8744e0a0e1
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/
2020-02-22 19:03:04 +00:00
dholland
4fb51600fe
something I apparently forgot to commit months or years ago
2020-02-16 23:14:19 +00:00
fox
0056d140e3
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@
2020-02-08 00:59:55 +00:00
fox
a0c9b60242
games/hack: Revert the strlcpy(1) change since this changes expected behavior from strncpy(3).
...
Reviewed by: kamil@
2020-02-07 22:04:02 +00:00
fox
f183a7a695
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@
2020-02-07 20:34:18 +00:00
fox
c0ad960a60
games/battlestar: Replace snprintf(3) with strlcpy(3) for better performance.
...
Reviewed by: kamil@
2020-02-06 22:09:43 +00:00
fox
19f84ebb48
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@
2020-02-05 20:11:54 +00:00
msaitoh
25c7ba7c6d
s/saftey/safety/
2019-12-27 09:17:59 +00:00
msaitoh
88af233251
s/opration/operation/
2019-12-27 07:41:22 +00:00
sevan
a0e35b2411
Introspection. From "Surely You're Joking, Mr. Feynman!"
2019-12-03 22:42:29 +00:00
sevan
cacc7f27a4
https://twitter.com/sei6r/status/1182433546331279360
2019-11-10 22:42:21 +00:00
sevan
700433206f
Definition of austerity by Alexei Sayle on Radio 4
...
https://web.archive.org/web/20190916192807/https://www.bbc.co.uk/sounds/play/m0008bbc
2019-11-10 00:54:57 +00:00
christos
0e5c7640e2
Gcc-8 bug confusion with restrict on sh3
2019-10-29 21:30:42 +00:00
sevan
31c9b97559
Chris' happiest moment
...
http://bbc.co.uk/programmes/b09b1zbb
2019-10-27 23:31:15 +00:00
mrg
b609b30b6c
adjust a fallthru comment and add a missing break.
2019-10-13 07:42:57 +00:00
mrg
de11d87641
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."
2019-10-13 07:28:04 +00:00
mrg
c8bf876ced
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.
2019-10-05 23:34:14 +00:00
mrg
21303c93e9
convert HAVE_GCC == 7 to HAVE_GCC >= 7.
2019-09-29 23:44:58 +00:00
wiz
576c8e30e1
End sentence with a dot.
2019-09-02 08:26:00 +00:00
sevan
b9c252d754
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.
2019-09-01 22:50:11 +00:00
sevan
8f2c65b576
Donnie Darko
2019-08-22 22:51:47 +00:00
sevan
608899cdf4
The mother of all demos
2019-07-26 07:41:22 +00:00
uwe
f9f52b4a0c
Use .Dl for displays with single command. Specify .Bl -width with the
...
same formatting as the actual tags.
2019-07-23 11:02:29 +00:00
uwe
800ba6691b
strfile is installed, don't claim it isn't.
2019-07-23 10:40:55 +00:00
uwe
4d25743b11
Prettify formatting.
2019-07-23 09:50:27 +00:00
sevan
26965a4a65
Use double dash to simulate em dash
2019-07-22 13:44:13 +00:00
sevan
cef2b4ad5b
Use \(em to get an emphasis dash
2019-07-22 13:37:37 +00:00
sevan
a99bcdece4
Art for the masses - The Dream Machine
...
The text used an em dash which I've replaced with a coma here.
2019-07-22 09:47:28 +00:00
pgoyette
a9c53af5cf
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!
2019-03-19 00:11:34 +00:00
sevan
9c44dd6276
Shorter than a season - The Soul Of A New Machine
2019-02-24 12:34:00 +00:00
christos
7a986b99ab
add fallthrough
2019-02-18 19:35:44 +00:00
mrg
a5ca97c6e5
apply -Wno-error=implicit-fallthrough on files that have fallthru
...
comments but are missed by the current checker.
2019-02-04 09:51:47 +00:00
mrg
9c07d7ddd1
- done() can return in wizard mode. don't NOTREACHED'd it
...
but break instead.
2019-02-04 03:33:15 +00:00
mrg
c543d06770
- 'cango' is used beyond a bool type. make it an int.
...
- add a couple of fallthru comments.
2019-02-04 03:29:41 +00:00
mrg
37649e4074
- enlarge buffer to avoid snprintf() truncation
2019-02-03 10:48:46 +00:00
mrg
770680b518
- avoid multipling a boolean value, use &&.
2019-02-03 10:45:58 +00:00
mrg
fbffadb9f8
- 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
2019-02-03 03:19:25 +00:00
sevan
f555b79219
Add Alfred North Whitehead quote.
2019-01-21 16:58:47 +00:00
jakllsch
6835f27c8d
Incite the "Purple Cow" wrath of Gelett Burgess upon ourselves.
2019-01-13 17:55:03 +00:00
pgoyette
3b35ba0696
More appropriate line-wrapping for previous.
2018-12-15 22:00:16 +00:00
sevan
92d227ffa8
Some advice from Adam Savage / Alex Jason
...
https://www.reddit.com/r/mythbusters/comments/3wgqgv/the_origin_of_the_remember_kids_the_only/
2018-12-15 17:11:10 +00:00
sevan
a2bcc5e795
Advice from Bob Morris
...
https://www.ieee-security.org/Cipher/ConfReports/conf-rep-Crypto95.html
2018-10-03 00:13:16 +00:00
sevan
cf2901fc1a
I've been on an Ed Wood binge.
2018-09-12 22:10:07 +00:00
maxv
782aa42924
replace ipf->npf
2018-09-02 16:08:12 +00:00
dholland
6f6568e389
typo
2018-08-25 19:38:37 +00:00
maya
cdbb5491cb
Try freebsd's pkg-info as well
...
From John Hein, via Nikolai Lifanov. PR misc/52684
2018-08-16 13:31:04 +00:00
mrg
240adcf578
fix the previous. the code was right, just badly formatted before.
...
should fix infinite loops reported in some cases.
2018-06-24 12:55:36 +00:00
kamil
1c426e1841
Restore the MKGROFF=bo MKCXX=yes build
...
Mark the documentation in dc(1), gprof(1), rogue(6) and fsck_ffs(8) with
the .roff flag in SUBDIR.
Sponsored by <The NetBSD Foundation>
2018-06-11 14:18:16 +00:00
christos
2357fc5dd5
use SUBDIR.roff suggested by uwe@
2018-06-10 17:55:11 +00:00
snj
9e98533ad3
make fortune fatter
2018-05-08 05:24:22 +00:00
christos
bf7113376a
Create a new bsd.hostinit.mk file and put the build definitions for all host
...
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
2018-05-01 19:59:42 +00:00