summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Accept octal input.christos2020-10-041-5/+6
| | | - Don't play with the original string so we can print it.
* Fix a typo (s/int/in/)kre2020-10-041-2/+2
|
* PR/55693: Andreas Gustafsson: factor(6) lists factors in wrong orderchristos2020-10-032-188/+231
| | | | Sync with FreeBSD and change their -h (that printed hex) to -x because we were already using -h.
* avoid uninit memory and use memmove vs strncpy for a will bemrg2020-09-071-3/+3
| | | truncated on purpose string.
* apply ${GCC_NO_FORMAT_TRUNCATION} to scores.cmrg2020-09-061-1/+2
|
* s/ be be / be /msaitoh2020-08-192-2/+2
|
* robots: Use arc4random_uniform for better uniform distributionnia2020-07-262-16/+6
|
* random(6): Use arc4random_uniform to simplify codenia2020-07-261-9/+5
|
* Revert arc4random usage for nownia2020-07-261-3/+5
| | | | | this is a host tool and needs to be portable future plans: add arc4random to libnbcompat
* fortune: arc4random_uniform for better uniform values than random() % ...nia2020-07-212-20/+11
|
* tetris: Use arc4random_uniform instead of modulo for better randomnessnia2020-07-212-4/+3
|
* Avoid messing up the display when too many letters are guessed at once.dholland2020-07-121-4/+12
| | | | | | | | 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@.
* cgram(6): use standard cursor keys, use standard shuffle algorithmrillig2020-07-021-9/+13
| | | | | | | 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.
* A revision of "The purpose of computing is insight, not numbers" bysevan2020-06-151-0/+2
| | | | Richard Hamming. From The Art of Doing Science and Engineering
* Recommend using `pkg_admin {fetch-pkg-vulnerabilities,audit}' instead ofleot2020-06-071-2/+2
| | | {download-vulnerability-list,audit-packages}.
* Properly quote printf stringleot2020-06-071-1/+1
| | | Noticed by Ottavio Caruso on #netbsd@Freenode, thanks!
* Heads up on Bell patentssevan2020-05-181-0/+5
| | | P21 on https://minnie.tuhs.org/Archive/Documentation/AUUGN/AUUGN-V01.1.pdf
* Remove extra semicolon.msaitoh2020-05-141-3/+3
|
* Simplify, little KNFchristos2020-04-301-22/+22
|
* Simplify, errors to stderr.christos2020-04-301-17/+18
|
* unstr: Check that the input filename fits in the buffer.nia2020-04-291-3/+3
|
* strfile: Check that input/output filenames don't exceed the buffer sizenia2020-04-291-4/+16
|
* buffnum is shared between subs.c and fancy.cjoerg2020-04-222-5/+5
|
* Disks can sense vibes, DTrace confirms it.sevan2020-04-021-0/+3
| | | https://youtu.be/tDacjrSCeq4
* Andrew Weatherall's tattoo and a track on A Pox On The Pioneers album.sevan2020-02-221-0/+2
| | | | | 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/
* something I apparently forgot to commit months or years agodholland2020-02-161-0/+3
|
* games/hack: Suppress -Werror=stringop-truncation error.fox2020-02-081-1/+2
| | | | | | | 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@
* games/hack: Revert the strlcpy(1) change since this changes expected ↵fox2020-02-071-3/+3
| | | | | behavior from strncpy(3). Reviewed by: kamil@
* games/hack: Fix -Wstringop-truncation warning.fox2020-02-071-3/+3
| | | | | | | Replace strncpy(3) with strlcpy(3). Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag. Reviewed by: kamil@
* games/battlestar: Replace snprintf(3) with strlcpy(3) for better performance.fox2020-02-061-6/+6
| | | Reviewed by: kamil@
* games/battlestar: Fix the -Werror=restrict warning.fox2020-02-051-6/+6
| | | | | | | | 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@
* s/saftey/safety/msaitoh2019-12-271-2/+2
|
* s/opration/operation/msaitoh2019-12-271-1/+1
|
* Introspection. From "Surely You're Joking, Mr. Feynman!"sevan2019-12-031-0/+6
|
* https://twitter.com/sei6r/status/1182433546331279360sevan2019-11-101-0/+3
|
* Definition of austerity by Alexei Sayle on Radio 4sevan2019-11-101-0/+4
| | | https://web.archive.org/web/20190916192807/https://www.bbc.co.uk/sounds/play/m0008bbc
* Gcc-8 bug confusion with restrict on sh3christos2019-10-291-1/+5
|
* Chris' happiest momentsevan2019-10-271-0/+6
| | | http://bbc.co.uk/programmes/b09b1zbb
* adjust a fallthru comment and add a missing break.mrg2019-10-131-3/+5
|
* introduce some common variables for use in GCC warning disables:mrg2019-10-134-4/+13
| | | | | | | | | | | | | | | | | 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."
* expand the internal consistency checks in truedirec() to avoidmrg2019-10-051-7/+10
| | | | | 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.
* convert HAVE_GCC == 7 to HAVE_GCC >= 7.mrg2019-09-292-4/+4
|
* End sentence with a dot.wiz2019-09-021-2/+2
|
* Document history.sevan2019-09-011-2/+9
| | | | | 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.
* Donnie Darkosevan2019-08-221-0/+2
|
* The mother of all demossevan2019-07-261-0/+7
|
* Use .Dl for displays with single command. Specify .Bl -width with theuwe2019-07-231-15/+11
| | | same formatting as the actual tags.
* strfile is installed, don't claim it isn't.uwe2019-07-231-6/+2
|
* Prettify formatting.uwe2019-07-231-11/+11
|
* Use double dash to simulate em dashsevan2019-07-221-1/+1
|