NetBSD/src gkUBUASusr.bin/cut cut.1, usr.bin/paste paste.1

   cut.1 & paste.1: add HISTORY and AUTHORS

   Sourced from OpenBSD and FreeBSD, which both reference the same post[1]
   for part of it. They differ in certain details.

   FreeBSD puts the additional credit to Marciano Pitargue in the wrong
   utility, going by the source code credits (and what OpenBSD has). There
   is discussion in the FreeBSD review[2] about which originating release
   is relevant for cut(1) (32V vs. System III), as both BSDs referenced
   32V for paste(1). This was perhaps confused in the FreeBSD review,
   which talks directly about cut(1), but was applied also to paste(1). An
   earlier FreeBSD commit specifically lists 32V for paste(1)[3]. (I don't
   have 32V to examine.)

   These histories could be subject to further cut and paste...

   1. https://www.tuhs.org/pipermail/tuhs/2020-January/019955.html
   2. https://reviews.freebsd.org/D36048
   3. https://github.com/freebsd/freebsd-src/commit/30f8b6c18279162a2f4efdc9e85a49683a8aafbf
VersionDeltaFile
1.21+19-2usr.bin/cut/cut.1
1.10+17-2usr.bin/paste/paste.1
+36-42 files

NetBSD/src V9mDNJZsys/arch/hb68k/conf std.hb68010 std.hb68k

   All 68030/68040/68060 systems must have the __HAVE_NEW_PMAP_68K option,
   but that option is not applicable for 68010.
VersionDeltaFile
1.2+4-1sys/arch/hb68k/conf/std.hb68k
1.2+3-1sys/arch/hb68k/conf/std.hb68010
+7-22 files

NetBSD/src Pj26mN9sys/arch/hb68k/hb68k fdt_bootstrap.c

   Fix typo (and paste-o).
VersionDeltaFile
1.2+4-4sys/arch/hb68k/hb68k/fdt_bootstrap.c
+4-41 files

NetBSD/src Ck5O9j8sys/arch/hb68k/conf files.hb68k, sys/arch/hb68k/hb68k fdt_bootstrap.c

   Preliminary implementation of fdt_bootstrap1(), enough for getting
   memory, cpu type, and mmu type.
VersionDeltaFile
1.1+247-0sys/arch/hb68k/hb68k/fdt_bootstrap.c
1.2+2-2sys/arch/hb68k/conf/files.hb68k
+249-22 files

NetBSD/src 4mtY0HZsys/arch/amiga/conf INSTALL GENERIC.in, sys/arch/m68k/conf files.m68k

   All M68040 configs require FPSP, and all M68060 configs require M060SP,
   so just make M68040 and M68060 dependent on their respective software
   packages rather than having to duplicate the options across every kernel
   config.
VersionDeltaFile
1.109+2-8sys/arch/mvme68k/conf/GENERIC
1.33+1-7sys/arch/mvme68k/conf/RAMDISK
1.14+2-5sys/arch/virt68k/conf/GENERIC
1.143+2-4sys/arch/amiga/conf/INSTALL
1.153+2-4sys/arch/amiga/conf/GENERIC.in
1.77+3-3sys/arch/m68k/conf/files.m68k
+12-3125 files not shown
+45-10831 files

NetBSD/src qmjT2PQsys/arch/mvme68k/conf VME147 VME172

   Re-factor the MVME-1xx kernel configs to reduce duplication.  Further
   shrink the VME* configs to be much closer to "bare minimum for this
   machine" to help out small memory config units (4MB base RAM on some).
VersionDeltaFile
1.108+31-49sys/arch/mvme68k/conf/GENERIC
1.38+7-64sys/arch/mvme68k/conf/VME177
1.36+7-63sys/arch/mvme68k/conf/VME162
1.36+7-62sys/arch/mvme68k/conf/VME172
1.40+7-62sys/arch/mvme68k/conf/VME167
1.64+6-60sys/arch/mvme68k/conf/VME147
+65-3602 files not shown
+108-4058 files

NetBSD/src aZ3pooRbin/sh sh.1 miscbltin.c

   /bin/sh - builtin read command fixes (miscbltin.c)

   This corrects a change made in the previous version, where
   in addition to the intended change, making a read error be
   treated differently than EOF, a change with unplanned
   consequences was also made, to treat the EINTR read error
   as a "try again" signal, rather than as a read error.
   That meant that caught traps no longer interrupted the read,
   and while that is how (some) other shells do it (like bash)
   it was a change to how our shell does things.

   So, now there is (in normal shells) a new -c (continue) option
   to cause this behaviour, when given, a trapped signal will be
   processed during the wait for input by the read built-in utility,
   but not end the read.   When absent, the trap will still be processed
   while the read is in progress, but will be treated as a read error
   (and produce the special (>1) exit code 130.

   While doing this, revert all these changes for SMALL shells, they

    [4 lines not shown]
VersionDeltaFile
1.59+67-26bin/sh/miscbltin.c
1.280+31-10bin/sh/sh.1
+98-362 files

NetBSD/src 92eZ01Lbin/sh trap.h trap.c

   /bin/sh - trap.c - new func and avoid lost memory

   Add run_traps() - which is just dotrap() except that it
   preserves the state of the stack around the trap executions,
   so is safe to call with the stack in any state.   It will also
   preserve the state of the growing string at the top of the
   stack if informed (by giving a non-zero value as its arg)
   that such a string currently exists.   This new function does
   not exist in SMALL shells.

   While here, fix an unlikely memory leak - if a shell error
   (not command error) occurs while processing a trap in dotrap()
   the copy of the trap string being parsed can be lost.  This is
   irrelevant in non-interactive shells, as the errors which would
   cause this loss, also cause a non-interactive shell to exit,
   the lost memory is only lost for a very short time.   Interactive
   shells rarely set traps (except possibly an EXIT trap - for which
   the memory loss is also immaterial for almost the same reason) at
   all, and if one were set, and generated a shell error (typically

    [3 lines not shown]
VersionDeltaFile
1.64+40-5bin/sh/trap.c
1.27+5-1bin/sh/trap.h
+45-62 files

NetBSD/src GHFZAOLbin/sh memalloc.h

   /bin/sh - memalloc.h - added STSTRLEN()

   Add a new stack string macro STSTRLEN() which returns the
   current length of the string being accumulated at the top
   of the (shell) stack.   As with all the other Stack String
   macros, it may only be used between a STARTSTACKSTR() call
   and the next call which allocates stack space (often
   grabstackstr(), but stalloc() stunalloc() grabstackblock()
   all count for this).   Use at any other time will give
   meaningless unspecified results.
VersionDeltaFile
1.23+2-1bin/sh/memalloc.h
+2-11 files

NetBSD/src qr7j1N7distrib/sets/lists/man mi

   Add omitted catman entry for pv(4).
VersionDeltaFile
1.1842+2-1distrib/sets/lists/man/mi
+2-11 files

NetBSD/src fCQPNgIdistrib/sets/lists/comp mi, lib/libcurses Makefile

   Add a man page for wgetscrreg.3
VersionDeltaFile
1.97+3-2lib/libcurses/Makefile
1.2530+4-1distrib/sets/lists/comp/mi
+7-32 files

NetBSD/src D1lbljvsys/arch/sparc64/dev vpci.c

   sun4v vpci: panic if hypervisor calls fail
VersionDeltaFile
1.16+6-5sys/arch/sparc64/dev/vpci.c
+6-51 files

NetBSD/src 7YqLqVBsys/arch/mvme68k/conf std.mvme167_177 std.mvme162_172

   Centralize the compiler flags option and adjust it for size-savings.
VersionDeltaFile
1.1+16-0sys/arch/mvme68k/conf/std.mvme147
1.16+13-1sys/arch/mvme68k/conf/std.mvme68k
1.1+13-0sys/arch/mvme68k/conf/std.mvme16x_17x
1.107+2-4sys/arch/mvme68k/conf/GENERIC
1.1+5-0sys/arch/mvme68k/conf/std.mvme167_177
1.1+5-0sys/arch/mvme68k/conf/std.mvme162_172
+54-56 files not shown
+60-2312 files

NetBSD/src pw9n8SRdistrib/sets/lists/man mi, distrib/sets/lists/manhtml mi

   build and install pv(4) man page.
VersionDeltaFile
1.756+3-3share/man/man4/Makefile
1.59+2-1distrib/sets/lists/manhtml/mi
1.1841+2-1distrib/sets/lists/man/mi
+7-53 files

NetBSD/src NUMaEsjsys/arch/alpha/alpha cpu.c

   s/criticial/critical/ in comment.
VersionDeltaFile
1.109+3-3sys/arch/alpha/alpha/cpu.c
+3-31 files

NetBSD/src fTA6Rhqlib/libcurses refresh.c color.c

   * Avoid calling assume_default_colors because this in turn, calls
     _change_pair which dirties lines resulting in a blank screen iff
     stdsrc is not being used.
   * Restore line dirtying code to __change_pair since makech() no longer
     indirectly calls it.
VersionDeltaFile
1.50+7-13lib/libcurses/color.c
1.136+2-8lib/libcurses/refresh.c
+9-212 files

NetBSD/src MTBsoizsys/arch/hb68k/conf Makefile.hb68k

   Do last slightly differently, to avoid a temp file and also to ensure
   that the blob is places in .data.read_mostly.
VersionDeltaFile
1.3+4-7sys/arch/hb68k/conf/Makefile.hb68k
+4-71 files

NetBSD/src gcss0TCsys/uvm/pmap pmap.c

   PR/60522: evbppc/RB800 hits MI pmap KASSERT failure

   Revert the pmap_protect part of

       Fix two EXECness issues
       - when creating a WX mapping via pmap_enter mark the page as EXEC
       - when pmap_protect adds X then ensure that pmap_page_syncicache is called
         for the page.

   It seems that pmap_pte_protect is designed to remove a protection and not
   add it.

   For the module loading the text is indeed mapped eXecute initially, and
   cache maintenance is currently handled by kobj_machdep and not the pmap.
VersionDeltaFile
1.108+3-3sys/uvm/pmap/pmap.c
+3-31 files

NetBSD/src iCockUNsys/arch/hb68k/conf Makefile.hb68k

   Add a provision for including a static device tree blob in the
   built kernel.
VersionDeltaFile
1.2+17-1sys/arch/hb68k/conf/Makefile.hb68k
+17-11 files

NetBSD/src yHoKQ7Dsys/dev/pci mpii.c

   sys/dev/pci/mpii.c: Reduce MPII_REQUEST_CREDIT to improve stability.

   This should fix PR#58684, at least it does in my case on a
   host with a "Symbios Logic SAS3008 (rev. 0x02)" controller.

   Admittedly, this is a band-aid fix, but it's the best we could come
   up with to solve the PR, and it does not appear to have significant
   performance implications, at least not in a single-drive configuration.
   So, better to be stable / functional than not.
VersionDeltaFile
1.32+3-3sys/dev/pci/mpii.c
+3-31 files

NetBSD/src bkP8Rcjsys/dev/i2c pcagpio.c

   Make prev_state the correct size (only used when debug defined).
VersionDeltaFile
1.15+3-3sys/dev/i2c/pcagpio.c
+3-31 files

NetBSD/src CN4IksUsys/dev/sun cgsix.c

   We are not using C23 (yet), so a declaration can not follow a case label
   directly (the label needs to point at a statement).
VersionDeltaFile
1.77+4-2sys/dev/sun/cgsix.c
+4-21 files

NetBSD/src oxWVHDHexternal/historical/nawk/bin awk.1

   awk(1): use mdoc .Rs/.Re for references

   While here, fix the year of the gawk book to match its PDF in the
   Wikimedia Commons and mention its author.
VersionDeltaFile
1.38+18-8external/historical/nawk/bin/awk.1
+18-81 files

NetBSD/src YLJPb2hexternal/historical/nawk/bin awk.1

   awk(1): call "range" pattern by its name for searchability

   While here move the paragraph about range patterns down, to make the
   narration flow more logical.  Mention that range patterns cannot be
   nested.
VersionDeltaFile
1.37+9-6external/historical/nawk/bin/awk.1
+9-61 files

NetBSD/src DiuxLadsys/dev/sun cgsix.c

   break a long line, remove an obsolete comment
   NFC
VersionDeltaFile
1.76+5-4sys/dev/sun/cgsix.c
+5-41 files

NetBSD/src y8zyhPPsys/dev/sun cgsix.c

   add cursor sprite support via wsdisplay as well
   while there, don't set PREFETCHABLE in mmap() - it's not supported on anything
   a cgsix could attach to, and fix RI_FULLCLEAR
VersionDeltaFile
1.75+154-24sys/dev/sun/cgsix.c
+154-241 files

NetBSD/src hceQ8DNsys/arch/hb68k/pg68k ph1_machdep.c

   Remove the no-op platform routines now that they're documented
   elsewhere.
VersionDeltaFile
1.2+2-31sys/arch/hb68k/pg68k/ph1_machdep.c
+2-311 files

NetBSD/src RANZF9Csys/arch/m68k/include fdt_platform.h

   Document all of the m68k fdt_platform hooks.  Add fp_bootstrap(), and
   provide a prototype for fdt_bootstrap1(), a pre-pmap_bootstrap1() early
   init routine.
VersionDeltaFile
1.2+91-1sys/arch/m68k/include/fdt_platform.h
+91-11 files

NetBSD/src Rx0XRMnsys/dev/pci if_rge.c

   Add RealTek Killer E500

   from FreeBSD via OpenBSD
VersionDeltaFile
1.54+3-2sys/dev/pci/if_rge.c
+3-21 files

NetBSD/src N6dxvSasys/dev/pci pcidevs.h pcidevs_data.h

   regen
VersionDeltaFile
1.1520+1,699-1,696sys/dev/pci/pcidevs_data.h
1.1521+2-1sys/dev/pci/pcidevs.h
+1,701-1,6972 files