summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add one.simonb2020-10-301-0/+3
|
* rain(6): Make the default delay useful for modern terminalsnia2020-10-142-11/+12
|
* worms(6): Use a reasonable default delay for non-1980s terminals.nia2020-10-142-6/+6
| | | This is still fast, but not unreasonably fast.
* - remove duplicate commentchristos2020-10-121-3/+3
| | | | - flush after printing the number (from kre@)
* more clarifications.christos2020-10-121-4/+8
|
* mention hex numberschristos2020-10-111-2/+5
|
* Remove is_hex_str() (trying to guess if a number was hex or not). It is notchristos2020-10-111-27/+3
| | | documented and can lead to unexpected behavior.
* From gson@christos2020-10-111-31/+42
| | | | - don't assume -h is always on for large factors - fix saved large factors printing when -h
* - for readability when the exponent < 10 don't prefix it with 0x (from kre)christos2020-10-071-8/+19
| | | | - fix usage - merge printing code.
* PR/55695: Andreas Gustafsson: factor(6) -h option doesn't always workchristos2020-10-051-3/+41
| | | Handle -h for factors greater than the primes table.
* revert previous and don't parse octalchristos2020-10-051-7/+4
|
* factor: usage(): mark __deadtnn2020-10-051-3/+3
|
* - 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