NetBSD/src xIeBXO5sys/ddb db_extern.h db_command.c, usr.sbin/crash crash.c

   ddb(4), crash(8): Make `show all locks' work without LOCKDEBUG.

   Any lwp currently waiting for a _contended_ lock will now record a
   pointer to that lock in struct lwp::l_ld_wanted, even without
   LOCKDEBUG.  We can't tell who holds shared locks or spin locks, but we
   can at least tell what lock a thread is waiting for when it's spinning
   for a spin lock, and generally present the graph of current lock
   dependencies reasonably well this way.

   PR kern/60030: ddb/crash: show all locks without LOCKDEBUG
VersionDeltaFile
1.194+98-4sys/ddb/db_command.c
1.18+8-3usr.sbin/crash/crash.c
1.18+6-1sys/ddb/db_extern.h
+112-83 files

NetBSD/src B4McYjpsys/external/bsd/drm2/linux linux_rwsem.c linux_ww_mutex.c, sys/kern kern_lock.c kern_rwlock.c

   kernel: Track what lock each lwp is waiting for without LOCKDEBUG.

   This is reasonably cheap -- one extra pointer on the stack, couple
   extra stores when _waiting_ (spinning or sleeping) for a _contended_
   lock -- and doesn't change the kernel ABI.  Will enable us to get
   diagnostics from crash dumps when, e.g., there's a softint deadlock
   tripping a heartbeat panic.

   PR kern/60030: ddb/crash: show all locks without LOCKDEBUG
VersionDeltaFile
1.17+36-32sys/external/bsd/drm2/linux/linux_ww_mutex.c
1.113+22-20sys/kern/kern_mutex.c
1.23+30-11sys/sys/lockdebug.h
1.77+17-15sys/kern/kern_rwlock.c
1.5+18-14sys/external/bsd/drm2/linux/linux_rwsem.c
1.198+6-8sys/kern/kern_lock.c
+129-1006 files

NetBSD/src i8eJGSBbin/pwd pwd.1

   "if PWD references the current directory, then PWD is assumed to be the
   name of the current directory" is tautologically confusing.

   Just state that for '-L' $PWD is _printed_ (under the right circumstances).
VersionDeltaFile
1.28+3-3bin/pwd/pwd.1
+3-31 files

NetBSD/src zo9uEBcsys/arch/arm/broadcom bcm2835_vcaudio.c, sys/external/bsd/vchiq/dist/interface/vchi vchi.h

   vchiq: Back port of the change

       commit 49bec49fd7f273ec114e2e533c1bb8f21a654aaf
       Author: Michael Zoran <mzoran at crowfest.net>
       Date:   Sun Oct 30 05:55:07 2016 -0700

           staging: vc04_services: remove vchiq_copy_from_user

           The vchiq_copy_from_user function is not portable
           and is consider "bad practice."  Replace this function
           with a callback based mechanism that is passed downward
           on the stack.  When it is actually time to copy the data,
           the callback is called to copy the data into the message.

           This callback is provided internally for userland calls
           through ioctls on the device.

           NOTE: Internal clients will need to be modified to work
           with the new internal API.

    [26 lines not shown]
VersionDeltaFile
1.18+166-109sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.c
1.23+104-1sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c
1.9+30-72sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_shim.c
1.23+23-15sys/arch/arm/broadcom/bcm2835_vcaudio.c
1.3+6-19sys/external/bsd/vchiq/dist/interface/vchi/vchi.h
1.26+0-14sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_2835_arm.c
+329-2302 files not shown
+335-2368 files

NetBSD/src x5SQv8Rsys/external/bsd/vchiq/dist/interface/vchiq_arm vchiq_shim.c

   vchiq: Apply change from upstream

       commit 6e474d8e3981a63b6e1cf11b838014ed52499804
       Author: Stefan Wahren <wahrenst at gmx.net>
       Date:   Wed Oct 26 18:34:19 2016 +0000

           staging: vchiq_shim: avoid code duplication

           Rearrange the polling loops in order to avoid code duplication. Btw we fix
           the style of the comments.

           Signed-off-by: Stefan Wahren <stefan.wahren at i2se.com>
           Reviewed-by: Eric Anholt <eric at anholt.net>
           Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
VersionDeltaFile
1.8+31-25sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_shim.c
+31-251 files

NetBSD/src d4It7Qzusr.bin/m4 gnum4.c

   m4(1): Replace nonstandard SIZE_T_MAX by standard SIZE_MAX.
VersionDeltaFile
1.15+3-6usr.bin/m4/gnum4.c
+3-61 files

NetBSD/src UMMEdK8crypto/external/bsd/openssh/dist ssh-agent.c

   Fix error, export: not an identifier: PID, from eval `ssh-agent -s`
VersionDeltaFile
1.46+3-3crypto/external/bsd/openssh/dist/ssh-agent.c
+3-31 files

NetBSD/src 4EK5snRusr.bin/nc netcat.c

   PR/60597: RVP: Instead of assuming that writing to a UDP port is an immediate
   success, wait for a bit for the ICMP port unreachable message to reach us.
VersionDeltaFile
1.10+20-10usr.bin/nc/netcat.c
+20-101 files

NetBSD/src r3YFRBVlib/libutil getfsspecname.c

   PR/60599: RVP: getfsspecname(3) returns ESRCH instead of ENOENT
VersionDeltaFile
1.9+11-5lib/libutil/getfsspecname.c
+11-51 files

NetBSD/src lu6iYgpetc/defaults rc.conf

   PR/60600: Jason Thorpe: Turn off ldconfig by default; all architectures have
   been using ELF for the past 20+ years.
VersionDeltaFile
1.169+2-2etc/defaults/rc.conf
+2-21 files

NetBSD/src urKVF4jlib/libc/stdio stdio.3

   stdio.3: add a bit more detail to STANDARDS
VersionDeltaFile
1.29+11-4lib/libc/stdio/stdio.3
+11-41 files

NetBSD/src dtvjz5hsys/arch/mac68k/conf files.mac68k, sys/arch/mac68k/mac68k pmap_bootstrap.c

   Burn the boats; no more Utah pmap_bootstrap.c
VersionDeltaFile
1.117+2-2sys/arch/mac68k/mac68k/pmap_bootstrap.c
1.152+1-2sys/arch/mac68k/conf/files.mac68k
+3-42 files

NetBSD/src p2P5eLWsys/arch/next68k/conf files.next68k, sys/arch/next68k/next68k pmap_bootstrap.c

   Burn the boats; no more Utah pmap_bootstrap.c
VersionDeltaFile
1.61+2-2sys/arch/next68k/next68k/pmap_bootstrap.c
1.62+1-2sys/arch/next68k/conf/files.next68k
+3-42 files

NetBSD/src zAOFKSBsys/arch/virt68k/conf files.virt68k, sys/arch/virt68k/virt68k pmap_bootstrap.c

   Burn the boats; no more Utah pmap_bootstrap.c
VersionDeltaFile
1.17+2-2sys/arch/virt68k/virt68k/pmap_bootstrap.c
1.26+1-2sys/arch/virt68k/conf/files.virt68k
+3-42 files

NetBSD/src 32gXK0Jsys/arch/hp300/conf std.hp300, sys/arch/luna68k/conf std.luna68k

   The new pmap_68k is no longer experimental.
VersionDeltaFile
1.16+2-2sys/arch/x68k/conf/std.x68k
1.14+2-2sys/arch/hp300/conf/std.hp300
1.10+1-2sys/arch/news68k/conf/std.news68k
1.18+1-2sys/arch/mvme68k/conf/std.mvme68k
1.35+1-2sys/arch/mac68k/conf/std.mac68k
1.11+1-2sys/arch/luna68k/conf/std.luna68k
+8-122 files not shown
+10-168 files

NetBSD/src oC92fIisys/arch/arm/ti ti_edma.c

   evbarm/ti_edma: fix comparison sign

   The comparison sign was the wrong way around. This got masked
   during testing because the driver reverted to PIO mode
   when it couldn't acquire a DMA channel.
VersionDeltaFile
1.8+3-3sys/arch/arm/ti/ti_edma.c
+3-31 files

NetBSD/src wZVGXOxsys/arch/sparc64/sparc64 autoconf.c

   Add missing newline to debug logging when cpu nodes are ignored
VersionDeltaFile
1.254+5-3sys/arch/sparc64/sparc64/autoconf.c
+5-31 files

NetBSD/src t9sAijpbin/sh sh.1

   Fully describe the new dotglob option

   Move it to the correct place in the list of options (these things
   are sorted!) and flesh out the description of what it (now) does a bit.

   While here, fix some minor markup issues in an earlier revision relating
   to the new -c option to the read built-in.
VersionDeltaFile
1.282+40-11bin/sh/sh.1
+40-111 files

NetBSD/src jEYFZ6ibin/sh expand.c

   sh: fully implement dotglob

   Since dotglob has been created, and is now a sh option, implement
   it fully, not only for filename completion (but not at all in SMALL
   shells).

   When dotglob is enabled '*' (etc) matches filenames beginning with
   a dot (period, '.') as well as everything else.  When it is disabled
   the historic practice of only matching files with names starting with
   a '.' when the pattern starts (that component) with a '.' continues.

   The default (as with most options) is disabled (traditional behaviour).

   Note that the names "." and ".." are unaffected by dotglob, they
   are only ever matched by a pattern starting with '.'.

   Note all of this applies only to filename expansion (aka, glob) and
   libedit's filename completion, and not to any other uses of pattern
   matching in sh.  In all other contexts a '.' is just a character,
   wherever it appears, and is matched just the same as anything else.
VersionDeltaFile
1.152+28-6bin/sh/expand.c
+28-61 files

NetBSD/src reZGxWwlib/libedit editline.3

   Fix typos.

   It not Ir, and DV does not work for Dv.
VersionDeltaFile
1.107+3-3lib/libedit/editline.3
+3-31 files

NetBSD/src N752Gpusys/arch/m68k/m68k pmap_68k.c

   Update to reflect current port-conversion status.
VersionDeltaFile
1.78+7-15sys/arch/m68k/m68k/pmap_68k.c
+7-151 files

NetBSD/src OgIruDxbin/sh option.list

   /bin/sh option list, don't include dotglob in SMALL shells

   dotglob is only (currently) used for file completion via libedit.
   None of that is included in SMALL shells, so the new dotglob option
   is pointless there (just occupies space), just exclude it.
VersionDeltaFile
1.15+2-2bin/sh/option.list
+2-21 files

NetBSD/src KF1BgFFsys/arch/luna68k/conf std.luna68k, sys/arch/news68k/conf std.news68k

   Switch luna68k and news68k over to the new pmap_68k.  Thanks tsutsui@
   for testing!
VersionDeltaFile
1.9+2-2sys/arch/news68k/conf/std.news68k
1.10+2-2sys/arch/luna68k/conf/std.luna68k
+4-42 files

NetBSD/src EUYUhMAlib/libedit filecomplete.c

   Only match "." and ".." if the filename is non-empty & starts with '.',
   regardless of the state of MATCH_HIDDEN_FILES.  That's the way bash
   actually works, and makes sense.

   Also, while here, don't allow calling the completion function to
   alter the "match_hidden_files" setting set by EL_MATCH_HIDDEN_FILES
   (or not permanently, only for the current match process).

   Also, have fn_complete() call fn_complete2() using MATCH_HIDDEN_FILES
   if EL_MATCH_HIDDEN_FILES has been set.   This gives some purpose to
   the global setting, which was otherwise doing nothing at all.

   And make the default be to match hidden files (the way libedit used to
   work) which seems likely to have been the intent.
VersionDeltaFile
1.77+35-8lib/libedit/filecomplete.c
+35-81 files

NetBSD/src 4c6Ct7zusr.sbin/sysinst mbr.c

   sysinst(8): Replace nonstandard SIZE_T_MAX by standard SIZE_T.
VersionDeltaFile
1.50+2-2usr.sbin/sysinst/mbr.c
+2-21 files

NetBSD/src 6PtTMkiusr.sbin/kvm_mkdb nlist_elf32.c nlist_ecoff.c

   kvm_mkdb(8): Replace nonstandard SIZE_T_MAX by standard SIZE_MAX.

   Should we delete this?  It was unhooked from the build in 2003 and it
   no longer builds now:

   /home/riastradh/netbsd/current/src/usr.sbin/kvm_mkdb/kvm_mkdb.c: In function 'main':
   /home/riastradh/netbsd/current/src/usr.sbin/kvm_mkdb/kvm_mkdb.c:133:24: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
     133 |                 dbname = _PATH_KVMDB;
         |                        ^
   /home/riastradh/netbsd/current/src/usr.sbin/kvm_mkdb/kvm_mkdb.c:155:35: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
     155 |                         nlistpath = _PATH_KSYMS;
         |                                   ^
   /home/riastradh/netbsd/current/src/usr.sbin/kvm_mkdb/kvm_mkdb.c:157:35: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
     157 |                         nlistpath = _PATH_UNIX;
         |                                   ^
VersionDeltaFile
1.20+3-3usr.sbin/kvm_mkdb/nlist_elf32.c
1.12+3-3usr.sbin/kvm_mkdb/nlist_ecoff.c
1.9+3-3usr.sbin/kvm_mkdb/nlist_coff.c
+9-93 files

NetBSD/src RKfSHWVusr.bin/wall wall.c

   wall(1): Replace nonstandard SIZE_T_MAX by standard SIZE_MAX.
VersionDeltaFile
1.31+3-3usr.bin/wall/wall.c
+3-31 files

NetBSD/src EEYj2u0usr.bin/tail reverse.c

   tail(1): Replace nonstandard SIZE_T_MAX by standard SIZE_MAX.
VersionDeltaFile
1.25+3-3usr.bin/tail/reverse.c
+3-31 files

NetBSD/src 8jF4ovAusr.bin/spell/spellprog spellprog.c

   spell(1): Replace nonstandard SIZE_T_MAX by standard SIZE_MAX.
VersionDeltaFile
1.11+2-2usr.bin/spell/spellprog/spellprog.c
+2-21 files

NetBSD/src N2wAWeGusr.bin/sdiff sdiff.c

   sdiff(1): Replace nonstandard SIZE_T_MAX by standard SIZE_MAX.
VersionDeltaFile
1.4+5-5usr.bin/sdiff/sdiff.c
+5-51 files