CVS commit: src/lib/libc/stdlib
Module Name:src Committed By: kamil Date: Thu Nov 2 18:37:15 UTC 2017 Modified Files: src/lib/libc/stdlib: atexit.c Log Message: Correct handling of __cxa_atexit(a,b,NULL) in libc In the NetBSD implementation and suggested by Itanium C++ ABI, we wrap the atexit(x) call as __cxa_atexit(x,NULL,NULL). __cxa_atexit() is an internal function for the usage of C++. Correct a bug that __cxa_atexit(x,y,NULL) is handled in the same way as atexit(x) (which is simplified to __cxa_atexit(x,NULL,NULL). This misbehavior has been detected in the Thread Sanitizer port to NetBSD. Patch reviewed by Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/lib/libc/stdlib/atexit.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/stdlib
Module Name:src Committed By: kamil Date: Thu Nov 2 19:39:33 UTC 2017 Modified Files: src/lib/libc/stdlib: atexit.c Log Message: Revert previous on demand. Rationale: The DSO handle is a required part of the (external) __cxa_atexit interface. The atexit mapping is an implementation detail and not part of the public interface. Doing it directly creates UB as it involves casting function pointers between incompatible types. -- Joerg To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/lib/libc/stdlib/atexit.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc.old/lib/liblto_plugin
Module Name:src Committed By: kamil Date: Sat Nov 4 15:59:16 UTC 2017 Modified Files: src/external/gpl3/gcc.old/lib/liblto_plugin: Makefile Log Message: Link liblto_plugin with -liberty (gcc.old) GCC passes liblto_plugin.so in the linker invocation (part of "gcc -v file.c"): ld -plugin /usr/libexec/liblto_plugin.so -plugin-opt=/usr/libexec/lto-wrapper \ -plugin-opt=-fresolution=/var/tmp//ccxda9Ar.res \ -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc \ -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s \ -plugin-opt=-pass-through=-lgcc --eh-frame-hdr -dc -dp -e _start \ -dynamic-linker /usr/libexec/ld.elf_so /usr/lib/crt0.o /usr/lib/crti.o \ /usr/lib/crtbegin.o /var/tmp//cc7A7mOK.o --as-needed -lgcc_s --no-as-needed \ -lgcc -lc --as-needed -lgcc_s --no-as-needed -lgcc /usr/lib/crtend.o \ /usr/lib/crtn.o When attempting to use GNU GOLD, liblto_plugin.so cannot be used because it \ has missing symbol xstrerror: ld: error: /usr/libexec/liblto_plugin.so: could not load plugin library: \ /usr/libexec/liblto_plugin.so: Undefined PLT symbol "xstrerror" (symnum = 38) >From Makefiles and sources inspection, liblto_plugin.so shall be linked with \ libiberty (-liberty), a utility GNU library for internal usage with helping \ functions. PR 52674 by myself To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc.old/lib/liblto_plugin/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/lib/liblto_plugin
Module Name:src Committed By: kamil Date: Sat Nov 4 16:03:12 UTC 2017 Modified Files: src/external/gpl3/gcc/lib/liblto_plugin: Makefile Log Message: Link liblto_plugin with -liberty (gcc) GCC passes liblto_plugin.so in the linker invocation (part of "gcc -v file.c"): ld -plugin /usr/libexec/liblto_plugin.so -plugin-opt=/usr/libexec/lto-wrapper \ -plugin-opt=-fresolution=/var/tmp//ccxda9Ar.res \ -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc \ -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s \ -plugin-opt=-pass-through=-lgcc --eh-frame-hdr -dc -dp -e _start \ -dynamic-linker /usr/libexec/ld.elf_so /usr/lib/crt0.o /usr/lib/crti.o \ /usr/lib/crtbegin.o /var/tmp//cc7A7mOK.o --as-needed -lgcc_s --no-as-needed \ -lgcc -lc --as-needed -lgcc_s --no-as-needed -lgcc /usr/lib/crtend.o \ /usr/lib/crtn.o When attempting to use GNU GOLD, liblto_plugin.so cannot be used because it \ has missing symbol xstrerror: ld: error: /usr/libexec/liblto_plugin.so: could not load plugin library: \ /usr/libexec/liblto_plugin.so: Undefined PLT symbol "xstrerror" (symnum = 38) >From Makefiles and sources inspection, liblto_plugin.so shall be linked with \ libiberty (-liberty), a utility GNU library for internal usage with helping \ functions. PR 52674 by myself To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/lib/liblto_plugin/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: kamil Date: Sat Nov 4 16:21:50 UTC 2017 Modified Files: src/distrib/sets/lists/comp: shl.mi src/distrib/sets/lists/debug: shl.mi src/external/gpl3/gcc.old/lib/liblto_plugin: Makefile src/external/gpl3/gcc/lib/liblto_plugin: Makefile Log Message: Bump lib minor for liblto_plugin.so link with -liberty PR 52674 by myself To generate a diff of this commit: cvs rdiff -u -r1.308 -r1.309 src/distrib/sets/lists/comp/shl.mi cvs rdiff -u -r1.186 -r1.187 src/distrib/sets/lists/debug/shl.mi cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc.old/lib/liblto_plugin/Makefile cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/lib/liblto_plugin/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/lib/liblto_plugin
Module Name:src Committed By: kamil Date: Sun Nov 5 02:36:00 UTC 2017 Modified Files: src/external/gpl3/gcc/lib/liblto_plugin: Makefile Log Message: Backport patch from gcc.old for liblto_plugin Correct resolution of xstrerror(). Switch from -liberty (which has PIC problems as a local library) to directly linking xstrerror.c with liblto_plugin. Fix in gcc.old by PR 52674 by myself To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/lib/liblto_plugin/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc.old/lib/liblto_plugin
Module Name:src Committed By: kamil Date: Sat Nov 11 07:49:43 UTC 2017 Modified Files: src/external/gpl3/gcc.old/lib/liblto_plugin: Makefile Log Message: Build liblto_plugin.so with safe-ctype.c This corrects linking attempt with GNU binutils GOLD (linker). ld.gold: error: /usr/libexec/liblto_plugin.so: \ could not load plugin library: /usr/libexec/liblto_plugin.so: \ Undefined symbol "_sch_istable" (symnum = 12) Keep the same minor for the previous recent bump. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc.old/lib/liblto_plugin/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/lib/liblto_plugin
Module Name:src Committed By: kamil Date: Sat Nov 11 07:50:39 UTC 2017 Modified Files: src/external/gpl3/gcc/lib/liblto_plugin: Makefile Log Message: Build liblto_plugin.so with safe-ctype.c This corrects linking attempt with GNU binutils GOLD (linker). ld.gold: error: /usr/libexec/liblto_plugin.so: \ could not load plugin library: /usr/libexec/liblto_plugin.so: \ Undefined symbol "_sch_istable" (symnum = 12) Keep the same minor for the previous recent bump. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc/lib/liblto_plugin/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/sys
Module Name:src Committed By: kamil Date: Sun Nov 19 07:41:52 UTC 2017 Modified Files: src/sys/sys: tls.h Log Message: Remove the _rtld_tls_static_setup() leftover from sys/tls.h This prototype is dead and there are no users. This function isn't defined anywhere. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/sys/tls.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/x86
Module Name:src Committed By: kamil Date: Thu Nov 23 16:30:50 UTC 2017 Modified Files: src/sys/arch/x86/include: cpu.h src/sys/arch/x86/x86: x86_machdep.c Log Message: Restore removed sysctl(2) x86 entry: fpu_present Hardcode it to 1 for now on i386 and amd64. This unbreaks software that used it (e.g. LLDB). Removal noted by PR lib/52756 by myself To generate a diff of this commit: cvs rdiff -u -r1.80 -r1.81 src/sys/arch/x86/include/cpu.h cvs rdiff -u -r1.101 -r1.102 src/sys/arch/x86/x86/x86_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: kamil Date: Mon Dec 4 12:53:46 UTC 2017 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Temporarily disable t_ptrace_wait*::resume1 in ATF tests It hangs forever on releng machines. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/games/fortune/datfiles
Module Name:src Committed By: kamil Date: Tue Dec 5 22:51:59 UTC 2017 Modified Files: src/games/fortune/datfiles: fortunes Log Message: Add new fortune entry with a quote from Jozef Pilsudski This quote is a longer form of "the dogs bark, but the caravan goes on" and compares Poles and Lithuanians (historical meanings used from the time of country union of both nations). Today is the 150th birthday anniversary of Jozef Pilsudski (1867-1935). To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/games/fortune/datfiles/fortunes Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/games/fortune/datfiles
Module Name:src Committed By: kamil Date: Wed Dec 6 17:41:16 UTC 2017 Modified Files: src/games/fortune/datfiles: fortunes Log Message: Correct code flow of a quote translation (by Tom Ivar Helbekkmo) To generate a diff of this commit: cvs rdiff -u -r1.68 -r1.69 src/games/fortune/datfiles/fortunes Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: kamil Date: Sat Dec 9 14:56:54 UTC 2017 Modified Files: src/bin/ps: extern.h keyword.c print.c Log Message: ps: Rename local routine name from uname to usrname This removes symbol name routine clash with libc's uname(3). This allows to build ps(1) against LLVM Sanitizers. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/bin/ps/extern.h cvs rdiff -u -r1.54 -r1.55 src/bin/ps/keyword.c cvs rdiff -u -r1.127 -r1.128 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/netbsd32
Module Name:src Committed By: kamil Date: Tue Dec 19 07:58:50 UTC 2017 Modified Files: src/sys/compat/netbsd32: netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_systrace_args.c syscalls.master Log Message: Sync syscalls.master in compat_netbsd32(8) with kern/syscalls.master ___lwp_part60 removed 'const' from the ts argument. 'const struct timespec *ts' -> 'struct timespec *ts' Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.129 -r1.130 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_syscallargs.h cvs rdiff -u -r1.19 -r1.20 src/sys/compat/netbsd32/netbsd32_systrace_args.c cvs rdiff -u -r1.115 -r1.116 src/sys/compat/netbsd32/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3
Module Name:src Committed By: kamil Date: Tue Dec 19 08:02:55 UTC 2017 Modified Files: src/external/gpl3/gdb.old/dist/sim/ppc: emul_netbsd.c src/external/gpl3/gdb/dist/sim/ppc: emul_netbsd.c Log Message: gdb & gdb.old: Forget about sstk in ppc/emul_netbsd.c The sstk(2) syscall has not been implemented and will be removed. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb.old/dist/sim/ppc/emul_netbsd.c cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/dist/sim/ppc/emul_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/aoutm68k
Module Name:src Committed By: kamil Date: Tue Dec 19 08:09:36 UTC 2017 Modified Files: src/sys/compat/aoutm68k: aoutm68k_syscall.h aoutm68k_syscallargs.h aoutm68k_syscalls.c aoutm68k_sysent.c syscalls.master Log Message: compat aoutm68k: Mark sstk(2) as OBSOL Remove the sstk(2) syscall support and mark it as obsolete. It has never been implemented in the kernel. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/compat/aoutm68k/aoutm68k_syscall.h cvs rdiff -u -r1.46 -r1.47 src/sys/compat/aoutm68k/aoutm68k_syscallargs.h cvs rdiff -u -r1.45 -r1.46 src/sys/compat/aoutm68k/aoutm68k_syscalls.c cvs rdiff -u -r1.50 -r1.51 src/sys/compat/aoutm68k/aoutm68k_sysent.c cvs rdiff -u -r1.37 -r1.38 src/sys/compat/aoutm68k/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/ultrix
Module Name:src Committed By: kamil Date: Tue Dec 19 08:23:23 UTC 2017 Modified Files: src/sys/compat/ultrix: syscalls.master ultrix_syscall.h ultrix_syscallargs.h ultrix_syscalls.c ultrix_sysent.c Log Message: compat ultrix: Drop the sstk(2) syscall sstk(2) has never been implemented by the NetBSD kernel. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/sys/compat/ultrix/syscalls.master cvs rdiff -u -r1.68 -r1.69 src/sys/compat/ultrix/ultrix_syscall.h cvs rdiff -u -r1.63 -r1.64 src/sys/compat/ultrix/ultrix_syscallargs.h cvs rdiff -u -r1.67 -r1.68 src/sys/compat/ultrix/ultrix_syscalls.c cvs rdiff -u -r1.70 -r1.71 src/sys/compat/ultrix/ultrix_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/sunos32
Module Name:src Committed By: kamil Date: Tue Dec 19 08:24:41 UTC 2017 Modified Files: src/sys/compat/sunos32: sunos32_syscall.h sunos32_syscallargs.h sunos32_syscalls.c sunos32_sysent.c syscalls.master Log Message: compat sunos32: Drop the sstk(2) syscall sstk(2) has never been implemented by the NetBSD kernel. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/compat/sunos32/sunos32_syscall.h cvs rdiff -u -r1.32 -r1.33 src/sys/compat/sunos32/sunos32_syscallargs.h \ src/sys/compat/sunos32/sunos32_syscalls.c cvs rdiff -u -r1.34 -r1.35 src/sys/compat/sunos32/sunos32_sysent.c cvs rdiff -u -r1.22 -r1.23 src/sys/compat/sunos32/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/sunos
Module Name:src Committed By: kamil Date: Tue Dec 19 08:25:37 UTC 2017 Modified Files: src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h sunos_syscalls.c sunos_sysent.c syscalls.master Log Message: compat sunos: Drop the sstk(2) syscall sstk(2) has never been implemented by the NetBSD kernel. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/sys/compat/sunos/sunos_syscall.h cvs rdiff -u -r1.76 -r1.77 src/sys/compat/sunos/sunos_syscallargs.h \ src/sys/compat/sunos/syscalls.master cvs rdiff -u -r1.91 -r1.92 src/sys/compat/sunos/sunos_syscalls.c cvs rdiff -u -r1.87 -r1.88 src/sys/compat/sunos/sunos_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/freebsd
Module Name:src Committed By: kamil Date: Tue Dec 19 08:27:05 UTC 2017 Modified Files: src/sys/compat/freebsd: freebsd_syscall.h freebsd_syscallargs.h freebsd_syscalls.c freebsd_sysent.c syscalls.master Log Message: compat freebsd: Drop the sstk(2) syscall sstk(2) has never been implemented by the NetBSD kernel. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 src/sys/compat/freebsd/freebsd_syscall.h cvs rdiff -u -r1.87 -r1.88 src/sys/compat/freebsd/freebsd_syscallargs.h \ src/sys/compat/freebsd/freebsd_sysent.c cvs rdiff -u -r1.85 -r1.86 src/sys/compat/freebsd/freebsd_syscalls.c cvs rdiff -u -r1.68 -r1.69 src/sys/compat/freebsd/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: kamil Date: Tue Dec 19 08:48:19 UTC 2017 Modified Files: src/sys/compat/netbsd32: netbsd32_netbsd.c netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_sysent.c netbsd32_systrace_args.c syscalls.master src/sys/kern: init_sysent.c syscalls.c syscalls.master systrace_args.c src/sys/rump/librump/rumpkern: rump_syscalls.c src/sys/sys: syscall.h syscallargs.h src/sys/uvm: uvm_mmap.c Log Message: Drop the sstk(2) syscall stub sstk - change stack section size This functionality has never been implemented and is a remnant from 16-bit UNIX. This stub appeared with the first NetBSD commit. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.208 -r1.209 src/sys/compat/netbsd32/netbsd32_netbsd.c cvs rdiff -u -r1.130 -r1.131 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_syscallargs.h cvs rdiff -u -r1.128 -r1.129 src/sys/compat/netbsd32/netbsd32_syscalls.c \ src/sys/compat/netbsd32/netbsd32_sysent.c cvs rdiff -u -r1.20 -r1.21 src/sys/compat/netbsd32/netbsd32_systrace_args.c cvs rdiff -u -r1.116 -r1.117 src/sys/compat/netbsd32/syscalls.master cvs rdiff -u -r1.315 -r1.316 src/sys/kern/init_sysent.c cvs rdiff -u -r1.306 -r1.307 src/sys/kern/syscalls.c cvs rdiff -u -r1.287 -r1.288 src/sys/kern/syscalls.master cvs rdiff -u -r1.24 -r1.25 src/sys/kern/systrace_args.c cvs rdiff -u -r1.133 -r1.134 src/sys/rump/librump/rumpkern/rump_syscalls.c cvs rdiff -u -r1.300 -r1.301 src/sys/sys/syscall.h cvs rdiff -u -r1.284 -r1.285 src/sys/sys/syscallargs.h cvs rdiff -u -r1.167 -r1.168 src/sys/uvm/uvm_mmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/kern
Module Name:src Committed By: kamil Date: Tue Dec 19 08:51:09 UTC 2017 Modified Files: src/sys/kern: systrace_args.c Log Message: Regenerate kern/systrace_args.c for the ___lwp_wait60 prototype change ___lwp_part60 removed 'const' from the ts argument. 'const struct timespec *ts' -> 'struct timespec *ts' Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/kern/systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gdb.old/dist/sim/ppc
Module Name:src Committed By: kamil Date: Tue Dec 19 09:01:24 UTC 2017 Modified Files: src/external/gpl3/gdb.old/dist/sim/ppc: emul_netbsd.c Log Message: gdb.old: Add missing */ Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb.old/dist/sim/ppc/emul_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: kamil Date: Tue Dec 19 09:09:28 UTC 2017 Modified Files: src/doc: CHANGES Log Message: Document sstk removal in doc/CHANGES sstk: Remove the "stack section size change" syscall Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.2339 -r1.2340 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/aoutm68k
Module Name:src Committed By: kamil Date: Tue Dec 19 18:10:22 UTC 2017 Modified Files: src/sys/compat/aoutm68k: aoutm68k_syscall.h aoutm68k_syscallargs.h aoutm68k_syscalls.c aoutm68k_sysent.c syscalls.master Log Message: compat/aoutm68k: Drop SYS_sbrk sbrk - change data segment size This syscall is dummy since the inception of the project. It's implemented in userland in libc. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/sys/compat/aoutm68k/aoutm68k_syscall.h cvs rdiff -u -r1.47 -r1.48 src/sys/compat/aoutm68k/aoutm68k_syscallargs.h cvs rdiff -u -r1.46 -r1.47 src/sys/compat/aoutm68k/aoutm68k_syscalls.c cvs rdiff -u -r1.51 -r1.52 src/sys/compat/aoutm68k/aoutm68k_sysent.c cvs rdiff -u -r1.38 -r1.39 src/sys/compat/aoutm68k/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/freebsd
Module Name:src Committed By: kamil Date: Tue Dec 19 18:15:08 UTC 2017 Modified Files: src/sys/compat/freebsd: freebsd_syscall.h freebsd_syscallargs.h freebsd_syscalls.c freebsd_sysent.c syscalls.master Log Message: compat/freebsd: Drop SYS_sbrk sbrk - change data segment size This syscall is dummy since the inception of the project. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/sys/compat/freebsd/freebsd_syscall.h cvs rdiff -u -r1.88 -r1.89 src/sys/compat/freebsd/freebsd_syscallargs.h \ src/sys/compat/freebsd/freebsd_sysent.c cvs rdiff -u -r1.86 -r1.87 src/sys/compat/freebsd/freebsd_syscalls.c cvs rdiff -u -r1.69 -r1.70 src/sys/compat/freebsd/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/ultrix
Module Name:src Committed By: kamil Date: Tue Dec 19 18:20:12 UTC 2017 Modified Files: src/sys/compat/ultrix: syscalls.master ultrix_syscall.h ultrix_syscallargs.h ultrix_syscalls.c ultrix_sysent.c Log Message: compat/ultrix: Drop SYS_sbrk sbrk - change data segment size This syscall is dummy since the inception of the project. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/compat/ultrix/syscalls.master cvs rdiff -u -r1.69 -r1.70 src/sys/compat/ultrix/ultrix_syscall.h cvs rdiff -u -r1.64 -r1.65 src/sys/compat/ultrix/ultrix_syscallargs.h cvs rdiff -u -r1.68 -r1.69 src/sys/compat/ultrix/ultrix_syscalls.c cvs rdiff -u -r1.71 -r1.72 src/sys/compat/ultrix/ultrix_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/sunos
Module Name:src Committed By: kamil Date: Tue Dec 19 18:24:21 UTC 2017 Modified Files: src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h sunos_syscalls.c sunos_sysent.c syscalls.master Log Message: compat/sunos: Drop SYS_sbrk sbrk - change data segment size This syscall is dummy since the inception of the project. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/sys/compat/sunos/sunos_syscall.h cvs rdiff -u -r1.77 -r1.78 src/sys/compat/sunos/sunos_syscallargs.h \ src/sys/compat/sunos/syscalls.master cvs rdiff -u -r1.92 -r1.93 src/sys/compat/sunos/sunos_syscalls.c cvs rdiff -u -r1.88 -r1.89 src/sys/compat/sunos/sunos_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/sunos32
Module Name:src Committed By: kamil Date: Tue Dec 19 18:25:53 UTC 2017 Modified Files: src/sys/compat/sunos32: sunos32_syscall.h sunos32_syscallargs.h sunos32_syscalls.c sunos32_sysent.c syscalls.master Log Message: compat/sunos32: Drop SYS_sbrk sbrk - change data segment size This syscall is dummy since the inception of the project. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/compat/sunos32/sunos32_syscall.h cvs rdiff -u -r1.33 -r1.34 src/sys/compat/sunos32/sunos32_syscallargs.h \ src/sys/compat/sunos32/sunos32_syscalls.c cvs rdiff -u -r1.35 -r1.36 src/sys/compat/sunos32/sunos32_sysent.c cvs rdiff -u -r1.23 -r1.24 src/sys/compat/sunos32/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: kamil Date: Tue Dec 19 18:34:48 UTC 2017 Modified Files: src/sys/compat/netbsd32: netbsd32_netbsd.c netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_sysent.c netbsd32_systrace_args.c syscalls.master src/sys/kern: init_sysent.c syscalls.c syscalls.master systrace_args.c src/sys/rump/librump/rumpkern: rump_syscalls.c src/sys/sys: syscall.h syscallargs.h src/sys/uvm: uvm_mmap.c Log Message: Drop SYS_sbrk sbrk - change data segment size This syscall is dummy since the inception of the project. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.209 -r1.210 src/sys/compat/netbsd32/netbsd32_netbsd.c cvs rdiff -u -r1.131 -r1.132 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_syscallargs.h cvs rdiff -u -r1.129 -r1.130 src/sys/compat/netbsd32/netbsd32_syscalls.c \ src/sys/compat/netbsd32/netbsd32_sysent.c cvs rdiff -u -r1.21 -r1.22 src/sys/compat/netbsd32/netbsd32_systrace_args.c cvs rdiff -u -r1.117 -r1.118 src/sys/compat/netbsd32/syscalls.master cvs rdiff -u -r1.316 -r1.317 src/sys/kern/init_sysent.c cvs rdiff -u -r1.307 -r1.308 src/sys/kern/syscalls.c cvs rdiff -u -r1.288 -r1.289 src/sys/kern/syscalls.master cvs rdiff -u -r1.26 -r1.27 src/sys/kern/systrace_args.c cvs rdiff -u -r1.134 -r1.135 src/sys/rump/librump/rumpkern/rump_syscalls.c cvs rdiff -u -r1.301 -r1.302 src/sys/sys/syscall.h cvs rdiff -u -r1.285 -r1.286 src/sys/sys/syscallargs.h cvs rdiff -u -r1.168 -r1.169 src/sys/uvm/uvm_mmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: kamil Date: Tue Dec 19 18:37:39 UTC 2017 Modified Files: src/doc: CHANGES Log Message: Document SYS_sbrk removal in doc/CHANGES sbrk: Remove the "data section size change" syscall Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.2340 -r1.2341 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/sys
Module Name:src Committed By: kamil Date: Tue Dec 19 18:43:42 UTC 2017 Modified Files: src/lib/libc/sys: Makefile.inc Log Message: Deregister vadvise.S from lib/libc/sys/Makefile.inc Such file was never registered since the inception of NetBSD. The (o)vadvise is dummy since the beginning of NetBSD. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.236 -r1.237 src/lib/libc/sys/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/sys
Module Name:src Committed By: kamil Date: Tue Dec 19 18:47:59 UTC 2017 Modified Files: src/sys/sys: trace.h Log Message: Deregister TR_VADVISE from sys/sys/trace.h The (o)vadvise syscall is dummy since the beginning of NetBSD. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/sys/trace.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/man/tools
Module Name:src Committed By: kamil Date: Tue Dec 19 19:04:12 UTC 2017 Removed Files: src/share/man/tools: missing Log Message: Drop share/man/tools/missing This is a remnant from the 4.4BSD-Lite2 import (1992). It notes old tools: vadvise(2) obsolete syscall. vplot(1) & vsort(1) were never implemented on NetBSD. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r0 src/share/man/tools/missing Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: kamil Date: Tue Dec 19 19:10:14 UTC 2017 Modified Files: src/distrib/sets/lists/comp: mi src/sys/sys: Makefile Removed Files: src/sys/sys: vadvise.h Log Message: Drop The (o)vadvise syscall is dummy since the beginning of NetBSD. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.2162 -r1.2163 src/distrib/sets/lists/comp/mi cvs rdiff -u -r1.163 -r1.164 src/sys/sys/Makefile cvs rdiff -u -r1.11 -r0 src/sys/sys/vadvise.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3
Module Name:src Committed By: kamil Date: Tue Dec 19 19:13:30 UTC 2017 Modified Files: src/external/gpl3/gdb.old/dist/sim/ppc: emul_netbsd.c src/external/gpl3/gdb/dist/sim/ppc: emul_netbsd.c Log Message: Deregister (o)vadvise from gdb & gdb.org: ppc/emul_netbsd The (o)vadvise syscall is dummy since the beginning of NetBSD. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb.old/dist/sim/ppc/emul_netbsd.c cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/sim/ppc/emul_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/aoutm68k
Module Name:src Committed By: kamil Date: Tue Dec 19 19:17:17 UTC 2017 Modified Files: src/sys/compat/aoutm68k: aoutm68k_syscall.h aoutm68k_syscallargs.h aoutm68k_syscalls.c aoutm68k_sysent.c syscalls.master Log Message: compat/aoutm68k: Drop SYS_vadvise The (o)vadvise syscall is dummy since the beginning of NetBSD. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/compat/aoutm68k/aoutm68k_syscall.h cvs rdiff -u -r1.48 -r1.49 src/sys/compat/aoutm68k/aoutm68k_syscallargs.h cvs rdiff -u -r1.47 -r1.48 src/sys/compat/aoutm68k/aoutm68k_syscalls.c cvs rdiff -u -r1.52 -r1.53 src/sys/compat/aoutm68k/aoutm68k_sysent.c cvs rdiff -u -r1.39 -r1.40 src/sys/compat/aoutm68k/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/freebsd
Module Name:src Committed By: kamil Date: Tue Dec 19 19:18:18 UTC 2017 Modified Files: src/sys/compat/freebsd: freebsd_syscall.h freebsd_syscallargs.h freebsd_syscalls.c freebsd_sysent.c syscalls.master Log Message: compat/freebsd: Drop SYS_vadvise The (o)vadvise syscall is dummy since the beginning of NetBSD. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.86 -r1.87 src/sys/compat/freebsd/freebsd_syscall.h cvs rdiff -u -r1.89 -r1.90 src/sys/compat/freebsd/freebsd_syscallargs.h \ src/sys/compat/freebsd/freebsd_sysent.c cvs rdiff -u -r1.87 -r1.88 src/sys/compat/freebsd/freebsd_syscalls.c cvs rdiff -u -r1.70 -r1.71 src/sys/compat/freebsd/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/sunos
Module Name:src Committed By: kamil Date: Tue Dec 19 19:19:16 UTC 2017 Modified Files: src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h sunos_syscalls.c sunos_sysent.c syscalls.master Log Message: compat/sunos: Drop SYS_vadvise The (o)vadvise syscall is dummy since the beginning of NetBSD. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.94 -r1.95 src/sys/compat/sunos/sunos_syscall.h cvs rdiff -u -r1.78 -r1.79 src/sys/compat/sunos/sunos_syscallargs.h \ src/sys/compat/sunos/syscalls.master cvs rdiff -u -r1.93 -r1.94 src/sys/compat/sunos/sunos_syscalls.c cvs rdiff -u -r1.89 -r1.90 src/sys/compat/sunos/sunos_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/sunos32
Module Name:src Committed By: kamil Date: Tue Dec 19 19:19:51 UTC 2017 Modified Files: src/sys/compat/sunos32: sunos32_syscall.h sunos32_syscallargs.h sunos32_syscalls.c sunos32_sysent.c syscalls.master Log Message: compat/sunos32: Drop SYS_vadvise The (o)vadvise syscall is dummy since the beginning of NetBSD. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sys/compat/sunos32/sunos32_syscall.h cvs rdiff -u -r1.34 -r1.35 src/sys/compat/sunos32/sunos32_syscallargs.h \ src/sys/compat/sunos32/sunos32_syscalls.c cvs rdiff -u -r1.36 -r1.37 src/sys/compat/sunos32/sunos32_sysent.c cvs rdiff -u -r1.24 -r1.25 src/sys/compat/sunos32/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/ultrix
Module Name:src Committed By: kamil Date: Tue Dec 19 19:20:31 UTC 2017 Modified Files: src/sys/compat/ultrix: syscalls.master ultrix_syscall.h ultrix_syscallargs.h ultrix_syscalls.c ultrix_sysent.c Log Message: compat/ultrix: Drop SYS_vadvise The (o)vadvise syscall is dummy since the beginning of NetBSD. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/sys/compat/ultrix/syscalls.master cvs rdiff -u -r1.70 -r1.71 src/sys/compat/ultrix/ultrix_syscall.h cvs rdiff -u -r1.65 -r1.66 src/sys/compat/ultrix/ultrix_syscallargs.h cvs rdiff -u -r1.69 -r1.70 src/sys/compat/ultrix/ultrix_syscalls.c cvs rdiff -u -r1.72 -r1.73 src/sys/compat/ultrix/ultrix_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: kamil Date: Tue Dec 19 19:40:04 UTC 2017 Modified Files: src/sys/compat/netbsd32: netbsd32_netbsd.c netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_syscalls_autoload.c netbsd32_sysent.c netbsd32_systrace_args.c syscalls.master src/sys/kern: init_sysent.c syscalls.c syscalls.master syscalls_autoload.c systrace_args.c src/sys/rump/include/rump: rump_syscalls.h src/sys/rump/librump/rumpkern: rump_syscalls.c src/sys/sys: syscall.h syscallargs.h src/sys/uvm: uvm_unix.c Log Message: Drop SYS_vadvise The (o)vadvise syscall is dummy since the beginning of NetBSD. It is an obsolete remnant from the old UNIX. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.210 -r1.211 src/sys/compat/netbsd32/netbsd32_netbsd.c cvs rdiff -u -r1.132 -r1.133 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_syscallargs.h cvs rdiff -u -r1.130 -r1.131 src/sys/compat/netbsd32/netbsd32_syscalls.c \ src/sys/compat/netbsd32/netbsd32_sysent.c cvs rdiff -u -r1.11 -r1.12 \ src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c cvs rdiff -u -r1.22 -r1.23 src/sys/compat/netbsd32/netbsd32_systrace_args.c cvs rdiff -u -r1.118 -r1.119 src/sys/compat/netbsd32/syscalls.master cvs rdiff -u -r1.317 -r1.318 src/sys/kern/init_sysent.c cvs rdiff -u -r1.308 -r1.309 src/sys/kern/syscalls.c cvs rdiff -u -r1.289 -r1.290 src/sys/kern/syscalls.master cvs rdiff -u -r1.25 -r1.26 src/sys/kern/syscalls_autoload.c cvs rdiff -u -r1.27 -r1.28 src/sys/kern/systrace_args.c cvs rdiff -u -r1.106 -r1.107 src/sys/rump/include/rump/rump_syscalls.h cvs rdiff -u -r1.135 -r1.136 src/sys/rump/librump/rumpkern/rump_syscalls.c cvs rdiff -u -r1.302 -r1.303 src/sys/sys/syscall.h cvs rdiff -u -r1.286 -r1.287 src/sys/sys/syscallargs.h cvs rdiff -u -r1.48 -r1.49 src/sys/uvm/uvm_unix.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: kamil Date: Tue Dec 19 19:58:37 UTC 2017 Modified Files: src/doc: CHANGES Log Message: Document SYS_vadvise removal in doc/CHANGES ovadvise: Remove the old vadvise syscall Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.2341 -r1.2342 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists/comp
Module Name:src Committed By: kamil Date: Wed Dec 20 00:07:56 UTC 2017 Modified Files: src/distrib/sets/lists/comp: mi Log Message: Try to correct removal of To generate a diff of this commit: cvs rdiff -u -r1.2163 -r1.2164 src/distrib/sets/lists/comp/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: kamil Date: Thu Dec 21 09:56:47 UTC 2017 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: t_ptrace_wait*: Disable suspend* tests These tests can hang the system. These interfaces will be improved and temporarily disable them. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/kern
Module Name:src Committed By: kamil Date: Fri Dec 22 15:02:57 UTC 2017 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: ptrace: Partially undo PT_{READ,WRITE}_{I,D} and unbreak these commands The refactored code did not work and was generating EFAULT. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/sys/kern/sys_ptrace_common.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: kamil Date: Fri Dec 22 17:35:14 UTC 2017 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: ptrace atf: Clanup reports of failures Mark resume* suspend* tests as expected failure and link with PR 51995. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/sys
Module Name:src Committed By: kamil Date: Mon Dec 25 11:03:30 UTC 2017 Modified Files: src/lib/libc/sys: Makefile.inc Added Files: src/lib/libc/sys: vadvise.c Log Message: libc: Add a dummy implementation of vadvise() This readds a symbol that has been removed accidentally without major bump. The implementation is dummy (similar to the old one), without API in public headers. Pointed out by Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.237 -r1.238 src/lib/libc/sys/Makefile.inc cvs rdiff -u -r0 -r1.1 src/lib/libc/sys/vadvise.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: kamil Date: Mon Dec 25 12:38:01 UTC 2017 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: atf: t_ptrace_wait: Mark attach2 as racy To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: kamil Date: Tue Dec 26 08:30:58 UTC 2017 Modified Files: src/sys/compat/linux/arch/alpha: linux_pipe.c src/sys/compat/linux/common: linux_pipe.c src/sys/compat/linux32/common: linux32_unistd.c src/sys/compat/netbsd32: netbsd32_netbsd.c src/sys/kern: sys_descrip.c sys_pipe.c uipc_syscalls.c src/sys/sys: filedesc.h Log Message: Refactor pipe1() and correct a bug in sys_pipe2() (SYS_pipe2) sys_pipe2() returns two integers (values), the 2nd one is a copy of the 2nd file descriptor that lands in fildes[2]. This is a side effect of reusing the code for sys_pipe() (SYS_pipe) and not cleaning it up. The first returned value is (on success) 0. Introduced a small refactoring in pipe1() that it does not operate over retval[], but on an array int[2]. A user sets retval[] for pipe() when desired and needed. This refactoring touches compat code: netbsd32, linux, linux32. Before the changes on NetBSD/amd64: $ ktruss -i ./a.out [...] 15131 1 a.outpipe2(0x7f7fff2e62b8, 0)= 0, 4 [...] After the changes: $ ktruss -i ./a.out [...] 782 1 a.outpipe2(0x7f7fff97e850, 0)= 0 [...] There should not be a visible change for current users. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/sys/compat/linux/arch/alpha/linux_pipe.c cvs rdiff -u -r1.67 -r1.68 src/sys/compat/linux/common/linux_pipe.c cvs rdiff -u -r1.39 -r1.40 src/sys/compat/linux32/common/linux32_unistd.c cvs rdiff -u -r1.211 -r1.212 src/sys/compat/netbsd32/netbsd32_netbsd.c cvs rdiff -u -r1.30 -r1.31 src/sys/kern/sys_descrip.c cvs rdiff -u -r1.142 -r1.143 src/sys/kern/sys_pipe.c cvs rdiff -u -r1.187 -r1.188 src/sys/kern/uipc_syscalls.c cvs rdiff -u -r1.63 -r1.64 src/sys/sys/filedesc.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: kamil Date: Wed Dec 27 13:38:51 UTC 2017 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: atf: ptrace: Temporarily disable signal3 as it breaks now on some ports This test is marked as failing with: PR kern/51918. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: kamil Date: Thu Dec 28 09:47:52 UTC 2017 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: atf: ptrace: Temporarily skip fpregs* tests on pmax NetBSD/pmax 8.99.9 panics when attempting to use fpregs through ptrace(2). Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: kamil Date: Thu Jan 4 20:57:29 UTC 2018 Modified Files: src/common/lib/libc/sys: cpuset.c src/lib/libc/citrus: citrus_module.c src/lib/libc/compat-43: killpg.c src/lib/libc/db/db: dbfile.c src/lib/libc/gen: posix_spawnp.c signalnumber.c src/lib/libc/locale: generic_lc_all.c setlocale.c src/lib/libc/stdlib: reallocarray.c strtonum.c src/lib/libc/sys: sched.c src/lib/libc/time: getdate.c Log Message: Add bunch of missing includes of namespace.h in libc The NetBSD Standard C Library uses internally some of its functions with a mangled symbol name, usually "_symbol". The internal functions shall not use the global (public) symbols. This change eliminates usage of the global changes of the following symbols: - strlcat -> _strlcat - sysconf -> __sysconf - closedir -> _closedir - fparseln -> _fparseln - kill -> _kill - mkstemp -> _mkstemp - reallocarr -> _reallocarr - strcasecmp -> _strcasecmp - strncasecmp -> _strncasecmp - strptime -> _strptime - strtok_r -> _strtok_r - sysctl -> _sysctl - dlopen -> __dlopen - dlclose -> __dlclose - dlsym -> __dlsym Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/common/lib/libc/sys/cpuset.c cvs rdiff -u -r1.12 -r1.13 src/lib/libc/citrus/citrus_module.c cvs rdiff -u -r1.8 -r1.9 src/lib/libc/compat-43/killpg.c cvs rdiff -u -r1.1 -r1.2 src/lib/libc/db/db/dbfile.c cvs rdiff -u -r1.2 -r1.3 src/lib/libc/gen/posix_spawnp.c cvs rdiff -u -r1.1 -r1.2 src/lib/libc/gen/signalnumber.c cvs rdiff -u -r1.5 -r1.6 src/lib/libc/locale/generic_lc_all.c cvs rdiff -u -r1.64 -r1.65 src/lib/libc/locale/setlocale.c cvs rdiff -u -r1.9 -r1.10 src/lib/libc/stdlib/reallocarray.c cvs rdiff -u -r1.4 -r1.5 src/lib/libc/stdlib/strtonum.c cvs rdiff -u -r1.5 -r1.6 src/lib/libc/sys/sched.c cvs rdiff -u -r1.3 -r1.4 src/lib/libc/time/getdate.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/citrus
Module Name:src Committed By: kamil Date: Fri Jan 5 17:52:06 UTC 2018 Modified Files: src/lib/libc/citrus: citrus_lc_ctype.c Log Message: Include namespace.h in citrus/citrus_lc_ctype.c The NetBSD Standard C Library uses internally some of its functions with a mangled symbol name, usually "_symbol". The internal functions shall not use the global (public) symbols. This change eliminates usage of the global name of the following symbol: - strlcpy -> _strlcpy Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/lib/libc/citrus/citrus_lc_ctype.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/external/bsd/compiler_rt/dist/lib/profile
Module Name:src Committed By: kamil Date: Fri Jan 5 17:54:31 UTC 2018 Modified Files: src/sys/external/bsd/compiler_rt/dist/lib/profile: GCDAProfiling.c Log Message: Include namespace.h in GCDAProfiling.c (compiler_rt) The NetBSD Standard C Library uses internally some of its functions with a mangled symbol name, usually "_symbol". The internal functions shall not use the global (public) symbols. This change eliminates usage of the global name of the following symbols: - fdopen -> _fdopen - mmap -> _mmap - strdup -> _strdup Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.1.1.5 -r1.2 \ src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/include
Module Name:src Committed By: kamil Date: Fri Jan 5 18:57:06 UTC 2018 Modified Files: src/lib/libc/include: namespace.h Log Message: Register more syscalls in namespace.h (of libc) Add weak symbols for: - fcntl - close - execve - setcontext - wait6 - write - writev These syscalls are already marked as WEAKASM, generating weak references. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.189 -r1.190 src/lib/libc/include/namespace.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc
Module Name:src Committed By: kamil Date: Fri Jan 5 19:01:36 UTC 2018 Modified Files: src/lib/libc/gen: closefrom.c exect.c src/lib/libc/stdio: fopen.c freopen.c Log Message: Include namespace.h in a few of libc source files The NetBSD Standard C Library uses internally some of its functions with a mangled symbol name, usually "_symbol". The internal functions shall not use the global (public) symbols. This change finishes elimination of usage of the global name of the following symbols: - close -> _close - execve -> _execve - fcntl -> _fcntl - setcontext -> _setcontext - wait6 -> _wait6 - write -> _write - writev -> _writev Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/lib/libc/gen/closefrom.c cvs rdiff -u -r1.1 -r1.2 src/lib/libc/gen/exect.c cvs rdiff -u -r1.17 -r1.18 src/lib/libc/stdio/fopen.c cvs rdiff -u -r1.20 -r1.21 src/lib/libc/stdio/freopen.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc
Module Name:src Committed By: kamil Date: Fri Jan 5 19:29:44 UTC 2018 Modified Files: src/lib/libc/dlfcn: dlfcn_elf.c src/lib/libc/include: namespace.h Log Message: Register dl_iterate_phdr in the libc's namespace.h The NetBSD Standard C Library uses internally some of its functions with a mangled symbol name, usually "_symbol". The internal functions shall not use the global (public) symbols. Stop using the public global name of dl_iterate_phdr in tls/tls.c: __libc_static_tls_setup(). Follow the approach with other dlopen(3)-like functions with the namespace.h in the dl_iterate_phdr() case. Use internally a weak symbol: __dl_iterate_phdr instead of dl_iterate_phdr. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/lib/libc/dlfcn/dlfcn_elf.c cvs rdiff -u -r1.190 -r1.191 src/lib/libc/include/namespace.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc
Module Name:src Committed By: kamil Date: Fri Jan 5 20:01:32 UTC 2018 Modified Files: src/lib/libc/include: namespace.h src/lib/libc/time: asctime.c Log Message: Register new weak symbol in libc for internal usage: asctime The NetBSD Standard C Library uses internally some of its functions with a mangled symbol name, usually "_symbol". The internal functions shall not use the global (public) symbols. Add asctime to namespace.h. Register a new __weak_alias() entry for asctime() in asctime.c. acstime() is used internally in ctime and __ctime50. This revision switches the internal usage to the internal symbol. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.191 -r1.192 src/lib/libc/include/namespace.h cvs rdiff -u -r1.22 -r1.23 src/lib/libc/time/asctime.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: kamil Date: Fri Jan 5 20:30:51 UTC 2018 Modified Files: src/lib/libc/include: namespace.h src/lib/libc/stdlib: atoi.c src/sys/external/bsd/compiler_rt/dist/lib/profile: InstrProfilingFile.c Log Message: Register new weak symbol in libc for internal usage: atoi The NetBSD Standard C Library uses internally some of its functions with a mangled symbol name, usually "_symbol". The internal functions shall not use the global (public) symbols. Add atoi to namespace.h. Register a new __weak_alias() entry for atoi() in atoi.c. atoi() is used internally in getrpcent(), rresvport_af(), ftok(), err(), __llvm_profile_write_file(), llvm_gcda_start_file(), citrus_iconv_open(), getprotoent_r(), __rpc_uaddr2taddr_af(), __res_nopt_rdata() and servent_parseline(). This revision switches the internal usage to the internal symbol. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.192 -r1.193 src/lib/libc/include/namespace.h cvs rdiff -u -r1.12 -r1.13 src/lib/libc/stdlib/atoi.c cvs rdiff -u -r1.1.1.4 -r1.2 \ src/sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingFile.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: kamil Date: Sat Jan 6 16:41:24 UTC 2018 Modified Files: src/sys/compat/aoutm68k: aoutm68k_syscall.h aoutm68k_syscallargs.h aoutm68k_syscalls.c aoutm68k_sysent.c syscalls.master src/sys/compat/freebsd: freebsd_syscall.h freebsd_syscallargs.h freebsd_syscalls.c freebsd_sysent.c syscalls.master src/sys/compat/netbsd32: netbsd32_netbsd.c netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_syscalls_autoload.c netbsd32_sysent.c netbsd32_systrace_args.c syscalls.master src/sys/compat/sunos: sunos_syscall.h sunos_syscallargs.h sunos_syscalls.c sunos_sysent.c syscalls.master src/sys/compat/sunos32: sunos32_syscall.h sunos32_syscallargs.h sunos32_syscalls.c sunos32_sysent.c syscalls.master src/sys/compat/ultrix: syscalls.master ultrix_syscall.h ultrix_syscallargs.h ultrix_syscalls.c ultrix_sysent.c src/sys/kern: init_sysent.c syscalls.c syscalls.master syscalls_autoload.c systrace_args.c src/sys/rump/include/rump: rump_syscalls.h src/sys/rump/librump/rumpkern: rump_syscalls.c src/sys/sys: syscall.h syscallargs.h src/sys/uvm: uvm_unix.c Log Message: Revert vadvise(2) removal This system call was used in legacy Lisp code, that was inherited to modern age and still compiled against supported compat layers (e.g. in clisp, oaklisp, Franz Lisp). It used to instruct the kernel about paging policy (G/C aware, flush etc). Newly compiled code (assuming that it will detect vadvise()) will use the libc stub for vadvise(). The headers for this interface are gone. vadvise(2) could be marked as COMPAT_80, but as long as we support ultrix, sunos or aout68k ABI, don't bother with this. Requested by To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/compat/aoutm68k/aoutm68k_syscall.h cvs rdiff -u -r1.49 -r1.50 src/sys/compat/aoutm68k/aoutm68k_syscallargs.h cvs rdiff -u -r1.48 -r1.49 src/sys/compat/aoutm68k/aoutm68k_syscalls.c cvs rdiff -u -r1.53 -r1.54 src/sys/compat/aoutm68k/aoutm68k_sysent.c cvs rdiff -u -r1.40 -r1.41 src/sys/compat/aoutm68k/syscalls.master cvs rdiff -u -r1.87 -r1.88 src/sys/compat/freebsd/freebsd_syscall.h cvs rdiff -u -r1.90 -r1.91 src/sys/compat/freebsd/freebsd_syscallargs.h \ src/sys/compat/freebsd/freebsd_sysent.c cvs rdiff -u -r1.88 -r1.89 src/sys/compat/freebsd/freebsd_syscalls.c cvs rdiff -u -r1.71 -r1.72 src/sys/compat/freebsd/syscalls.master cvs rdiff -u -r1.212 -r1.213 src/sys/compat/netbsd32/netbsd32_netbsd.c cvs rdiff -u -r1.133 -r1.134 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_syscallargs.h cvs rdiff -u -r1.131 -r1.132 src/sys/compat/netbsd32/netbsd32_syscalls.c \ src/sys/compat/netbsd32/netbsd32_sysent.c cvs rdiff -u -r1.12 -r1.13 \ src/sys/compat/netbsd32/netbsd32_syscalls_autoload.c cvs rdiff -u -r1.23 -r1.24 src/sys/compat/netbsd32/netbsd32_systrace_args.c cvs rdiff -u -r1.119 -r1.120 src/sys/compat/netbsd32/syscalls.master cvs rdiff -u -r1.95 -r1.96 src/sys/compat/sunos/sunos_syscall.h cvs rdiff -u -r1.79 -r1.80 src/sys/compat/sunos/sunos_syscallargs.h \ src/sys/compat/sunos/syscalls.master cvs rdiff -u -r1.94 -r1.95 src/sys/compat/sunos/sunos_syscalls.c cvs rdiff -u -r1.90 -r1.91 src/sys/compat/sunos/sunos_sysent.c cvs rdiff -u -r1.36 -r1.37 src/sys/compat/sunos32/sunos32_syscall.h cvs rdiff -u -r1.35 -r1.36 src/sys/compat/sunos32/sunos32_syscallargs.h \ src/sys/compat/sunos32/sunos32_syscalls.c cvs rdiff -u -r1.37 -r1.38 src/sys/compat/sunos32/sunos32_sysent.c cvs rdiff -u -r1.25 -r1.26 src/sys/compat/sunos32/syscalls.master cvs rdiff -u -r1.55 -r1.56 src/sys/compat/ultrix/syscalls.master cvs rdiff -u -r1.71 -r1.72 src/sys/compat/ultrix/ultrix_syscall.h cvs rdiff -u -r1.66 -r1.67 src/sys/compat/ultrix/ultrix_syscallargs.h cvs rdiff -u -r1.70 -r1.71 src/sys/compat/ultrix/ultrix_syscalls.c cvs rdiff -u -r1.73 -r1.74 src/sys/compat/ultrix/ultrix_sysent.c cvs rdiff -u -r1.318 -r1.319 src/sys/kern/init_sysent.c cvs rdiff -u -r1.309 -r1.310 src/sys/kern/syscalls.c cvs rdiff -u -r1.290 -r1.291 src/sys/kern/syscalls.master cvs rdiff -u -r1.26 -r1.27 src/sys/kern/syscalls_autoload.c cvs rdiff -u -r1.28 -r1.29 src/sys/kern/systrace_args.c cvs rdiff -u -r1.107 -r1.108 src/sys/rump/include/rump/rump_syscalls.h cvs rdiff -u -r1.136 -r1.137 src/sys/rump/librump/rumpkern/rump_syscalls.c cvs rdiff -u -r1.303 -r1.304 src/sys/sys/syscall.h cvs rdiff -u -r1.287 -r1.288 src/sys/sys/syscallargs.h cvs rdiff -u -r1.49 -r1.50 src/sys/uvm/uvm_unix.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: kamil Date: Sat Jan 6 16:52:57 UTC 2018 Modified Files: src/doc: CHANGES Log Message: doc: Tweak the vadvise removal entry in CHANGES Note the removal of the vadvise header To generate a diff of this commit: cvs rdiff -u -r1.2343 -r1.2344 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: kamil Date: Sun Jan 7 15:28:34 UTC 2018 Modified Files: src/lib/libc/include: namespace.h src/lib/libc/stdlib: atoi.c src/sys/external/bsd/compiler_rt/dist/lib/profile: InstrProfilingFile.c Log Message: Revert namespacing of atoi(3) Sanitizers can handle recursive interceptions in some / most cases, if they will cause damage the problem will be not workaroundable without libc changes - I will be back to it. Keep namespace of asctime() as this can be a cancellation point according to POSIX. Right now it's not implemented on NetBSD. Defer it for later. Keep weak symbols and namespace for wait6(2) as this could be a cancellation point as well. Defer this for later. Sanitizers's [recursive] interceptors are a hack and moving one way or another can cause new sets of problems. Recursive ones can be useful and cause problems (on Linux there are known with with signal handlers). Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.193 -r1.194 src/lib/libc/include/namespace.h cvs rdiff -u -r1.13 -r1.14 src/lib/libc/stdlib/atoi.c cvs rdiff -u -r1.2 -r1.3 \ src/sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingFile.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc
Module Name:src Committed By: kamil Date: Sun Jan 7 21:19:36 UTC 2018 Modified Files: src/lib/libc/include: namespace.h src/lib/libc/time: asctime.c Log Message: Revert asctime() namespacing asctime() is optionally a cancellation point in the POSIX spec. It's not true for NetBSD. Requested by To generate a diff of this commit: cvs rdiff -u -r1.194 -r1.195 src/lib/libc/include/namespace.h cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/asctime.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libkvm
Module Name:src Committed By: kamil Date: Tue Jan 9 21:13:59 UTC 2018 Modified Files: src/lib/libkvm: kvm_getlwps.3 Log Message: Correct the signature of kvm_getlwps(3) in the man-page. The elemsize argument is of type "size_t", not "int *". Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/lib/libkvm/kvm_getlwps.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libkvm
Module Name:src Committed By: kamil Date: Tue Jan 9 21:17:46 UTC 2018 Modified Files: src/lib/libkvm: kvm_getprocs.3 Log Message: Correct the signature of kvm_getproc2(3) in the man-page. The elemsize argument is of type "size_t", not "int". Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/lib/libkvm/kvm_getprocs.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: kamil Date: Fri Jan 12 23:01:14 UTC 2018 Modified Files: src/bin/ps: ps.c Log Message: Fix an unitialized memory read bug in ps(1) rawcpu of type int, is declared inside main(){} and it can be passed as uninitialized to setpinfo(). The setpinfo() function has a switch checking the value of rawcpu: if (!rawcpu) pi[i].pcpu /= 1.0 - exp(ki[i].p_swtime * log_ccpu); rawcpu is set to 1 with the command line argument "-C". -C Change the way the CPU percentage is calculated by using a "raw" CPU calculation that ignores "resident" time (this normally has no effect). Bug reproducible with an invocation: "ps u". It hides with "ps uC". Initialize rawcpu by default to 0, before the getopt(3) machinery. Detected with MSan running on NetBSD/amd64. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.88 -r1.89 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc
Module Name:src Committed By: kamil Date: Wed Jan 17 01:24:30 UTC 2018 Modified Files: src/lib/libc/gen: closefrom.c exect.c src/lib/libc/include: namespace.h src/lib/libc/stdio: fopen.c freopen.c Log Message: Revert to commits as they broke few rump tests "Include namespace.h in a few of libc source files [...] This change finishes elimination of usage of the global name of the following symbols: - close -> _close - execve -> _execve - fcntl -> _fcntl - setcontext -> _setcontext - wait6 -> _wait6 - write -> _write - writev -> _writev" "Register more syscalls in namespace.h (of libc) Add weak symbols for: - fcntl - close - execve - setcontext - wait6 - write - writev" These changes broke: fs/nfs/t_rquotad:get_nfs_be_1_both fs/nfs/t_rquotad:get_nfs_be_1_group fs/nfs/t_rquotad:get_nfs_be_1_user fs/nfs/t_rquotad:get_nfs_le_1_both fs/nfs/t_rquotad:get_nfs_le_1_group fs/nfs/t_rquotad:get_nfs_le_1_user lib/librumphijack/t_config:fdoff lib/librumphijack/t_tcpip:http lib/librumphijack/t_tcpip:nfs lib/librumphijack/t_vfs:cpcopy lib/librumphijack/t_vfs:mv_x lib/librumphijack/t_vfs:paxcopy net/net/t_forwarding:ipforwarding_fastforward_v4 net/net/t_forwarding:ipforwarding_fastforward_v6 net/net/t_forwarding:ipforwarding_fragment_v4 net/net/t_forwarding:ipforwarding_misc net/net/t_mtudisc6:mtudisc6_basic This revert fixes the failures, except lib/librumphijack/t_vfs. The original changes were added in order to facilitate a usage of sanitizers against programs linked with NetBSD's libc. It is no longer needed, so abandon these changes. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/lib/libc/gen/closefrom.c cvs rdiff -u -r1.2 -r1.3 src/lib/libc/gen/exect.c cvs rdiff -u -r1.195 -r1.196 src/lib/libc/include/namespace.h cvs rdiff -u -r1.18 -r1.19 src/lib/libc/stdio/fopen.c cvs rdiff -u -r1.21 -r1.22 src/lib/libc/stdio/freopen.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: kamil Date: Mon Jan 22 09:45:32 UTC 2018 Modified Files: src/distrib/sets/lists/man: mi src/sbin/mount_autofs: Makefile src/share/man/man5: autofs.5 Added Files: src/sbin/mount_autofs: mount_autofs.8 Log Message: Add mount_autofs(8) from DragonFly BSD To generate a diff of this commit: cvs rdiff -u -r1.1570 -r1.1571 src/distrib/sets/lists/man/mi cvs rdiff -u -r1.1 -r1.2 src/sbin/mount_autofs/Makefile cvs rdiff -u -r0 -r1.1 src/sbin/mount_autofs/mount_autofs.8 cvs rdiff -u -r1.3 -r1.4 src/share/man/man5/autofs.5 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sbin/mount_autofs
Module Name:src Committed By: kamil Date: Mon Jan 22 10:34:20 UTC 2018 Modified Files: src/sbin/mount_autofs: mount_autofs.8 Log Message: Improve the mount_autofs(8) stub documentation Improve DESCRIPTION and NAME. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sbin/mount_autofs/mount_autofs.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ksh
Module Name:src Committed By: kamil Date: Wed Jan 24 09:21:20 UTC 2018 Modified Files: src/bin/ksh: exec.c proto.h table.c var.c Log Message: ksh: Rename a local function tdelete to mytdelete This removes a clash with well-known libc function tdelete(3) from POSIX. This allows to build ksh against MSan. The new name might not be perfect, but long term ksh should be switched to the libc version. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/bin/ksh/exec.c cvs rdiff -u -r1.10 -r1.11 src/bin/ksh/proto.h cvs rdiff -u -r1.4 -r1.5 src/bin/ksh/table.c cvs rdiff -u -r1.21 -r1.22 src/bin/ksh/var.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ksh
Module Name:src Committed By: kamil Date: Wed Jan 24 09:53:21 UTC 2018 Modified Files: src/bin/ksh: c_ksh.c exec.c lex.c proto.h table.c var.c vi.c Log Message: ksh: Rename a local function tsearch to mytsearch This removes a clash with well-known libc function tsearch(3) from POSIX. This allows to build ksh against MSan. The new name might not be perfect, but long term ksh should be switched to the libc version. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/bin/ksh/c_ksh.c cvs rdiff -u -r1.25 -r1.26 src/bin/ksh/exec.c cvs rdiff -u -r1.21 -r1.22 src/bin/ksh/lex.c cvs rdiff -u -r1.11 -r1.12 src/bin/ksh/proto.h cvs rdiff -u -r1.5 -r1.6 src/bin/ksh/table.c cvs rdiff -u -r1.22 -r1.23 src/bin/ksh/var.c cvs rdiff -u -r1.18 -r1.19 src/bin/ksh/vi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists/man
Module Name:src Committed By: kamil Date: Thu Jan 25 22:09:56 UTC 2018 Modified Files: src/distrib/sets/lists/man: mi Log Message: Correct the plist entry for ./usr/share/man/cat8/acorn32/MAKEDEV.0 This file is obsolete, replace '.cat' with 'obsolete'. To generate a diff of this commit: cvs rdiff -u -r1.1574 -r1.1575 src/distrib/sets/lists/man/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: kamil Date: Thu Feb 1 20:50:23 UTC 2018 Modified Files: src/distrib/sets/lists/base: mi src/distrib/sets/lists/comp: mi src/etc/mtree: NetBSD.dist.base src/external/gpl3/gcc.old/usr.bin/include: Makefile Added Files: src/external/gpl3/gcc.old/usr.bin/include/sanitizer: Makefile Log Message: Install GCC (gcc.old/) headers for Sanitizers Install: - allocator_interface.h - asan_interface.h - common_interface_defs.h - tsan_interface_atomic.h Into: - /usr/include/gcc-5/sanitizer Note headers in a comment headers for introduction in future: - dfsan_interface.h - lsan_interface.h - msan_interface.h Skip a file that will never be relevant on NetBSD: - linux_syscall_hooks.h PR 52265 by Kamil Rytarowski Proposed and accepted on tech-toolchain@. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.1170 -r1.1171 src/distrib/sets/lists/base/mi cvs rdiff -u -r1.2171 -r1.2172 src/distrib/sets/lists/comp/mi cvs rdiff -u -r1.167 -r1.168 src/etc/mtree/NetBSD.dist.base cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc.old/usr.bin/include/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc.old/usr.bin/include/sanitizer/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/usr.bin/include
Module Name:src Committed By: kamil Date: Thu Feb 1 21:10:46 UTC 2018 Modified Files: src/external/gpl3/gcc/usr.bin/include: Makefile Added Files: src/external/gpl3/gcc/usr.bin/include/sanitizer: Makefile Log Message: Install GCC (gcc) headers for Sanitizers Sync this code with gcc.old. PR 52265 by Kamil Rytarowski Proposed and accepted on tech-toolchain@. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/usr.bin/include/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/gpl3/gcc/usr.bin/include/sanitizer/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch
Module Name:src Committed By: kamil Date: Thu Feb 15 15:53:57 UTC 2018 Modified Files: src/sys/arch/aarch64/include: mcontext.h src/sys/arch/alpha/include: mcontext.h src/sys/arch/amd64/include: mcontext.h src/sys/arch/arm/include: mcontext.h src/sys/arch/hppa/include: mcontext.h src/sys/arch/i386/include: mcontext.h src/sys/arch/ia64/include: mcontext.h src/sys/arch/m68k/include: mcontext.h src/sys/arch/mips/include: mcontext.h src/sys/arch/or1k/include: mcontext.h src/sys/arch/powerpc/include: mcontext.h src/sys/arch/riscv/include: mcontext.h src/sys/arch/sh3/include: mcontext.h src/sys/arch/sparc/include: mcontext.h src/sys/arch/vax/include: mcontext.h Log Message: Introduce _UC_MACHINE_FP() as a macro _UC_MACHINE_FP() is a helper macro to extract from mcontext a frame pointer. Don't rely on this interface as a compiler might strip frame pointer or optimize it making this interface unreliable. For hppa assume a small frame context, for larger frames FP might be located in a different register (4 instead of 3). For ia64 there is no strict frame pointer, and registers might rotate. Reuse 79 following: ./gcc/config/ia64/ia64.h:#define HARD_FRAME_POINTER_REGNUM LOC_REG (79) Once ia64 will mature, this should be revisited. A macro can encapsulate a real function for extracting Frame Pointer on more complex CPUs / ABIs. For the remaining CPUs, reuse standard register as defined in appropriate ABI. The direct users of this macro are LLVM and GCC with Sanitizers. Proposed on tech-userlevel@. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/aarch64/include/mcontext.h cvs rdiff -u -r1.8 -r1.9 src/sys/arch/alpha/include/mcontext.h cvs rdiff -u -r1.18 -r1.19 src/sys/arch/amd64/include/mcontext.h cvs rdiff -u -r1.18 -r1.19 src/sys/arch/arm/include/mcontext.h cvs rdiff -u -r1.8 -r1.9 src/sys/arch/hppa/include/mcontext.h cvs rdiff -u -r1.13 -r1.14 src/sys/arch/i386/include/mcontext.h cvs rdiff -u -r1.5 -r1.6 src/sys/arch/ia64/include/mcontext.h cvs rdiff -u -r1.9 -r1.10 src/sys/arch/m68k/include/mcontext.h cvs rdiff -u -r1.21 -r1.22 src/sys/arch/mips/include/mcontext.h cvs rdiff -u -r1.1 -r1.2 src/sys/arch/or1k/include/mcontext.h cvs rdiff -u -r1.17 -r1.18 src/sys/arch/powerpc/include/mcontext.h cvs rdiff -u -r1.4 -r1.5 src/sys/arch/riscv/include/mcontext.h cvs rdiff -u -r1.10 -r1.11 src/sys/arch/sh3/include/mcontext.h cvs rdiff -u -r1.13 -r1.14 src/sys/arch/sparc/include/mcontext.h cvs rdiff -u -r1.8 -r1.9 src/sys/arch/vax/include/mcontext.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/x86/include
Module Name:src Committed By: kamil Date: Sat Feb 17 13:01:23 UTC 2018 Modified Files: src/sys/arch/x86/include: Makefile Log Message: Stop installing dbregs.h This is now kernel-only header. The behavior is well specified by the CPU documents and we don't introduce changes to it. Noted by To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/arch/x86/include/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/sparc/include
Module Name:src Committed By: kamil Date: Sat Feb 17 15:22:22 UTC 2018 Modified Files: src/sys/arch/sparc/include: mcontext.h Log Message: Improve _UC_MACHINE_FP() for SPARC/SPARC64 Introduce a static inline function _uc_machine_fp() that contains improved caluclation of a frame pointer. Algorithm: uptr *stk_ptr; # if defined (__arch64__) stk_ptr = (uptr *) (*sp + 2047); # else stk_ptr = (uptr *) *sp; # endif *bp = stk_ptr[15]; Noted by To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/arch/sparc/include/mcontext.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists/comp
Module Name:src Committed By: kamil Date: Sat Feb 17 21:46:42 UTC 2018 Modified Files: src/distrib/sets/lists/comp: mi Log Message: Try to correct generation of the sun2 distribution Mark the headers for GCC sanitizers as gcccmds. To generate a diff of this commit: cvs rdiff -u -r1.2183 -r1.2184 src/distrib/sets/lists/comp/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/include
Module Name:src Committed By: kamil Date: Tue Feb 20 02:35:24 UTC 2018 Modified Files: src/include: string.h Log Message: Mark in string.h: memccpy(3) and strdup(3) as _POSIX_C_SOURCE >= 2001 To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/include/string.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/stdio
Module Name:src Committed By: kamil Date: Tue Feb 20 02:52:41 UTC 2018 Modified Files: src/lib/libc/stdio: setbuf.3 Log Message: Improve the setbuf(3) man-page Move historical lines to newly added HISTORY section. Additional historical notes obtained from OpenBSD. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/lib/libc/stdio/setbuf.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libpthread
Module Name:src Committed By: kamil Date: Tue Feb 20 05:10:52 UTC 2018 Modified Files: src/lib/libpthread: pthread.h Log Message: Remove namespace restriction from pthread_condattr_{g,s}etclock(3) These functions were marked as _NETBSD_SOURCE when introduced to the sources. In fact they are regular POSIX threading functions available since the 2001 standard. There is an older mention about alignment with "IEEE Std 1003.1j-2000". This corrects usage of these functions when a source code is compiled with a POSIX namespace option. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/lib/libpthread/pthread.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/sys
Module Name:src Committed By: kamil Date: Tue Feb 20 18:20:05 UTC 2018 Modified Files: src/sys/sys: fcntl.h Log Message: Enable O_NOFOLLOW in the POSIX namespace This open(2) flag first appeared in FreeBSD and was standarized by POSIX in the 2008 standard. To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/sys/sys/fcntl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/net
Module Name:src Committed By: kamil Date: Wed Feb 21 03:13:50 UTC 2018 Modified Files: src/lib/libc/net: getnetent.3 Log Message: Improve the getnetent(3) man-page Document return type of setnetent(3) and endnetent(3). Both "void". Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/lib/libc/net/getnetent.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/modules
Module Name:src Committed By: kamil Date: Sun Feb 25 10:17:12 UTC 2018 Modified Files: src/sys/modules: Makefile Log Message: Remove ksem module reference This does not exist in HEAD. It looks like accidentally committed in: Add new modules (for i386 and amd64 only) for the imcsmb SMBus driver. src/sys/modules/Makefile r1.200 To generate a diff of this commit: cvs rdiff -u -r1.200 -r1.201 src/sys/modules/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists/comp
Module Name:src Committed By: kamil Date: Sun Feb 25 12:28:18 UTC 2018 Modified Files: src/distrib/sets/lists/comp: mi Log Message: Correct OpenSSL 1.1 entries in plist Fix references to: ./usr/share/man/cat3/BIO_get_data.0 ./usr/share/man/cat3/SSL_CONF_cmd.0 This is obserbable with the MKCATPAGES=yes build option. To generate a diff of this commit: cvs rdiff -u -r1.2184 -r1.2185 src/distrib/sets/lists/comp/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists/man
Module Name:src Committed By: kamil Date: Sun Feb 25 12:53:22 UTC 2018 Modified Files: src/distrib/sets/lists/man: mi Log Message: Register the x86/imcsmb man/cat/html page To generate a diff of this commit: cvs rdiff -u -r1.1576 -r1.1577 src/distrib/sets/lists/man/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: kamil Date: Sun Feb 25 14:27:07 UTC 2018 Modified Files: src/tests/lib/libc/sys: Makefile t_ucontext.c Log Message: Add new tests in lib/libc/sys/t_ucontext New tests: - ucontext_sp - ucontext_fp - ucontext_pc - ucontext_intrv They test respectively: - _UC_MACHINE_SP - _UC_MACHINE_FP - _UC_MACHINE_PC - _UC_MACHINE_INTRV These tests attempt to access and print the values from ucontext, without interpreting the values. This is a follow up of the _UC_MACHINE_FP() introduction. These tests use PRIxREGISTER, and require to be built with -D_KERNTYPES. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/tests/lib/libc/sys/Makefile cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_ucontext.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/man/man2
Module Name:src Committed By: kamil Date: Sun Feb 25 16:53:51 UTC 2018 Modified Files: src/share/man/man2: ucontext.2 Log Message: Document _UC_MACHINE_*() in ucontext(2) Document: - _UC_MACHINE_SP() - _UC_MACHINE_FP() - _UC_MACHINE_PC() - _UC_MACHINE_INTRV() - _UC_MACHINE_SET_PC() Document fragileness of the frame-pointer accessor. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/share/man/man2/ucontext.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/regex
Module Name:src Committed By: kamil Date: Mon Feb 26 14:04:43 UTC 2018 Modified Files: src/lib/libc/regex: regex.3 Log Message: Document ragasub(3) & regnsub(3) implementation detail Added note: Only 10 elements of the rm array can be used. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/lib/libc/regex/regex.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/ia64/include
Module Name:src Committed By: kamil Date: Tue Feb 27 09:51:28 UTC 2018 Modified Files: src/sys/arch/ia64/include: mcontext.h Log Message: Add a dummy implementation of _UC_MACHINE_INTRV() for ia64 This fixes a build problem in src/tests/lib/libc/sys/t_ucontext.c. This needs to be revisited once the port will get more mature. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/ia64/include/mcontext.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: kamil Date: Tue Feb 27 11:15:53 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ucontext.c Log Message: Make the t_ucontext.c test more portable Cast _UC_MACHINE_*(&u) to (register_t). This allows to print the returned values with PRIxREGISTER. This corrects build failures on MIPS and HPPA. sizeof(int) == sizeof(long) on these 32-bit systems. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/sys/t_ucontext.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/hppa/include
Module Name:src Committed By: kamil Date: Tue Feb 27 11:26:39 UTC 2018 Modified Files: src/sys/arch/hppa/include: mcontext.h Log Message: Implement _UC_MACHINE_INTRV() for hppa INTRV = integer return value For hppa this is R28 alias _REG_RET0. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/hppa/include/mcontext.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: kamil Date: Tue Feb 27 12:20:35 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ucontext.c Log Message: Include in t_ucontext.c The user-land header is required for PRI types. We were including indirectly through sources, and this worked for most of the ports. This fixes indirectly a build for MIPS (tested ports: arc and hpcmips), where PRI types (PRIxREGISTER) were undefined. Noted by . To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/sys/t_ucontext.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: kamil Date: Mon Mar 5 11:24:35 UTC 2018 Modified Files: src/doc: CHANGES.prev src/lib/libc/sys: ptrace.2 src/sys/kern: sys_ptrace_common.c src/sys/sys: ptrace.h src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Remove PT_GET_SIGMASK / PT_SET_SIGMASK These operations cloned Linux's specific PTRACE_GETSIGMASK / PTRACE_SETSIGMASK. This feature was useful in applications like rr/criu/reptyr-like, where the ptrace(2) interface is abused for the purpose of constructing an arbitrary process. It's not reliable and not portable. For the NetBSD case it will be better to invent something dedicated for serializing and deserializing a process with threads. Noted on tech-toolchain@ and blog entry "LLDB restoration and return to ptrace(2)" https://blog.netbsd.org/tnf/entry/lldb_restoration_and_return_to To generate a diff of this commit: cvs rdiff -u -r1.137 -r1.138 src/doc/CHANGES.prev cvs rdiff -u -r1.67 -r1.68 src/lib/libc/sys/ptrace.2 cvs rdiff -u -r1.34 -r1.35 src/sys/kern/sys_ptrace_common.c cvs rdiff -u -r1.62 -r1.63 src/sys/sys/ptrace.h cvs rdiff -u -r1.22 -r1.23 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: kamil Date: Tue Mar 6 21:11:51 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_x86_wait.h Log Message: Correct all ATF failures in t_ptrace_x86_wait.h (debug registers) This code after refactoring stopped calling functions that were designed to trigger expected behavior and thus, tests were breaking. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/sys/t_ptrace_x86_wait.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: kamil Date: Wed Mar 7 10:53:55 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: ATF: Correct a race bug in attach2 (t_ptrace_wait*) At the end of the test we resume a tracer and expect to observe it to collect the debuggee. We cannot from a parent point of view wait for collecting it with WNOHANG without a race. Remove the WNOHANG option from wait*(2) call. This corrects one type of race. This test is still racy for some other and unknown reason and this is being investigated. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/sys
Module Name:src Committed By: kamil Date: Wed Mar 7 16:40:06 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: ATF: Reenable attach2 in t_ptrace_wait* The primary race specific to this test has been fixed in previous commit (wrong WNOHANG). This test is still racy and breaks like once every 30,000 execution. This is down like from once from every 100th execution in the past. The remaning race is not specific to attach2 and I can reproduce it with at least attach1. It still looks like being specific to NetBSD and it's not reproducible on Linux and FreeBSD. Perhaps a bug with pipe(2)/write(2)/ read(2) or close to these features. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/kern
Module Name:src Committed By: kamil Date: Tue Mar 13 02:24:26 UTC 2018 Modified Files: src/sys/kern: kern_proc.c Log Message: Make sysctl_doeproc() more predictable Swap the order of looking into zombie and all process lists, start now with the zombie one. This prevents a race observed previously that the same process could be detected on both lists during a single polling call. While there: - Short-circuit break for KERN_PROC_PID, once a pid has been detected. - Removal of redundant "if (kbuf)" and "if (marker)" checks. - Update of comments regarding potential optimization, explaining why we don't want to it as of now. Performance gain from lookup call vs iteration over a list is neglible on a regular system. - Return ESRCH when no results have been found. This allows more easily to implement a retry or abandon algorithm. This corrects races observed in the existing ATF ptrace(2) tests, related to await_zombie(). This function was expecting to check whether a process has been transformed into a zombie, however it was causing occasional crashes as it was overflowing the return buffer, returning the same pid twice: once from allproc list and the second time from zombieproc one. Fix suggested by Short-circuit break suggested by Discussed on tech-kern. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.210 -r1.211 src/sys/kern/kern_proc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.