Fix incorrect syntax for some shells
In a world long vanished, the ascii char set did not have the |
character (0x7c) as a standard member, and could not be relied
upon existing. In systems only found today in archaeological digs,
that was handled by making '^' be the sh symbol for a pipe.
That meant that the regular expression notation for negating a
character class ([^stuff]) couldn't be used in shell patterns,
and so ! was used there instead of the ^. The ^ did not bother
use in REs as those almost always need to be quoted when included
in a shell command anyway - but quoting of shell patterns would
defeat their use as a pattern, so couldn't be used there.
In more modern times, this excuse for the difference has long gone,
^ isn't the pipe symbol in any shell that is likely to be encountered,
and so most shells allow either ^ or ! to represent negation of a
character class - ^ for compat with REs, and ! for compat with old
scripts.
[6 lines not shown]
Downgrade maybe-uninitialized to a warning for grid.c
Otherwise aarch64 builds fail with:
/home/source/ab/netbsd-10/src/external/bsd/tmux/dist/grid.c: In function 'grid_string_cells':
/home/source/ab/netbsd-10/src/external/bsd/tmux/dist/grid.c:1070:22: error: 'size' may be used uninitialized in this function [-Werror=maybe-uninitialized]
1070 | size_t len, off, size, codelen;
| ^~~~
but the code always initializes size before first use.
Pull up the following, requested by kim in ticket #1243:
external/bsd/tmux/dist/compat/getpeereid.c up to 1.1.1.2
external/bsd/tmux/dist/compat/systemd.c up to 1.1.1.4
external/bsd/tmux/dist/compat/htonll.c up to 1.1.1.2
external/bsd/tmux/dist/compat/ntohll.c up to 1.1.1.2
external/bsd/tmux/dist/cmd-server-access.c up to 1.1.1.1
external/bsd/tmux/dist/cmd-show-prompt-history.c up to 1.1.1.2
external/bsd/tmux/dist/server-acl.c up to 1.1.1.1
external/bsd/tmux/dist/tmux-protocol.h up to 1.1.1.2
external/bsd/tmux/dist/hyperlinks.c up to 1.3
external/bsd/tmux/dist/image-sixel.c up to 1.4
external/bsd/tmux/dist/image.c up to 1.1.1.1
external/bsd/tmux/dist/utf8-combined.c up to 1.1.1.2
external/bsd/tmux/dist/utmp.c delete
external/bsd/tmux/prepare-import.sh up to 1.7
external/bsd/tmux/dist/CHANGES up to 1.1.1.12
external/bsd/tmux/dist/Makefile.am up to 1.1.1.10
external/bsd/tmux/dist/Makefile.in up to 1.1.1.11
[148 lines not shown]
Pull up following revision(s) (requested by skrll in ticket #206):
sys/arch/aarch64/aarch64/pmap_machdep.c: revision 1.9
Correct argument order in tlb_invalidate_addr calls.
Pull up following revision(s) (requested by kalvisd in ticket #205):
external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.20
(applied to external/gpl3/gcc/dist/gcc/config/vax/vax.md)
gcc/vax: (gcc12) adjust the constraints on the output operands of the
'*extzv_aligned' instruction patterns, removing the 'earlyclobber'
modifier, to be consistent with the constraints on the output operands
of the related 'extv_aligned' instruction patterns.
Pull up following revision(s) (requested by skrll in ticket #204):
sys/arch/riscv/conf/GENERIC.common: revision 1.23
Add and enable INCLUDE_CONFIG_FILE
Pull up following revision(s) (requested by skrll in ticket #203):
sys/arch/riscv/conf/GENERIC64: revision 1.22
sys/arch/riscv/conf/GENERIC: revision 1.25
Turn off DEBUG by default
Pull up following revision(s) (requested by skrll in ticket #1244):
sys/arch/powerpc/powerpc/db_interface.c: revision 1.63
sys/ddb/db_access.c: revision 1.28
sys/arch/arm/arm32/db_interface.c: revision 1.67
sys/arch/mips/mips/db_interface.c: revision 1.101
sys/arch/sparc64/sparc64/db_interface.c: revision 1.140
PR/59419: KGDB build fails for evbarm
Fix compilation of db_interface.c when KGDB is defined, but DDB is not.
Pull up following revision(s) (requested by skrll in ticket #202):
sys/arch/powerpc/powerpc/db_interface.c: revision 1.63
sys/ddb/db_access.c: revision 1.28
sys/arch/arm/arm32/db_interface.c: revision 1.67
sys/arch/mips/mips/db_interface.c: revision 1.101
sys/arch/sparc64/sparc64/db_interface.c: revision 1.140
PR/59419: KGDB build fails for evbarm
Fix compilation of db_interface.c when KGDB is defined, but DDB is not.
Pull up following revision(s) (requested by roy in ticket #201):
sys/net/if_spppsubr.c: revision 1.274
PPP: drop SPPP lock before calling rt_ifmsg
rt_ifmsg will lock SPPP itself, so ensure it's unlocked before calling.
Add a comment to explain why this should be safe.
Thanks to @riastradh for review and commentary.
Fixes PR kern/59963.
Pull up following revision(s) (requested by mrg in ticket #200):
external/mit/xorg/lib/libmesa.mk: revision 1.16
define HAVE_NOATEXIT here, syncing with how pkgsrc MesaLib builds.
second and final part to fix PR#60025.
Pull up following revision(s) (requested by riastradh in ticket #199):
sys/arch/amd64/amd64/machdep.c: revision 1.379
amd64: Fix locking around uvm_map_checkprot in mm_md_kernacc.
This call was originally introduced in sys/arch/amd64/amd64/mem.c
rev. 1.11 back in 2003 by fvdl@ with the commit message:
Proper checks for kmem reads beyond _end
https://mail-index.netbsd.org/source-changes/2003/10/14/msg135803.html
At some point, SOMEBODY added an assertion in uvm that made it stop
working:
uvm_map(9): Sprinkle assertions and interface contract comments.
No functional change intended.
https://mail-index.netbsd.org/source-changes/2024/08/13/msg152763.html
(Really, this assertion revealed that this path was broken all along.)
[33 lines not shown]
Pull up following revision(s) (requested by mlelstv in ticket #198):
external/bsd/ntp/dist/include/ntp_lists.h: revision 1.9
Restore NULL pointer check from upstream. Should fix PR 59973.
Pullup the following revisions, requested by kim in ticket #197:
external/bsd/tmux/prepare-import.sh up to 1.7
external/bsd/tmux/dist/CHANGES up to 1.1.1.12
external/bsd/tmux/dist/Makefile.am up to 1.1.1.10
external/bsd/tmux/dist/Makefile.in up to 1.1.1.11
external/bsd/tmux/dist/README up to 1.1.1.7
external/bsd/tmux/dist/README.ja up to 1.1.1.3
external/bsd/tmux/dist/alerts.c up to 1.3
external/bsd/tmux/dist/attributes.c up to 1.1.1.11
external/bsd/tmux/dist/cfg.c up to 1.1.1.16
external/bsd/tmux/dist/cmd-bind-key.c up to 1.1.1.12
external/bsd/tmux/dist/cmd-break-pane.c up to 1.1.1.15
external/bsd/tmux/dist/cmd-capture-pane.c up to 1.12
external/bsd/tmux/dist/cmd-choose-tree.c up to 1.1.1.13
external/bsd/tmux/dist/cmd-command-prompt.c up to 1.1.1.15
external/bsd/tmux/dist/cmd-confirm-before.c up to 1.1.1.14
external/bsd/tmux/dist/cmd-copy-mode.c up to 1.1.1.15
external/bsd/tmux/dist/cmd-display-menu.c up to 1.10
[95 lines not shown]
Pull up following revision(s) (requested by joe in ticket #1242):
sbin/raidctl/raidctl.c: revision 1.87
use proper string conversion for RAID level using create method
using atoi returns 0 for any non-integer passed to it. this could
configure RAID 0 in the kernel which was not intended for when one
mistakenly passes a non-integer string. uses an internal conversion
function that produces proper error message.
Pull up following revision(s) (requested by joe in ticket #196):
sbin/raidctl/raidctl.c: revision 1.87
use proper string conversion for RAID level using create method
using atoi returns 0 for any non-integer passed to it. this could
configure RAID 0 in the kernel which was not intended for when one
mistakenly passes a non-integer string. uses an internal conversion
function that produces proper error message.
Pull up following revision(s) (requested by hgutch in ticket #1241):
lib/libcurses/refresh.c: revision 1.130
Readd a NULL check that got lost in r1.106.
This fixes PR lib/59945 (and its duplicate, PR bin/60001 ).
Pull up following revision(s) (requested by hgutch in ticket #195):
lib/libcurses/refresh.c: revision 1.130
Readd a NULL check that got lost in r1.106.
This fixes PR lib/59945 (and its duplicate, PR bin/60001 ).
Pull up the following revisions, requested by christos in ticket #194:
external/bsd/blocklist/bin/blocklistd.c up to 1.15
external/bsd/blocklist/bin/blocklistd.conf.5 up to 1.9
external/bsd/blocklist/bin/run.c up to 1.4
external/bsd/blocklist/bin/support.c up to 1.4
external/bsd/blocklist/port/popenve.c up to 1.3
PR 59929: fix a filedescriptor leak.
Pull up following revision(s) (requested by skrll in ticket #193):
libexec/ld.elf_so/headers.c: revision 1.77
libexec/ld.elf_so/headers.c: revision 1.79
libexec/ld.elf_so/rtld.c: revision 1.223
libexec/ld.elf_so/rtld.c: revision 1.224
libexec/ld.elf_so/rtld.h: revision 1.155
Support DT_PREINIT_ARRAY which holds a pointer to an array of pointers
to functions that should be executed before the main program starts.
Fix typo in debug output
Don't adjust preinit_array while running the functions.
Requested by christos.
Pull up following revision(s) (requested by skrll in ticket #192):
lib/csu/arch/riscv/crt0.S: revision 1.4
lib/csu/arch/riscv/crt0.S: revision 1.5
Set gp via a .preinit_array function
This fixes the sudo crash reported by Benny Siegert on port-riscv.
No need for @progbits, i.e. be more concise.