master
21 years ago someone called "jsm" modified another version of this which is also being distributed, with commit message "Fix capitalisation of compass directions." Seems sensible.
convert to unsigned variables to avoid some overflows. analysis and patch from David Fifield
slight improvement to index file parsing; ok mlarkin
Convert K&R function definition to ansi to make clang 15 happier
More fixes from David Fifield:
switch fgetln remnants to getline. ok millert@
Be more specific regarding which encoding this simulator generates: the existing text encouraged the misconception that punched card encodings were somehow standardized, which they were not. Lots of different encodings existed, and the one simulated here was a proprietary one of one specific vendor (GE). Also correct the history: the folks at Bell Labs already played with this.
Print non-literal string with "%s"
Avoid gendered language in man pages when not referring to a specific person. Rewrite or use singular they.
fortune files are no longer being rot13d;
man pages: add missing commas between subordinate and main clauses
Fix input handling wrt redrawing. The new version of curses does not like shortcutting switching windows, especially if you're also using libc for i/o. Reported by Don Wilburn; ok jsg@
In 32 bits sqrt(val) + 1 can overflow, so some big primes still aren't recognized as such, for example 18446744073709551577 given in the commit message of factor.c r1.7 from NetBSD. Move the return type of usqrt() from u_int32_t to u_int64_t.
- General changes: - Remove -? from getopt(3) options, but still keep (or add) -h where applicable - Replace hardcoded program strings by getprogname(3)
Emit a warning if all fortunes in the file are too short or too long
if both stdout and stderr are redirected to a non-tty, pledge(2) will kill ncurses applications, e.g.:
typing ^C and seeing "terminated by signal %d" is so ... I don't have the words ok florian
file not needed
Filter out all symbols starting with a double underbar. In particular, this filters out all retguard symbols, which are no fun to guess. One recognizes them easily but can get yourself hanged by a single digit!
use the right FILE to parse the config, not stdin
Use vw_printw() and fix a format print warning.
Feed more generated files to the clean target; joint work with naddy@
prefer https links in man pages ok gnezdo@ miod@ jmc@
having a file called "OWNER" lying around in a directory of (effectively) public dommain software is weird. put that info into a better place.
eaktway eviouspray;
Consolidate printf(3) calls at the end of main().
Straightforward conversion to strtonum. Slight change of behavior in that trailing whitespace is no longer permitted when invoked from stdin. From Scott Cheloha.
In our fight against the cosmos, in the chaos of the source tree, we deleted the greek quiz. Some people felt trauma, and called out our hubris. At my request, Carson Harding performed a metamorphosis of the quiz -- kudos to him! After playing, I consider it the acme of quizzes. ok jmc mglocker
Put explicit ULL suffix to constants which won't fit in 32 bits.
Fix format string warning in robots/score.c
Change the error reporting pattern throughout the tree when unveil fails to report the path that the failure occured on. Suggested by deraadt@ after some tech discussion.
sync manual section numbers
a few depend:-related thingies that were still in.
Remove a few too early pledge(2)s on games/ and apply them a little bit later but with much reduced permissions ("stdio tty" if ncurses based and "stdio" for the ones that only perform basic operations).
Move a badly positioned parenthesis that caused nonsensical movement properties for the Wumpus. The bug has been present since 4.3BSD-Reno and was introduced by Keith Bostic on February 14, 1990 when committing the major rewrite from Dave Taylor.
Licensing issues resolved on bs and hunt, so build them again.
Build most of games/ with -Werror-implicit-function-declaration. Prompted by benno's addition of the flag to most of usr.sbin/.