CVS commit: src/external/bsd/nvi/usr.bin/recover

2017-11-03 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Nov 4 05:43:18 UTC 2017 Modified Files: src/external/bsd/nvi/usr.bin/recover: virecover Log Message: - don't use command substitution to glob a pattern into a list of filenames; it is less efficient than doing it

CVS commit: src/external/bsd/nvi/usr.bin/recover

2017-11-03 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Nov 4 05:43:18 UTC 2017 Modified Files: src/external/bsd/nvi/usr.bin/recover: virecover Log Message: - don't use command substitution to glob a pattern into a list of filenames; it is less efficient than doing it

CVS commit: src/external/bsd/nvi/dist/common

2017-11-03 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Nov 4 03:26:41 UTC 2017 Modified Files: src/external/bsd/nvi/dist/common: recover.c Log Message: be more careful about opening recovery files... in particular deal with people trying to get 'vi -r' stuck using named pipes,

CVS commit: src/external/bsd/nvi/dist/common

2017-11-03 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Nov 4 03:26:41 UTC 2017 Modified Files: src/external/bsd/nvi/dist/common: recover.c Log Message: be more careful about opening recovery files... in particular deal with people trying to get 'vi -r' stuck using named pipes,

CVS commit: src/lib/libc/stdio

2017-11-03 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Nov 4 02:49:55 UTC 2017 Modified Files: src/lib/libc/stdio: flags.c fopen.3 Log Message: Implement nofollow (l) for fopen(3). To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/lib/libc/stdio/flags.c cvs

CVS commit: src/lib/libc/stdio

2017-11-03 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Nov 4 02:49:55 UTC 2017 Modified Files: src/lib/libc/stdio: flags.c fopen.3 Log Message: Implement nofollow (l) for fopen(3). To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/lib/libc/stdio/flags.c cvs

CVS commit: src/sys/dev/wscons

2017-11-03 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Nov 4 01:52:09 UTC 2017 Modified Files: src/sys/dev/wscons: wsdisplay_compat_usl.c wsdisplay_glyphcache.c Log Message: use sizeof(*var) instead of sizeof(type) To generate a diff of this commit: cvs rdiff -u -r1.50

CVS commit: src/sys/dev/wscons

2017-11-03 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Nov 4 01:52:09 UTC 2017 Modified Files: src/sys/dev/wscons: wsdisplay_compat_usl.c wsdisplay_glyphcache.c Log Message: use sizeof(*var) instead of sizeof(type) To generate a diff of this commit: cvs rdiff -u -r1.50

CVS commit: src/sys/dev

2017-11-03 Thread Nathanial Sloss
Module Name:src Committed By: nat Date: Sat Nov 4 01:50:48 UTC 2017 Modified Files: src/sys/dev: audio.c Log Message: AU_RING_SIZE -> s.bufsize in audio_initbufs. To generate a diff of this commit: cvs rdiff -u -r1.428 -r1.429 src/sys/dev/audio.c Please note that

CVS commit: src/sys/dev

2017-11-03 Thread Nathanial Sloss
Module Name:src Committed By: nat Date: Sat Nov 4 01:50:48 UTC 2017 Modified Files: src/sys/dev: audio.c Log Message: AU_RING_SIZE -> s.bufsize in audio_initbufs. To generate a diff of this commit: cvs rdiff -u -r1.428 -r1.429 src/sys/dev/audio.c Please note that

CVS commit: src/sys/dev/isa

2017-11-03 Thread Nathanial Sloss
Module Name:src Committed By: nat Date: Sat Nov 4 01:46:56 UTC 2017 Modified Files: src/sys/dev/isa: sbdsp.c Log Message: Add AUDIO_ENCODING_SLINEAR to supported encodings. This allows sb, sbpro & sb16 to configure with 8-bit precision. Tested in games/mame with a

CVS commit: src/sys/dev/isa

2017-11-03 Thread Nathanial Sloss
Module Name:src Committed By: nat Date: Sat Nov 4 01:46:56 UTC 2017 Modified Files: src/sys/dev/isa: sbdsp.c Log Message: Add AUDIO_ENCODING_SLINEAR to supported encodings. This allows sb, sbpro & sb16 to configure with 8-bit precision. Tested in games/mame with a

Re: CVS commit: src/sys/dev

2017-11-03 Thread Nathanial Sloss
On Sat, 4 Nov 2017 09:46:03 matthew green wrote: > > Modified Files: > > src/sys/dev: audio.c > > > > Log Message: > > Blocksizes sould be rounded to a power of 2 as OSS applications need > > this. > Not sure how hard it would be to move it to ossaudio. I'll try to modify ossaudio.c in

re: CVS commit: src/sys/dev

2017-11-03 Thread matthew green
> Modified Files: > src/sys/dev: audio.c > > Log Message: > Blocksizes sould be rounded to a power of 2 as OSS applications need this. sounds like a limitation that belongs in ossaudio not audio. is it hard to move there instead? .mrg.

CVS commit: src

2017-11-03 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Fri Nov 3 22:45:14 UTC 2017 Modified Files: src/sys/kern: kern_history.c src/sys/sys: kernhist.h src/usr.bin/vmstat: vmstat.c Log Message: Remove the ABI version-and-length check that was recently introduced;

CVS commit: src

2017-11-03 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Fri Nov 3 22:45:14 UTC 2017 Modified Files: src/sys/kern: kern_history.c src/sys/sys: kernhist.h src/usr.bin/vmstat: vmstat.c Log Message: Remove the ABI version-and-length check that was recently introduced;

CVS commit: src/sys/dev

2017-11-03 Thread Nathanial Sloss
Module Name:src Committed By: nat Date: Fri Nov 3 21:15:18 UTC 2017 Modified Files: src/sys/dev: audio.c Log Message: Blocksizes sould be rounded to a power of 2 as OSS applications need this. Tested by martin@. To generate a diff of this commit: cvs rdiff -u -r1.427

CVS commit: src/sys/dev

2017-11-03 Thread Nathanial Sloss
Module Name:src Committed By: nat Date: Fri Nov 3 21:15:18 UTC 2017 Modified Files: src/sys/dev: audio.c Log Message: Blocksizes sould be rounded to a power of 2 as OSS applications need this. Tested by martin@. To generate a diff of this commit: cvs rdiff -u -r1.427

CVS commit: src/sys/dev

2017-11-03 Thread Nathanial Sloss
Module Name:src Committed By: nat Date: Fri Nov 3 21:12:44 UTC 2017 Modified Files: src/sys/dev: audio.c Log Message: Revert to previous. It is necessary to use the calculated blocksize if none supplied. Tested by martin@. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/dev

2017-11-03 Thread Nathanial Sloss
Module Name:src Committed By: nat Date: Fri Nov 3 21:12:44 UTC 2017 Modified Files: src/sys/dev: audio.c Log Message: Revert to previous. It is necessary to use the calculated blocksize if none supplied. Tested by martin@. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/dev/wscons

2017-11-03 Thread Maya Rashish
Module Name:src Committed By: maya Date: Fri Nov 3 19:49:23 UTC 2017 Modified Files: src/sys/dev/wscons: wsbell.c wsmouse.c Log Message: Remove redundant includes of malloc.h To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/dev/wscons/wsbell.c cvs

CVS commit: src/sys/dev/wscons

2017-11-03 Thread Maya Rashish
Module Name:src Committed By: maya Date: Fri Nov 3 19:49:23 UTC 2017 Modified Files: src/sys/dev/wscons: wsbell.c wsmouse.c Log Message: Remove redundant includes of malloc.h To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/dev/wscons/wsbell.c cvs

CVS commit: src/sys/dev/wscons

2017-11-03 Thread Maya Rashish
Module Name:src Committed By: maya Date: Fri Nov 3 19:20:27 UTC 2017 Modified Files: src/sys/dev/wscons: wsemul_vt100.c wsemul_vt100_chars.c wskbdutil.c wsmouse.c Log Message: Use __arraycount a bunch Also, DIAGNOSTIC panic -> KASSERT To generate a diff of

CVS commit: src/sys/dev/wscons

2017-11-03 Thread Maya Rashish
Module Name:src Committed By: maya Date: Fri Nov 3 18:49:37 UTC 2017 Modified Files: src/sys/dev/wscons: wsdisplay.c Log Message: Use M_WAITOK if we aren't going to check for NULL before dereferencing Same function already uses M_WAITOK unconditionally, so this is a safe

CVS commit: src/sys/dev/wscons

2017-11-03 Thread Maya Rashish
Module Name:src Committed By: maya Date: Fri Nov 3 18:49:37 UTC 2017 Modified Files: src/sys/dev/wscons: wsdisplay.c Log Message: Use M_WAITOK if we aren't going to check for NULL before dereferencing Same function already uses M_WAITOK unconditionally, so this is a safe

CVS commit: src/sys/dev/wscons

2017-11-03 Thread Maya Rashish
Module Name:src Committed By: maya Date: Fri Nov 3 18:42:36 UTC 2017 Modified Files: src/sys/dev/wscons: wsemul_dumb.c wsemul_sun.c wsemul_vt100.c Log Message: Use c99 initializer for wsemul_ops To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17

CVS commit: src/sys/dev/wscons

2017-11-03 Thread Maya Rashish
Module Name:src Committed By: maya Date: Fri Nov 3 18:42:36 UTC 2017 Modified Files: src/sys/dev/wscons: wsemul_dumb.c wsemul_sun.c wsemul_vt100.c Log Message: Use c99 initializer for wsemul_ops To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17

CVS commit: src/sys/dev/wscons

2017-11-03 Thread Maya Rashish
Module Name:src Committed By: maya Date: Fri Nov 3 17:57:58 UTC 2017 Modified Files: src/sys/dev/wscons: wsemul_sun.c wsemul_vt100.c Log Message: Don't #ifdef DIAGNOSTIC around KASSERTs. the definition of KASSERT does the same thing To generate a diff of this commit:

CVS commit: src/sys/dev/wscons

2017-11-03 Thread Maya Rashish
Module Name:src Committed By: maya Date: Fri Nov 3 17:57:58 UTC 2017 Modified Files: src/sys/dev/wscons: wsemul_sun.c wsemul_vt100.c Log Message: Don't #ifdef DIAGNOSTIC around KASSERTs. the definition of KASSERT does the same thing To generate a diff of this commit:

CVS commit: src/sys/arch/x86/x86

2017-11-03 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Nov 3 16:21:01 UTC 2017 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Revert last and instead #include to get the needed prototype. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64

CVS commit: src/sys/arch/x86/x86

2017-11-03 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Nov 3 16:21:01 UTC 2017 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Revert last and instead #include to get the needed prototype. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64

CVS commit: src/sys/arch/arm/arm32

2017-11-03 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Fri Nov 3 15:31:48 UTC 2017 Modified Files: src/sys/arch/arm/arm32: bus_dma.c Log Message: Fix a comment To generate a diff of this commit: cvs rdiff -u -r1.98 -r1.99 src/sys/arch/arm/arm32/bus_dma.c Please note that diffs are

CVS commit: src/sys/arch/arm/arm32

2017-11-03 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Fri Nov 3 15:31:48 UTC 2017 Modified Files: src/sys/arch/arm/arm32: bus_dma.c Log Message: Fix a comment To generate a diff of this commit: cvs rdiff -u -r1.98 -r1.99 src/sys/arch/arm/arm32/bus_dma.c Please note that diffs are

Re: CVS commit: src/sys/dev

2017-11-03 Thread Robert Swindells
Michael van Elst wrote: >On Fri, Nov 03, 2017 at 09:22:36AM +0900, Takeshi Nakayama wrote: >> errno 5 is EIO. >> >> This is why we check WDF_LOADED is not set and !RAW_PART or !S_IFCHR >> in wdopen(). WDF_LOADED is set only in wd_fistopen(), so we cannot >> open disks

CVS commit: src/sys/dev/wscons

2017-11-03 Thread Maya Rashish
Module Name:src Committed By: maya Date: Fri Nov 3 13:34:56 UTC 2017 Modified Files: src/sys/dev/wscons: wsdisplay_compat_usl.c Log Message: use kmem, don't check for allocation failure with KM_SLEEP To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50

CVS commit: src/sys/dev/wscons

2017-11-03 Thread Maya Rashish
Module Name:src Committed By: maya Date: Fri Nov 3 13:34:56 UTC 2017 Modified Files: src/sys/dev/wscons: wsdisplay_compat_usl.c Log Message: use kmem, don't check for allocation failure with KM_SLEEP To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50

Re: CVS commit: src/sys/dev

2017-11-03 Thread Takeshi Nakayama
>>> Michael van Elst wrote > On Fri, Nov 03, 2017 at 09:22:36AM +0900, Takeshi Nakayama wrote: > > errno 5 is EIO. > > > > This is why we check WDF_LOADED is not set and !RAW_PART or !S_IFCHR > > in wdopen(). WDF_LOADED is set only in wd_fistopen(), so we cannot > > open

CVS commit: src/sys/arch/x86/x86

2017-11-03 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Nov 3 13:11:39 UTC 2017 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: XEN apparently has no fpuinit_mxcsr_mask() and hasn't needed it until now, so just omit this (as it was before) for XEN. If this is not

CVS commit: src/sys/arch/x86/x86

2017-11-03 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Nov 3 13:11:39 UTC 2017 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: XEN apparently has no fpuinit_mxcsr_mask() and hasn't needed it until now, so just omit this (as it was before) for XEN. If this is not

CVS commit: src/sys/dev/ata

2017-11-03 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Fri Nov 3 13:01:26 UTC 2017 Modified Files: src/sys/dev/ata: wd.c wdvar.h Log Message: Add WDF_OPEN flag to really disallow opening of a disk that has been invalidated. Restore wdbiorestart function to actually retry the

CVS commit: src/sys/dev/ata

2017-11-03 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Fri Nov 3 13:01:26 UTC 2017 Modified Files: src/sys/dev/ata: wd.c wdvar.h Log Message: Add WDF_OPEN flag to really disallow opening of a disk that has been invalidated. Restore wdbiorestart function to actually retry the

CVS commit: src/sys

2017-11-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 3 09:59:08 UTC 2017 Modified Files: src/sys/arch/alpha/alpha: kobj_machdep.c src/sys/arch/amd64/amd64: kobj_machdep.c src/sys/arch/arm/arm32: kobj_machdep.c src/sys/arch/hppa/hppa: kobj_machdep.c

CVS commit: src/sys

2017-11-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 3 09:59:08 UTC 2017 Modified Files: src/sys/arch/alpha/alpha: kobj_machdep.c src/sys/arch/amd64/amd64: kobj_machdep.c src/sys/arch/arm/arm32: kobj_machdep.c src/sys/arch/hppa/hppa: kobj_machdep.c

re: CVS commit: src

2017-11-03 Thread Paul Goyette
On Fri, 3 Nov 2017, matthew green wrote: sorry, i forgot the sysctl interface was new. this is OK, but still likely overblown adding a version -- as mentioned, the ABI should never change in an incompatible way (we do have ways that grow structures, but never modify existing parts), so having

re: CVS commit: src

2017-11-03 Thread matthew green
sorry, i forgot the sysctl interface was new. this is OK, but still likely overblown adding a version -- as mentioned, the ABI should never change in an incompatible way (we do have ways that grow structures, but never modify existing parts), so having a version is not necessary - the version

Re: CVS commit: src/sys/dev

2017-11-03 Thread Michael van Elst
On Fri, Nov 03, 2017 at 09:22:36AM +0900, Takeshi Nakayama wrote: > errno 5 is EIO. > > This is why we check WDF_LOADED is not set and !RAW_PART or !S_IFCHR > in wdopen(). WDF_LOADED is set only in wd_fistopen(), so we cannot > open disks unless open with RAW_PART and S_IFCHR in the first time.

re: CVS commit: src

2017-11-03 Thread Paul Goyette
On Fri, 3 Nov 2017, matthew green wrote: thanks for working on this. * Update the data structures used for exporting kernel history data to include a version number as well as the length of history arguments. so, old vmstat breaks for no reason? nothing else changed, right?

CVS commit: src/sys/arch/x86

2017-11-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 3 07:14:24 UTC 2017 Modified Files: src/sys/arch/x86/include: fpu.h src/sys/arch/x86/x86: fpu.c identcpu.c Log Message: Fix MXCSR_MASK, it needs to be detected dynamically, otherwise when masking MXCSR we are

CVS commit: src/sys/arch/x86

2017-11-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 3 07:14:24 UTC 2017 Modified Files: src/sys/arch/x86/include: fpu.h src/sys/arch/x86/x86: fpu.c identcpu.c Log Message: Fix MXCSR_MASK, it needs to be detected dynamically, otherwise when masking MXCSR we are

re: CVS commit: src

2017-11-03 Thread matthew green
thanks for working on this. > * Update the data structures used for exporting kernel history data to > include a version number as well as the length of history arguments. so, old vmstat breaks for no reason? nothing else changed, right? > * All [2] existing users of kernhist(9) have had