The NetBSD Project

CVS log for src/sys/compat/ossaudio/ossaudio.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / compat / ossaudio

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.70.6.5: download - view: text, markup, annotated - select for diffs
Wed Jun 21 21:26:16 2023 UTC (22 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.70.6.4: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.6.4: +3 -3 lines
Pull up following revision(s) (requested by riastradh in ticket #1841):

	sys/compat/sunos32/sunos32_misc.c: revision 1.86
	sys/compat/ossaudio/ossaudio.c: revision 1.85
	sys/compat/linux32/arch/amd64/linux32_machdep.c: revision 1.48

compat_sunos32: Memset zero before copyout.

Unclear if this can leak anything but let's be on the safe side.

compat_ossaudio: Zero-initialize idat before copyout.
Unclear if there are any paths to the copyout without initialization,
but let's play it safe to keep the auditing effort low.

linux32_rt_sendsig: Memset zero before copyout.
Not sure if there's any padding here, but it's a pretty big
structure, fairly likely, so let's be rather safe than sorry.

Revision 1.74.4.6: download - view: text, markup, annotated - select for diffs
Wed Jun 21 21:24:37 2023 UTC (22 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.74.4.5: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.4.5: +3 -3 lines
Pull up following revision(s) (requested by riastradh in ticket #1650):

	sys/compat/sunos32/sunos32_misc.c: revision 1.86
	sys/compat/ossaudio/ossaudio.c: revision 1.85
	sys/compat/linux32/arch/amd64/linux32_machdep.c: revision 1.48

compat_sunos32: Memset zero before copyout.

Unclear if this can leak anything but let's be on the safe side.

compat_ossaudio: Zero-initialize idat before copyout.
Unclear if there are any paths to the copyout without initialization,
but let's play it safe to keep the auditing effort low.

linux32_rt_sendsig: Memset zero before copyout.
Not sure if there's any padding here, but it's a pretty big
structure, fairly likely, so let's be rather safe than sorry.

Revision 1.84.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 21:22:53 2023 UTC (22 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Diff to: previous 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84: +3 -3 lines
Pull up following revision(s) (requested by riastradh in ticket #204):

	sys/compat/sunos32/sunos32_misc.c: revision 1.86
	sys/compat/ossaudio/ossaudio.c: revision 1.85
	sys/compat/linux32/arch/amd64/linux32_machdep.c: revision 1.48

compat_sunos32: Memset zero before copyout.

Unclear if this can leak anything but let's be on the safe side.

compat_ossaudio: Zero-initialize idat before copyout.
Unclear if there are any paths to the copyout without initialization,
but let's play it safe to keep the auditing effort low.

linux32_rt_sendsig: Memset zero before copyout.
Not sure if there's any padding here, but it's a pretty big
structure, fairly likely, so let's be rather safe than sorry.

Revision 1.70.6.4: download - view: text, markup, annotated - select for diffs
Wed Jun 21 21:04:02 2023 UTC (22 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.70.6.3: preferred, colored; branchpoint 1.70: preferred, colored
Changes since revision 1.70.6.3: +6 -2 lines
Pull up following revision(s) (requested by riastradh in ticket #1836):

	sys/compat/linux/arch/i386/linux_machdep.c: revision 1.168
	sys/compat/sunos/sunos_misc.c: revision 1.177
	sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.52
	sys/compat/common/kern_resource_43.c: revision 1.23
	sys/compat/netbsd32/netbsd32_conv.h: revision 1.46
	sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.35
	sys/compat/common/vfs_syscalls_12.c: revision 1.38
	sys/compat/ultrix/ultrix_misc.c: revision 1.126
	sys/compat/common/kern_sig_43.c: revision 1.37
	sys/compat/linux/common/linux_mtio.c: revision 1.8
	sys/compat/freebsd/freebsd_misc.c: revision 1.34
	sys/compat/linux/common/linux_olduname.c: revision 1.67
	sys/compat/linux/arch/mips/linux_machdep.c: revision 1.44
	sys/compat/freebsd/freebsd_sched.c: revision 1.23
	sys/compat/ossaudio/ossaudio.c: revision 1.84
	sys/compat/sys/time_types.h: revision 1.6
	sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.51
	sys/compat/linux/common/linux_file.c: revision 1.119
	sys/compat/linux/arch/arm/linux_machdep.c: revision 1.34
	sys/compat/netbsd32/netbsd32_wait.c: revision 1.25
	sys/compat/linux32/common/linux32_time.c: revision 1.38
	sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.33
	sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.52
	sys/compat/linux32/arch/amd64/linux32_machdep.c: revision 1.46
	sys/compat/netbsd32/netbsd32_compat_12.c: revision 1.36
	sys/compat/ultrix/ultrix_ioctl.c: revision 1.39
	sys/compat/linux/common/linux_misc.c: revision 1.252
	sys/compat/linux/common/linux_hdio.c: revision 1.19
	sys/compat/sunos/sunos_ioctl.c: revision 1.71
	sys/compat/linux/common/linux_sched.c: revision 1.79
	sys/compat/common/kern_info_43.c: revision 1.40
	sys/compat/linux32/common/linux32_exec_elf32.c: revision 1.20
	sys/compat/linux/common/linux_socket.c: revision 1.153
	sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.60
	sys/compat/common/vfs_syscalls_43.c: revision 1.68
	sys/compat/linux/arch/powerpc/linux_exec_powerpc.c: revision 1.25
	sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.9
	sys/compat/common/kern_time_50.c: revision 1.37
	sys/compat/netbsd32/netbsd32_compat_20.c: revision 1.42
	sys/compat/linux/common/linux_cdrom.c: revision 1.28
	sys/compat/linux/arch/m68k/linux_machdep.c: revision 1.43
	sys/compat/common/kern_info_09.c: revision 1.22
	sys/compat/linux32/common/linux32_resource.c: revision 1.12
	sys/compat/linux/common/linux_oldolduname.c: revision 1.67
	sys/compat/netbsd32/netbsd32_nfssvc.c: revision 1.8
	sys/compat/linux32/common/linux32_signal.c: revision 1.21
	sys/compat/common/kern_sig_13.c: revision 1.22
	sys/compat/sunos32/sunos32_ioctl.c: revision 1.36
	sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.62
	sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.23
	sys/compat/netbsd32/netbsd32_time.c: revision 1.56
	sys/compat/linux/common/linux_signal.c: revision 1.84
	sys/compat/netbsd32/netbsd32_signal.c: revision 1.52
	sys/compat/sunos32/sunos32_misc.c: revision 1.85
	sys/compat/linux/common/linux_time.c: revision 1.40
	sys/compat/linux/common/linux_fdio.c: revision 1.14
	sys/compat/common/vfs_syscalls_30.c: revision 1.43

sys/compat: Memset zero before copyout.

Just in case of uninitialized padding which would lead to kernel
stack disclosure.  If the compiler can prove the memset redundant
then it can optimize it away; otherwise better safe than sorry.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Tue Jun 20 15:22:04 2023 UTC (22 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +3 -3 lines
compat_ossaudio: Zero-initialize idat before copyout.

Unclear if there are any paths to the copyout without initialization,
but let's play it safe to keep the auditing effort low.

XXX pullup-8
XXX pullup-9
XXX pullup-10

Revision 1.74.4.5: download - view: text, markup, annotated - select for diffs
Wed Aug 3 11:11:32 2022 UTC (2 years, 8 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-3-RELEASE
Diff to: previous 1.74.4.4: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.4.4: +6 -2 lines
Pull up following revision(s), all via patch
(requested by riastradh in ticket #1487):

	sys/compat/linux/arch/i386/linux_machdep.c: revision 1.168
	sys/compat/sunos/sunos_misc.c: revision 1.177
	sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.52
	sys/compat/common/kern_resource_43.c: revision 1.23
	sys/compat/netbsd32/netbsd32_conv.h: revision 1.46
	sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.35
	sys/compat/common/vfs_syscalls_12.c: revision 1.38
	sys/compat/ultrix/ultrix_misc.c: revision 1.126
	sys/compat/common/kern_sig_43.c: revision 1.37
	sys/compat/linux/common/linux_mtio.c: revision 1.8
	sys/compat/freebsd/freebsd_misc.c: revision 1.34
	sys/compat/freebsd/freebsd_machdep.c: revision 1.5
	sys/compat/linux/common/linux_olduname.c: revision 1.67
	sys/compat/linux/arch/mips/linux_machdep.c: revision 1.44
	sys/compat/freebsd/freebsd_sched.c: revision 1.23
	sys/compat/ossaudio/ossaudio.c: revision 1.84
	sys/compat/sys/time_types.h: revision 1.6
	sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.51
	sys/compat/common/ieee80211_20.c: revision 1.7
	sys/compat/linux/common/linux_file.c: revision 1.119
	sys/compat/linux/arch/arm/linux_machdep.c: revision 1.34
	sys/compat/netbsd32/netbsd32_wait.c: revision 1.25
	sys/compat/linux32/common/linux32_time.c: revision 1.38
	sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.33
	sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.52
	sys/compat/linux32/arch/amd64/linux32_machdep.c: revision 1.46
	sys/compat/netbsd32/netbsd32_compat_12.c: revision 1.36
	sys/compat/ultrix/ultrix_ioctl.c: revision 1.39
	sys/compat/linux/common/linux_misc.c: revision 1.252
	sys/compat/linux/common/linux_hdio.c: revision 1.19
	sys/compat/sunos/sunos_ioctl.c: revision 1.71
	sys/compat/linux/common/linux_sched.c: revision 1.79
	sys/compat/common/kern_info_43.c: revision 1.40
	sys/compat/linux32/common/linux32_exec_elf32.c: revision 1.20
	sys/compat/linux/common/linux_socket.c: revision 1.153
	sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.60
	sys/compat/common/vfs_syscalls_43.c: revision 1.68
	sys/compat/linux/arch/powerpc/linux_exec_powerpc.c: revision 1.25
	sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.9
	sys/compat/common/kern_time_50.c: revision 1.37
	sys/compat/netbsd32/netbsd32_compat_20.c: revision 1.42
	sys/compat/linux/common/linux_cdrom.c: revision 1.28
	sys/compat/linux/arch/m68k/linux_machdep.c: revision 1.43
	sys/compat/common/kern_info_09.c: revision 1.22
	sys/compat/linux32/common/linux32_resource.c: revision 1.12
	sys/compat/linux/common/linux_oldolduname.c: revision 1.67
	sys/compat/common/if_media_80.c: revision 1.4
	sys/compat/linux/arch/alpha/linux_osf1.c: revision 1.5
	sys/compat/netbsd32/netbsd32_nfssvc.c: revision 1.8
	sys/compat/linux32/common/linux32_signal.c: revision 1.21
	sys/compat/common/kern_sig_13.c: revision 1.22
	sys/compat/sunos32/sunos32_ioctl.c: revision 1.36
	sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.62
	sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.23
	sys/compat/netbsd32/netbsd32_time.c: revision 1.56
	sys/compat/linux/common/linux_signal.c: revision 1.84
	sys/compat/netbsd32/netbsd32_signal.c: revision 1.52
	sys/compat/sunos32/sunos32_misc.c: revision 1.85
	sys/compat/linux/common/linux_time.c: revision 1.40
	sys/compat/linux/common/linux_fdio.c: revision 1.14
	sys/compat/common/vfs_syscalls_30.c: revision 1.43

sys/compat: Memset zero before copyout.

Just in case of uninitialized padding which would lead to kernel
stack disclosure.  If the compiler can prove the memset redundant
then it can optimize it away; otherwise better safe than sorry.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Tue Sep 7 11:43:05 2021 UTC (3 years, 7 months ago) by riastradh
Branches: MAIN
CVS tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +6 -2 lines
sys/compat: Memset zero before copyout.

Just in case of uninitialized padding which would lead to kernel
stack disclosure.  If the compiler can prove the memset redundant
then it can optimize it away; otherwise better safe than sorry.

Revision 1.74.4.4: download - view: text, markup, annotated - select for diffs
Mon Apr 27 14:32:34 2020 UTC (4 years, 11 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.74.4.3: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.4.3: +123 -56 lines
Pull up following revision(s) (requested by nia in ticket #855):

	lib/libossaudio/ossaudio.c: revision 1.41
	lib/libossaudio/ossaudio.c: revision 1.42
	lib/libossaudio/ossaudio.c: revision 1.43
	sys/compat/ossaudio/ossaudio.c: revision 1.80
	sys/compat/ossaudio/ossaudio.c: revision 1.81
	sys/compat/ossaudio/ossaudio.c: revision 1.82
	lib/libossaudio/ossaudio.c: revision 1.39
	sys/compat/ossaudio/ossaudio.c: revision 1.79
	lib/libossaudio/ossaudio.c: revision 1.40

ossaudio: Make SNDCTL_DSP_SPEED more robust when using invalid rates.

From the perspective of reading the OSSv4 specification, NetBSD's
behaviour when an invalid sample rate is set makes no sense at all:
AUDIO_SETINFO simply returns an error code, and then we immediately
fall through to getting the sample rate, which is still set to the
legacy default of 8000 Hz.

Instead, what OSS applications generally expect is that they will be
able to receive the actual hardware sample rate. This is very, very
unlikely to be 8000 Hz on a modern machine.

No functional change when setting a sample rate between the supported
rates of 1000 and 192000 Hz. When a rate outside this range is requested,
the hardware rate is returned (on modern hardware, generally always 48000
Hz or a multiple of 48000 Hz).

ossaudio: Make SNDCTL_DSP_SETFMT conform with OSSv4.

The OSSv4 spec says we shouldn't really error if an invalid format is
chosen by an application. Things are especially likely to be confused
if we return MULAW, since in OSSv4 terms that means that's the native
hardware format. Instead, set and return the current hardware format
if an invalid format is chosen.

For the 24-bit sample formats, note that the NetBSD kernel currently
can't handle them in its default configuration, and will return an error
code if you attempt to use them. So, if an applicaton requests 24-bit PCM,
promote it to 32-bit PCM. According to the spec, this is valid and
applications should be checking the return value anyway.

In the Linux compat layer, we just use S16LE as a fallback. The OSSv3
headers that are still being shipped with Linux don't contain definitions
for fancier formats and we can reasonably expect all applications to
support S16LE.

ossaudio: If the user's channel count is rejected, use the hardware count

ossaudio: Make SNDCTL_DSP_[GET|SET][PLAY|RECORD]VOL closer to OSSv4

Problems in the previous code include returning values in the 0-255
range NetBSD uses instead of the 0-100 range OSSv4 expects, using
AUDIO_GETBUFINFO (which doesn't even return the mixer bits), and
not encoding channels as specified: "level=(left)|(right << 8)".

In reality, setting the gain in this way (through /dev/audio rather
than /dev/mixer) doesn't seem to work properly, and the mixer-set
value seems to be retained.

However, these changes at least ensure that the return values are
correct and the balance is set correctly.

I've only found one application using this API (audio/audacious), and
OSSv4 support in it is currently disabled precisely because it breaks
when it attempts to set the track volume using it.

ossaudio: Implement SNDCTL_DSP_(SET|GET)TRIGGER.

Revision 1.70.6.3: download - view: text, markup, annotated - select for diffs
Wed Apr 22 18:15:12 2020 UTC (5 years ago) by martin
Branches: netbsd-8
Diff to: previous 1.70.6.2: preferred, colored; branchpoint 1.70: preferred, colored
Changes since revision 1.70.6.2: +3 -2 lines
Pull up following revision(s) (requested by maxv in ticket #1535):

	sys/compat/ossaudio/ossaudio.c: revision 1.83

ossaudio: Avoid giving userland uninitialized memory. Noticed by maxv.

The uninitalized field in this structure is `fillers`, an array that
simply reserves space for later changes in OSSv4, which this version
of the OSS compat layer (specifically for Linux applications) makes no
effort to implement.

Revision 1.74.4.3: download - view: text, markup, annotated - select for diffs
Wed Apr 22 18:12:26 2020 UTC (5 years ago) by martin
Branches: netbsd-9
Diff to: previous 1.74.4.2: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.4.2: +3 -2 lines
Pull up following revision(s) (requested by maxv in ticket #841):

	sys/compat/ossaudio/ossaudio.c: revision 1.83

ossaudio: Avoid giving userland uninitialized memory. Noticed by maxv.

The uninitalized field in this structure is `fillers`, an array that
simply reserves space for later changes in OSSv4, which this version
of the OSS compat layer (specifically for Linux applications) makes no
effort to implement.

Revision 1.70.14.3: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:14 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.70.14.2: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.14.2: +122 -54 lines
Sync with HEAD

Revision 1.78.6.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:02 2020 UTC (5 years ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +124 -56 lines
Sync with HEAD

Revision 1.83: download - view: text, markup, annotated - select for diffs
Sun Apr 19 21:37:00 2020 UTC (5 years ago) by nia
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -2 lines
ossaudio: Avoid giving userland uninitialized memory. Noticed by maxv.

The uninitalized field in this structure is `fillers`, an array that
simply reserves space for later changes in OSSv4, which this version
of the OSS compat layer (specifically for Linux applications) makes no
effort to implement.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sun Apr 19 13:44:51 2020 UTC (5 years ago) by nia
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +22 -41 lines
ossaudio: Implement SNDCTL_DSP_(SET|GET)TRIGGER.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Wed Apr 15 16:39:06 2020 UTC (5 years ago) by nia
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +54 -7 lines
ossaudio: If the user's channel count is rejected, use the hardware count

Revision 1.80: download - view: text, markup, annotated - select for diffs
Wed Apr 15 15:25:33 2020 UTC (5 years ago) by nia
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +15 -6 lines
ossaudio: Make SNDCTL_DSP_SETFMT conform with OSSv4.

The OSSv4 spec says we shouldn't really error if an invalid format is
chosen by an application. Things are especially likely to be confused
if we return MULAW, since in OSSv4 terms that means that's the native
hardware format. Instead, set and return the current hardware format
if an invalid format is chosen.

For the 24-bit sample formats, note that the NetBSD kernel currently
can't handle them in its default configuration, and will return an error
code if you attempt to use them. So, if an applicaton requests 24-bit PCM,
promote it to 32-bit PCM. According to the spec, this is valid and
applications should be checking the return value anyway.

In the Linux compat layer, we just use S16LE as a fallback. The OSSv3
headers that are still being shipped with Linux don't contain definitions
for fancier formats and we can reasonably expect all applications to
support S16LE.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Wed Apr 15 14:54:34 2020 UTC (5 years ago) by nia
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +38 -8 lines
ossaudio: Make SNDCTL_DSP_SPEED more robust when using invalid rates.

From the perspective of reading the OSSv4 specification, NetBSD's
behaviour when an invalid sample rate is set makes no sense at all:
AUDIO_SETINFO simply returns an error code, and then we immediately
fall through to getting the sample rate, which is still set to the
legacy default of 8000 Hz.

Instead, what OSS applications generally expect is that they will be
able to receive the actual hardware sample rate. This is very, very
unlikely to be 8000 Hz on a modern machine.

No functional change when setting a sample rate between the supported
rates of 1000 and 192000 Hz. When a rate outside this range is requested,
the hardware rate is returned (on modern hardware, generally always 48000
Hz or a multiple of 48000 Hz).

Revision 1.70.14.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:16 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.70.14.1: preferred, colored; branchpoint 1.70: preferred, colored
Changes since revision 1.70.14.1: +25 -17 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.68.10.1: download - view: text, markup, annotated - select for diffs
Tue Jan 21 19:23:37 2020 UTC (5 years, 3 months ago) by martin
Branches: netbsd-7-1
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +4 -4 lines
Pull up the following, requested by christos in ticket #1720:

	sys/compat/common/kern_sig_43.c				1.36
	sys/compat/linux/arch/amd64/linux_machdep.c		1.59
	sys/compat/linux/common/linux_fcntl.h			1.18
	sys/compat/linux/common/linux_file64.c			1.62
	sys/compat/linux/common/linux_ipc.c			1.57
	sys/compat/linux/common/linux_misc.c			1.243
	sys/compat/linux/common/linux_signal.c			1.81
	sys/compat/linux/common/linux_socket.c			1.149 (patch)
	sys/compat/linux/common/linux_socket.h			1.24
	sys/compat/linux/common/linux_statfs.h			1.7
	sys/compat/linux/common/linux_termios.c			1.38
	sys/compat/linux/common/linux_termios.h			1.22
	sys/compat/linux32/common/linux32_dirent.c		1.20
	sys/compat/linux32/common/linux32_ioctl.c		1.14
	sys/compat/linux32/common/linux32_misc.c		1.27
	sys/compat/linux32/common/linux32_signal.c		1.20
	sys/compat/linux32/common/linux32_sysinfo.c		1.8
	sys/compat/linux32/common/linux32_termios.c		1.15
	sys/compat/linux32/common/linux32_utsname.c		1.10
	sys/compat/netbsd32/netbsd32_compat_20.c		1.39
	sys/compat/netbsd32/netbsd32_compat_43.c		1.59
	sys/compat/netbsd32/netbsd32_compat_50.c		1.44
	sys/compat/ossaudio/ossaudio.c				1.75
	sys/kern/sysv_shm.c					1.138
	sys/miscfs/procfs/procfs_linux.c			1.75 (patch)
	sys/sys/shm.h						1.54 (patch)

Fix various info leaks, out of bound access, usage of uninitialized
values and direct access to userland variables from kernel space
and memory leaks in system calls implemented for the compatibility
subsystems.

Revision 1.68.4.1: download - view: text, markup, annotated - select for diffs
Tue Jan 21 19:19:17 2020 UTC (5 years, 3 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +4 -4 lines
Pull up the following, requested by christos in ticket #1720:

	sys/compat/common/kern_sig_43.c				1.36
	sys/compat/linux/arch/amd64/linux_machdep.c		1.59
	sys/compat/linux/common/linux_fcntl.h			1.18
	sys/compat/linux/common/linux_file64.c			1.62
	sys/compat/linux/common/linux_ipc.c			1.57
	sys/compat/linux/common/linux_misc.c			1.243
	sys/compat/linux/common/linux_signal.c			1.81
	sys/compat/linux/common/linux_socket.c			1.149 (patch)
	sys/compat/linux/common/linux_socket.h			1.24
	sys/compat/linux/common/linux_statfs.h			1.7
	sys/compat/linux/common/linux_termios.c			1.38
	sys/compat/linux/common/linux_termios.h			1.22
	sys/compat/linux32/common/linux32_dirent.c		1.20
	sys/compat/linux32/common/linux32_ioctl.c		1.14
	sys/compat/linux32/common/linux32_misc.c		1.27
	sys/compat/linux32/common/linux32_signal.c		1.20
	sys/compat/linux32/common/linux32_sysinfo.c		1.8
	sys/compat/linux32/common/linux32_termios.c		1.15
	sys/compat/linux32/common/linux32_utsname.c		1.10
	sys/compat/netbsd32/netbsd32_compat_20.c		1.39
	sys/compat/netbsd32/netbsd32_compat_43.c		1.59
	sys/compat/netbsd32/netbsd32_compat_50.c		1.44
	sys/compat/ossaudio/ossaudio.c				1.75
	sys/kern/sysv_shm.c					1.138
	sys/miscfs/procfs/procfs_linux.c			1.75 (patch)
	sys/sys/shm.h						1.54 (patch)

Fix various info leaks, out of bound access, usage of uninitialized
values and direct access to userland variables from kernel space
and memory leaks in system calls implemented for the compatibility
subsystems.

Revision 1.70.6.2: download - view: text, markup, annotated - select for diffs
Tue Jan 21 18:12:54 2020 UTC (5 years, 3 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-2-RELEASE
Diff to: previous 1.70.6.1: preferred, colored; branchpoint 1.70: preferred, colored
Changes since revision 1.70.6.1: +4 -4 lines
Pull up the following, requested by christos in ticket #1487:

	sys/compat/common/kern_sig_43.c				1.36
	sys/compat/linux/arch/amd64/linux_machdep.c		1.59
	sys/compat/linux/common/linux_fcntl.h			1.18
	sys/compat/linux/common/linux_file64.c			1.62
	sys/compat/linux/common/linux_ipc.c			1.57
	sys/compat/linux/common/linux_misc.c			1.243
	sys/compat/linux/common/linux_signal.c			1.81
	sys/compat/linux/common/linux_socket.c			1.149
	sys/compat/linux/common/linux_socket.h			1.24
	sys/compat/linux/common/linux_statfs.h			1.7
	sys/compat/linux/common/linux_termios.c			1.38
	sys/compat/linux/common/linux_termios.h			1.22
	sys/compat/linux32/common/linux32_dirent.c		1.20
	sys/compat/linux32/common/linux32_ioctl.c		1.14
	sys/compat/linux32/common/linux32_misc.c		1.27
	sys/compat/linux32/common/linux32_signal.c		1.20
	sys/compat/linux32/common/linux32_sysinfo.c		1.8
	sys/compat/linux32/common/linux32_termios.c		1.15
	sys/compat/linux32/common/linux32_utsname.c		1.10
	sys/compat/netbsd32/netbsd32_compat_20.c		1.39
	sys/compat/netbsd32/netbsd32_compat_43.c		1.59
	sys/compat/netbsd32/netbsd32_compat_50.c		1.44
	sys/compat/ossaudio/ossaudio.c				1.75
	sys/kern/sysv_shm.c					1.138
	sys/miscfs/procfs/procfs_linux.c			1.75 (patch)
	sys/sys/shm.h						1.54

Fix various info leaks, out of bound access, usage of uninitialized
values and direct access to userland variables from kernel space
and memory leaks in system calls implemented for the compatibility
subsystems.

Revision 1.74.4.2: download - view: text, markup, annotated - select for diffs
Tue Nov 19 11:01:27 2019 UTC (5 years, 5 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.74.4.1: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.4.1: +18 -10 lines
Pull up following revision(s) (requested by isaki in ticket #446):
	lib/libossaudio/ossaudio.c: revision 1.37
	lib/libossaudio/ossaudio.c: revision 1.38
	sys/compat/ossaudio/ossaudio.c: revision 1.77
	sys/compat/ossaudio/ossaudio.c: revision 1.78
Use record.sample_rate for recording on SNDCTL_DSP_SPEED.
Fix PR lib/54667.
Use record.sample_rate for recording on SNDCTL_DSP_SPEED.
It's kernel side of PR lib/54667.
Use record field for recording even on
SNDCTL_DSP_STEREO, SNDCTL_DSP_SETFMT, and SNDCTL_DSP_CHANNELS.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sun Nov 3 11:13:46 2019 UTC (5 years, 5 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: bouyer-xenpvh
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +18 -13 lines
Use record field for recording even on
SNDCTL_DSP_STEREO, SNDCTL_DSP_SETFMT, and SNDCTL_DSP_CHANNELS.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Sat Nov 2 11:56:34 2019 UTC (5 years, 5 months ago) by isaki
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +6 -3 lines
Use record.sample_rate for recording on SNDCTL_DSP_SPEED.
It's kernel side of PR lib/54667.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Thu Sep 26 01:37:52 2019 UTC (5 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +7 -7 lines
- "source" is u_long in the kernel (and int in userland). Cast -1 to u_long.
- make "s" unsigned since blocksize is too.

Revision 1.74.4.1: download - view: text, markup, annotated - select for diffs
Fri Sep 13 06:25:26 2019 UTC (5 years, 7 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -4 lines
Pull up following revision(s) (requested by maxv in ticket #194):

	sys/compat/linux/common/linux_socket.c: revision 1.146
	sys/compat/linux/common/linux_socket.c: revision 1.147
	sys/compat/linux/common/linux_socket.c: revision 1.148
	sys/compat/linux/common/linux_socket.c: revision 1.149
	sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.59
	sys/compat/linux32/common/linux32_sysinfo.c: revision 1.8
	sys/kern/sysv_shm.c: revision 1.138
	sys/compat/linux/common/linux_file64.c: revision 1.61
	sys/compat/linux/common/linux_file64.c: revision 1.62
	sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.58
	sys/compat/linux32/common/linux32_dirent.c: revision 1.20
	sys/compat/linux32/common/linux32_utsname.c: revision 1.10
	sys/compat/linux/common/linux_termios.h: revision 1.22
	sys/compat/linux32/common/linux32_termios.c: revision 1.15
	sys/compat/linux32/common/linux32_misc.c: revision 1.27
	sys/compat/linux32/common/linux32_ioctl.c: revision 1.14
	sys/compat/linux/common/linux_statfs.h: revision 1.7
	sys/compat/linux/common/linux_ipc.c: revision 1.57
	sys/compat/linux/common/linux_fcntl.h: revision 1.18
	sys/compat/linux/common/linux_socket.h: revision 1.24
	sys/sys/shm.h: revision 1.54
	sys/compat/ossaudio/ossaudio.c: revision 1.75
	sys/compat/linux32/common/linux32_signal.c: revision 1.20
	sys/miscfs/procfs/procfs_linux.c: revision 1.75
	sys/compat/linux/common/linux_signal.c: revision 1.81
	sys/compat/linux/common/linux_termios.c: revision 1.38
	sys/compat/linux/common/linux_misc.c: revision 1.241
	sys/compat/linux/common/linux_misc.c: revision 1.242
	sys/compat/linux/common/linux_misc.c: revision 1.243
	sys/compat/linux/common/linux_misc.c: revision 1.244

Fix info leaks.

Fix stupid bugs in linux_sys_shmctl(): the index could be out of bound
(page fault) and there was no proper locking.
Maybe we should just remove LINUX_SHM_STAT, like compat_linux32.

Remove printf.

When dealing with an unknown value, set -1, to prevent (harmless)
uninitialized accesses later.

Add a default case, don't call sys_ioctl() with an uninitialized 'com'
argument.

Fix error handling, returns an errno, not -1.

Put the printf under DEBUG_LINUX.


Hum, don't forget the 'pid' argument, otherwise we're not gonna go very
far.

Don't read data from userland directly. This simply does not work on any
recent x86 CPU (thanks to SMAP) and all architectures that forbid direct
access to userland from the kernel. But I guess no one noticed because no
one ever uses compat_linux, right?

Hum, don't pass an mbuf to realloc(). Inspired from copyin32_msg_control().

Fix memory leak.

I don't see the point in having this useless printf, but add a '\n' to it,
so that it at least displays useless stuff correctly.

Hum, remove incorrect assignment. Userland could have passed a smaller
namelen, and the uninitialized bytes from sb_data were being used later in
the network stack.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Fri Aug 23 12:42:14 2019 UTC (5 years, 8 months ago) by maxv
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -4 lines
Fix error handling, returns an errno, not -1.

Revision 1.70.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:02 2019 UTC (5 years, 10 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +15 -13 lines
Sync with HEAD

Revision 1.70.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 9 14:43:08 2019 UTC (6 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +6 -5 lines
Pull up following revision(s) (requested by isaki in ticket #1185):

	lib/libossaudio/ossaudio.c: revision 1.35
	sys/compat/ossaudio/ossaudio.c: revision 1.71

Revert a wrong SNDCTL_DSP_GETOSPACE part of rev1.33.
- 'fragments' is the number of full free blocks and should not be
  negative value.
- 'bytes' should not be rounded down.

It makes mpv work correctly (fixes a second half of kern/53028).
Reviewed by mlelstv@

 -

Revert a wrong OSS_SNDCTL_DSP_GETOSPACE part of rev1.70.
- 'fragments' is the number of full free blocks and should not be
  negative value.
- 'bytes' should not be rounded down.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Sun Feb 3 03:19:26 2019 UTC (6 years, 2 months ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-20190609, netbsd-9-base, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +5 -5 lines
- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
  this case, and thus can't be marked __dead easily

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sat Feb 2 05:02:03 2019 UTC (6 years, 2 months ago) by isaki
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +5 -5 lines
Correct debug messages.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Sat Feb 2 04:52:16 2019 UTC (6 years, 2 months ago) by isaki
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +5 -4 lines
Fix minor bugs of SNDCTL_DSP_GETISPACE.
- hiwat is playback-only parameter.
- 'bytes' should not be rounded down.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue Jan 29 12:01:20 2019 UTC (6 years, 2 months ago) by isaki
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +6 -5 lines
Revert a wrong OSS_SNDCTL_DSP_GETOSPACE part of rev1.70.
- 'fragments' is the number of full free blocks and should not be
  negative value.
- 'bytes' should not be rounded down.

Revision 1.67.12.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:56 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.67.12.1: preferred, colored; branchpoint 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.12.1: +9 -13 lines
update from HEAD

Revision 1.69.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:51:59 2017 UTC (7 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +8 -12 lines
Sync with HEAD

Revision 1.69.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:10 2017 UTC (8 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +8 -12 lines
Sync with HEAD

Revision 1.69.6.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:43 2017 UTC (8 years ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +8 -12 lines
Sync with HEAD

Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Mar 24 14:32:29 2017 UTC (8 years, 1 month ago) by nat
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: phil-wifi, netbsd-8
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +8 -12 lines
Update compat/ossaudio with GETISPACE/GETOSPACE corrections from
libossaudio.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Sep 5 09:21:55 2014 UTC (10 years, 7 months ago) by matt
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, nick-nhusb, bouyer-socketcan
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +5 -5 lines
Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get
a correctly typed pointer.

Revision 1.67.12.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:33 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -3 lines
Rebase to HEAD as of a few days ago.

Revision 1.67.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:17 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +3 -3 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.67.16.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:33 2014 UTC (10 years, 11 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +3 -3 lines
sync with head

Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Sep 19 18:50:36 2013 UTC (11 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: netbsd-7-1, netbsd-7
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -3 lines
exec modules need to be of the exec kind

Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri Oct 14 09:23:29 2011 UTC (13 years, 6 months ago) by hannken
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +7 -4 lines
Change the vnode locking protocol of VOP_GETATTR() to request at least
a shared lock.  Make all calls outside of file systems respect it.

The calls from file systems need review.

No objections from tech-kern.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Sep 6 01:19:34 2011 UTC (13 years, 7 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +14 -2 lines
Add support for AFMT_AC3

Revision 1.62.4.3: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:37:44 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.62.4.2: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.4.2: +418 -89 lines
sync with head

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Aug 22 23:31:16 2009 UTC (15 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +418 -89 lines
add a lot more debugging and error checking. Alas, skype seems to be happy
getting back our values, but still does not work.

Revision 1.62.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:26 2009 UTC (15 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.62.4.1: preferred, colored; branchpoint 1.62: preferred, colored
Changes since revision 1.62.4.1: +17 -2 lines
sync with head.

Revision 1.63.8.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:40 2009 UTC (16 years, 3 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +17 -2 lines
Sync with HEAD.

Revision 1.61.6.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:47 2009 UTC (16 years, 3 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.61.6.2: preferred, colored; branchpoint 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.6.2: +15 -0 lines
Sync with HEAD.

Revision 1.63.6.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:03 2008 UTC (16 years, 4 months ago) by haad
Branches: haad-dm
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +17 -2 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Nov 13 10:05:52 2008 UTC (16 years, 5 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +17 -2 lines
compat_ossaudio module, so others can depend on it.

Revision 1.61.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:08 2008 UTC (16 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.61.6.1: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.6.1: +0 -7 lines
Sync with HEAD.

Revision 1.62.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:24 2008 UTC (16 years, 11 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +2 -9 lines
sync with head.

Revision 1.62.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:23:44 2008 UTC (16 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -9 lines
sync with head.

Revision 1.63.2.2: download - view: text, markup, annotated - select for diffs
Wed May 14 01:35:10 2008 UTC (16 years, 11 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.63.2.1: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.2.1: +2 -3 lines
Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.

Revision 1.63.2.1: download - view: text, markup, annotated - select for diffs
Sat May 10 23:48:59 2008 UTC (16 years, 11 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -2 lines
Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:45 2008 UTC (17 years ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: wrstuden-revivesa, nick-hppapmap, haad-dm
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.61.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:34 2008 UTC (17 years ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +86 -102 lines
Sync with HEAD.

Revision 1.47.4.8: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:38:45 2008 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.47.4.7: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.4.7: +86 -102 lines
sync with head.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:54:59 2008 UTC (17 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +86 -102 lines
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.47.4.7: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:42:01 2008 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.47.4.6: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.4.6: +16 -27 lines
sync with head

Revision 1.56.8.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:51:45 2008 UTC (17 years, 3 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.56.8.1: preferred, colored; branchpoint 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56.8.1: +19 -30 lines
sync with HEAD

Revision 1.60.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:53:20 2008 UTC (17 years, 3 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +14 -20 lines
Sync with HEAD

Revision 1.57.6.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:44:30 2007 UTC (17 years, 4 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.57.6.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.6.1: +16 -27 lines
Sync with HEAD.

Revision 1.58.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:39:09 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.58.2.1: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.2.1: +16 -27 lines
Sync with head.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Dec 20 23:03:03 2007 UTC (17 years, 4 months ago) by dsl
Branches: MAIN
CVS tags: vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +14 -20 lines
Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.

Revision 1.56.6.3: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:37:26 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.56.6.2: preferred, colored; branchpoint 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56.6.2: +6 -11 lines
Sync with HEAD.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:36:22 2007 UTC (17 years, 4 months ago) by dsl
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -9 lines
ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...

Revision 1.57.6.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:03 2007 UTC (17 years, 4 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +5 -5 lines
Sync with HEAD.

Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:02 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -4 lines
Sync with head.

Revision 1.47.4.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:29:01 2007 UTC (17 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.47.4.5: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.4.5: +5 -5 lines
sync with head

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Dec 4 18:40:20 2007 UTC (17 years, 4 months ago) by dsl
Branches: MAIN
CVS tags: vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -4 lines
Remove all the __P

Revision 1.56.6.2: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:36:51 2007 UTC (17 years, 5 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.56.6.1: preferred, colored; branchpoint 1.56: preferred, colored
Changes since revision 1.56.6.1: +3 -3 lines
Sync with HEAD. amd64 Xen support needs testing.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Mon Nov 26 19:01:32 2007 UTC (17 years, 5 months ago) by pooka
Branches: MAIN
CVS tags: vmlocking2-base1, vmlocking-nbase
Branch point for: vmlocking2
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3 lines
Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.56.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:25:12 2007 UTC (17 years, 5 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +16 -3 lines
sync with HEAD

Revision 1.47.4.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:29:48 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.47.4.4: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.4.4: +16 -3 lines
sync with head.

Revision 1.55.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:44:06 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.55.2.1: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.2.1: +16 -3 lines
Sync with head.

Revision 1.56.6.1: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:28:14 2007 UTC (17 years, 6 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +16 -3 lines
Sync with HEAD.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Tue Sep 18 19:49:53 2007 UTC (17 years, 7 months ago) by mlelstv
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +16 -3 lines
Implement OSS_SNDCTL_DSP_GETODELAY and provide a no-op function
for OSS_SNDCTL_DSP_PROFILE.

Revision 1.47.4.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:32:46 2007 UTC (17 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.47.4.3: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.4.3: +62 -62 lines
sync with head.

Revision 1.53.8.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 07:04:15 2007 UTC (17 years, 7 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +14 -14 lines
Sync w/ NetBSD-4-RC_1

Revision 1.55.2.1: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:27:16 2007 UTC (17 years, 9 months ago) by ad
Branches: vmlocking
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +14 -14 lines
Sync with head.

Revision 1.55.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:04:36 2007 UTC (17 years, 9 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +14 -14 lines
Sync with head.

Revision 1.53.6.1: download - view: text, markup, annotated - select for diffs
Tue Jun 12 10:11:07 2007 UTC (17 years, 10 months ago) by liamjfoy
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +14 -14 lines
Pull up following revision(s) (requested by jmcneill in ticket #716):
	share/man/man4/audio.4: revision 1.66
	sys/compat/ossaudio/ossaudio.c: revision 1.56
	sys/sys/audioio.h: revision 1.32
	lib/libossaudio/ossaudio.c: revision 1.21
	sys/dev/audio.c: revision 1.222
Add a new ioctl AUDIO_GETBUFINFO. It works like AUDIO_GETINFO, but
doesn't obtain the ports, gain and balance related parameters.
Those generally require reading from the hardware and therefore are
much
more expensive to obtain. Modify OSS emulation to use the new ioctl
where possible.
This reduces CPU usage of mplayer during mp3 playback with my Thinkpad
from 20% to < 1% and from 50% to 20% during Xvid playback.
Review and comments from jmcneill@

Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Jun 11 13:05:47 2007 UTC (17 years, 10 months ago) by joerg
Branches: MAIN
CVS tags: nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +14 -14 lines
Add a new ioctl AUDIO_GETBUFINFO. It works like AUDIO_GETINFO, but
doesn't obtain the ports, gain and balance related parameters.
Those generally require reading from the hardware and therefore are much
more expensive to obtain. Modify OSS emulation to use the new ioctl
where possible.

This reduces CPU usage of mplayer during mp3 playback with my Thinkpad
from 20% to < 1% and from 50% to 20% during Xvid playback.

Review and comments from jmcneill@

Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:52:41 2007 UTC (18 years, 1 month ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +62 -62 lines
Sync with HEAD.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:01:29 2007 UTC (18 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +62 -62 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.47.4.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:09:36 2007 UTC (18 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.47.4.2: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.4.2: +2 -3 lines
sync with head.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:23 2007 UTC (18 years, 2 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -3 lines
Merge newlock2 to head.

Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Tue Jan 30 13:51:37 2007 UTC (18 years, 2 months ago) by ad
Branches: newlock2
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +2 -3 lines
Remove support for SA. Ok core@.

Revision 1.47.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:47:45 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.47.4.1: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.4.1: +4 -5 lines
sync with head.

Revision 1.50.2.3: download - view: text, markup, annotated - select for diffs
Thu Sep 14 12:31:26 2006 UTC (18 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.50.2.2: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.2.2: +3 -3 lines
sync with head.

Revision 1.49.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:46:13 2006 UTC (18 years, 7 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +11 -12 lines
sync with head

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Sep 3 20:58:26 2006 UTC (18 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base, newlock2-nbase, newlock2-base, netbsd-4-base
Branch point for: wrstuden-fixsa, newlock2, netbsd-4
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
remove unneeded initializer.

Revision 1.50.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:43:40 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.50.2.1: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.2.1: +3 -4 lines
sync with head

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Jul 23 22:06:09 2006 UTC (18 years, 9 months ago) by ad
Branches: MAIN
CVS tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -4 lines
Use the LWP cached credentials where sane.

Revision 1.47.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 14:59:41 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +89 -85 lines
sync with head.

Revision 1.49.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:35:59 2006 UTC (18 years, 10 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.49.6.1: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.6.1: +3 -3 lines
Sync with head.

Revision 1.50.6.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:48:28 2006 UTC (18 years, 11 months ago) by tron
Branches: peter-altq
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +3 -3 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:57:32 2006 UTC (18 years, 11 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3 lines
sync with head.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun May 14 21:24:50 2006 UTC (18 years, 11 months ago) by elad
Branches: MAIN
CVS tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3 lines
integrate kauth.

Revision 1.49.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:17 2006 UTC (19 years ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +9 -9 lines
Sync with head.

Revision 1.50.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 01:48:38 2006 UTC (19 years, 1 month ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +3 -3 lines
Adapt to kernel authorization KPI.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Mar 4 11:17:08 2006 UTC (19 years, 1 month ago) by xtraeme
Branches: MAIN
CVS tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +9 -9 lines
Instead of getting properties from calling ioctl with AUDIO_GETINFO, use
AUDIO_INITINFO(). Now the sound with the linux flash plugin works
properly.

From OpenBSD.

Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 21 06:39:04 2006 UTC (19 years, 3 months ago) by snj
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +10 -10 lines
Pull up following revision(s) (requested by tron in ticket #1127):
	sys/compat/ossaudio/ossaudio.c: revision 1.48
Fix problem in ioctl() handling in OSS audio emulation which caused
unintentional changes of the audio settings e.g. when running "kphone".
Patch submitted by George Michaelson on "tech-kern@NetBSD.org".

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:20:23 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +95 -91 lines
merge ktrace-lwp.

Revision 1.45.2.7: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:28:46 2005 UTC (19 years, 4 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.45.2.6: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.6: +10 -10 lines
Sync with head.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Dec 8 19:19:14 2005 UTC (19 years, 4 months ago) by tron
Branches: MAIN
CVS tags: ktrace-lwp-base
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +10 -10 lines
Fix problem in ioctl() handling in OSS audio emulation which caused
unintentional changes of the audio settings e.g. when running "kphone".

Patch submitted by George Michaelson on "tech-kern@NetBSD.org".

Revision 1.46.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:42 2005 UTC (20 years ago) by kent
Branches: kent-audio2
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +22 -22 lines
sync with -current

Revision 1.46.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:33:45 2005 UTC (20 years, 1 month ago) by yamt
Branches: yamt-km
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +22 -22 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.45.2.6: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:40:28 2005 UTC (20 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.45.2.5: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.5: +22 -22 lines
Sync with HEAD.

Hi Perry!

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Feb 26 23:10:21 2005 UTC (20 years, 2 months ago) by perry
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, kent-audio2-base
Branch point for: yamt-lazymbuf, netbsd-3
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +22 -22 lines
nuke trailing whitespace

Revision 1.45.2.5: download - view: text, markup, annotated - select for diffs
Mon Nov 29 07:24:06 2004 UTC (20 years, 5 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.45.2.4: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.4: +12 -4 lines
Sync with HEAD.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Nov 18 14:02:42 2004 UTC (20 years, 5 months ago) by kent
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +12 -4 lines
getdevinfo():
 If a mixer item does not match with AudioNsomething, check whether
it ends with '.' + AudioNsomething.  PR#15441

Revision 1.45.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:25:59 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.45.2.3: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.3: +88 -84 lines
Fix the sync with head I botched.

Revision 1.45.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:44:04 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.45.2.2: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.2: +84 -88 lines
Sync with HEAD.

Revision 1.45.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 19 15:47:20 2003 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.1: +6 -6 lines
Fix patch botch.

Revision 1.39.10.1: download - view: text, markup, annotated - select for diffs
Sun Aug 17 11:17:14 2003 UTC (21 years, 8 months ago) by tron
Branches: netbsd-1-6
CVS tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +13 -8 lines
Pull up revision 1.43 (requested by tv in ticket #1422):
Fix missing call to FILE_UNUSE.  From kern/21946, from Todd Vierling.

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:25:52 2003 UTC (21 years, 9 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +87 -83 lines
Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:29:41 2003 UTC (21 years, 10 months ago) by fvdl
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Branch point for: ktrace-lwp
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +81 -85 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:25 2003 UTC (21 years, 10 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +87 -83 lines
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Jun 23 21:53:10 2003 UTC (21 years, 10 months ago) by augustss
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +13 -8 lines
Fix missing call to FILE_UNUSE.  From kern/21946, from Todd Vierling.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:13:54 2003 UTC (22 years, 1 month ago) by dsl
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +6 -6 lines
Change 'data' argument to fo_ioctl and fo_fcntl from 'caddr_t' to 'void *'.
Avoids a lot of casting and removes the need for some line breaks.
Removed a load of (caddr_t) casts from calls to copyin/copyout as well.
(approved by christos - he has a plan to remove caddr_t...)

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Jan 18 08:33:08 2003 UTC (22 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -2 lines
Merge the nathanw_sa branch.

Revision 1.33.2.6: download - view: text, markup, annotated - select for diffs
Wed Jan 15 18:42:09 2003 UTC (22 years, 3 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.33.2.5: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.2.5: +6 -3 lines
Sync with HEAD.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Jan 12 08:20:06 2003 UTC (22 years, 3 months ago) by jdolecek
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +6 -3 lines
add support for SNDCTL_DSP_SETDUPLEX ioctl to ossaudio emulation code
code provided by Andreas Wrede in PR kern/19793

Revision 1.33.2.5: download - view: text, markup, annotated - select for diffs
Wed May 29 21:32:55 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.33.2.4: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.2.4: +3 -2 lines
#include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)

Revision 1.37.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:52:07 2002 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +7 -2 lines
Sync kqueue branch with -current.

Revision 1.33.2.4: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:29:08 2002 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.33.2.3: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.2.3: +5 -3 lines
Catch up to -current.

Revision 1.30.4.4: download - view: text, markup, annotated - select for diffs
Thu Dec 27 12:33:14 2001 UTC (23 years, 4 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003
Diff to: previous 1.30.4.3: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.4.3: +4 -2 lines
Pull up revision 1.39 (requested by mycroft):
  Change our emulation of SNDCTL_DSP_POST so that OSS applications
  (e.g. xmms) don't randomly pause.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Dec 24 00:10:49 2001 UTC (23 years, 4 months ago) by mycroft
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, ifpoll-base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +5 -3 lines
Make SNDCTL_DSP_POST a nop.  It's explicitly *not* supposed to sleep, and as
it's merely advisory (and in fact is implemented as a nop in the OSS->ALSA
shim), it should be safe to ignore it.

Revision 1.33.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:13:22 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.33.2.2: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.2.2: +4 -1 lines
Catch up to -current.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Nov 13 02:09:17 2001 UTC (23 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -1 lines
add RCSIDs (including regeneration of files as appropriate)

Revision 1.33.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:08:55 2001 UTC (23 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.33.2.1: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.2.1: +2 -1 lines
Catch up with -current.

Revision 1.30.4.3: download - view: text, markup, annotated - select for diffs
Thu Aug 16 17:48:00 2001 UTC (23 years, 8 months ago) by tv
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH002
Diff to: previous 1.30.4.2: preferred, colored; branchpoint 1.30: preferred, colored
Changes since revision 1.30.4.2: +22 -4 lines
Pullup [fb]:

lib/libossaudio/ossaudio.c                      1.13-1.14
lib/libossaudio/soundcard.h                     1.11
sys/compat/ossaudio/ossaudio.c                  1.34-1.35

  Correctly calculate input and output hardware buffer sizes.
  Fixes PR lib/12796.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Jul 9 03:21:32 2001 UTC (23 years, 9 months ago) by kim
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: kqueue
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -1 lines
Map OSS mixer device "line1" to native mixer device "aux".

Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:00:22 2001 UTC (23 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +25 -13 lines
Catch up to -current.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Jun 14 20:32:44 2001 UTC (23 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -10 lines
Fix a partial construction problem that can cause race conditions
between creation of a file descriptor and close(2) when using kernel
assisted threads.  What we do is stick descriptors in the table, but
mark them as "larval".  This causes essentially everything to treat
it as a non-existent descriptor, except for fdalloc(), which sees a
filled slot so that it won't (incorrectly) allocate it again.  When
a descriptor is fully constructed, the code that has constructed it
marks it as "mature" (which actually clears the "larval" flag), and
things continue to work as normal.

While here, gather all the code that gets a descriptor from the table
into a fd_getfile() function, and call it, rather than having the
same (sometimes incorrect) code copied all over the place.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu May 10 01:54:30 2001 UTC (23 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +22 -5 lines
Improved fix of PR12796, from Frederick Bruckman <fb@enteract.com>

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed May 9 21:50:50 2001 UTC (23 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -3 lines
Apply patch in PR lib/12796 from Frederick Bruckman <fb@enteract.com>

Revision 1.29.2.2: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:14:25 2001 UTC (24 years, 2 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.29.2.1: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.2.1: +5 -4 lines
Sync with HEAD.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Jan 18 20:28:28 2001 UTC (24 years, 3 months ago) by jdolecek
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -4 lines
constify

Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:08:35 2000 UTC (24 years, 5 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +113 -42 lines
Update thorpej_scsipi to -current as of a month ago

Revision 1.26.6.2: download - view: text, markup, annotated - select for diffs
Sat Aug 26 18:40:52 2000 UTC (24 years, 8 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003
Diff to: previous 1.26.6.1: preferred, colored; branchpoint 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.6.1: +3 -3 lines
Pull up revision 1.32 (via patch, requested by tron):
  Use accurate rounding in conversion between OSS and NetBSD
  volume values.  Fixes among other things PR#10818.

Revision 1.30.4.2: download - view: text, markup, annotated - select for diffs
Wed Aug 16 17:07:52 2000 UTC (24 years, 8 months ago) by tron
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.30.4.1: preferred, colored; branchpoint 1.30: preferred, colored
Changes since revision 1.30.4.1: +3 -3 lines
pullup (approved  by releng-1-5)

Use accurate rounding in conversion between OSS and NetBSD volume values.
The optimized integer formula was supplied by Wolfgang Solfrank on
"tech-kern@netbsd.org". This fixes problems with e.g  FreeBSD TV (fxtv),
RealPlayer-7.0 Beta 2 (PR pkg/10818) and KDE's "kscd".

syssrc/sys/compat/ossaudio/ossaudio.c		1.31 -> 1.32
basesrc/lib/libossaudio/ossaudio.c		1.11 -> 1.12

Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Aug 16 16:14:33 2000 UTC (24 years, 8 months ago) by tron
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
Use accurate rounding in conversion between OSS and NetBSD volume values.
The optimized integer formula was supplied by Wolfgang Solfrank on
"tech-kern@netbsd.org". This fixes problems with e.g  FreeBSD TV (fxtv),
RealPlayer-7.0 Beta 2 (PR pkg/10818) and KDE's "kscd".

Revision 1.30.4.1: download - view: text, markup, annotated - select for diffs
Mon Aug 7 00:28:49 2000 UTC (24 years, 8 months ago) by augustss
Branches: netbsd-1-5
CVS tags: netbsd-1-5-ALPHA2
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +101 -41 lines
Pull up:
sys/compat/ossaudio/ossaudio.c 1.30-1.31
sys/compat/ossaudio/ossaudiovar.h 1.7-1.9
lib/libossaudio/ossaudio.c 1.10-1.11
Accept mixer values above max (100).
Handle the info from AUDIO_MIXER_DEVINFO properly, parts of it is opaque.
Approved by thorpej.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Jul 4 09:59:31 2000 UTC (24 years, 9 months ago) by augustss
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +101 -41 lines
Implement OSS_GETVERSION.
Accept mixer values above max (100).
Handle the info from AUDIO_MIXER_DEVINFO properly, parts of it is opaque.

Revision 1.29.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:34:31 1999 UTC (25 years, 4 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +12 -1 lines
Pull up to last week's -current.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Nov 17 00:06:38 1999 UTC (25 years, 5 months ago) by augustss
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl, chs-ubc2-newbase
Branch point for: netbsd-1-5
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +12 -1 lines
Implement OSS_SOUND_MIXER_INFO.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Aug 22 13:43:10 1999 UTC (25 years, 8 months ago) by kleink
Branches: MAIN
CVS tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -3 lines
Per discussion with Lennart Augustsson, change the behaviour to report emulated
encodings, too.  (This is currently an issue with the eso(4) driver, which,
due to different byte orders in playing and recording directions, sets the
emulated flag for all 16-bit encodings, although it could be argued that this
is an unfortunate weakness of the query_encoding() interface.)

Revision 1.26.6.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:08:57 1999 UTC (25 years, 10 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.26.6.1: preferred, colored; next MAIN 1.26.6.2: preferred, colored
Changes since revision 1.26.6.1: +175 -116 lines
Sync w/ -current.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed May 5 20:01:05 1999 UTC (25 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +175 -116 lines
Add "use counting" to file entries.  When closing a file, and it's reference
count is 0, wait for use count to drain before finishing the close.

This is necessary in order for multiple processes to safely share file
descriptor tables.

Revision 1.26.6.1: download - view: text, markup, annotated - select for diffs
Fri Apr 16 20:26:51 1999 UTC (26 years ago) by augustss
Branches: netbsd-1-4
CVS tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
Make a bunch of copyright headers conform to the standard.
Pullup approved by Perry.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Apr 13 20:31:32 1999 UTC (26 years ago) by augustss
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
Make copyright conform.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Aug 7 00:00:57 1998 UTC (26 years, 8 months ago) by augustss
Branches: MAIN
CVS tags: netbsd-1-4-base, kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Branch point for: netbsd-1-4
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +180 -11 lines
Add MIDI support.  The MIDI devices can be accessed as ``raw'' through
the /dev/rmidiN devices, or with a sequencer interface via /dev/music.
So far the only supported MIDI device is the MPU401 port on SoundBlaster
(and only on SB on isapnp, since we do not have locators with multiple
values yet).

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon May 25 17:13:43 1998 UTC (26 years, 11 months ago) by augustss
Branches: MAIN
CVS tags: eeh-paddr_t-base, eeh-paddr_t
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
Fix off by 1 error

Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Fri May 8 08:42:45 1998 UTC (26 years, 11 months ago) by mycroft
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +3 -3 lines
Pull up 1.24, per request of mycroft.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Mar 19 06:53:28 1998 UTC (27 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
SETFRAGMENT ignores the high bit.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Oct 19 07:41:52 1997 UTC (27 years, 6 months ago) by augustss
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +6 -6 lines
Make the audio API (almost) SunOS compatible.
The changes is to allow some limited mixer manipulation through
the audio device (instead of the mixer device).
This rendered 4 methods in audio_hw_if unused so garbage collect these.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Oct 16 16:49:32 1997 UTC (27 years, 6 months ago) by augustss
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +35 -1 lines
Insert missing NetBSD copyright notices.

Revision 1.14.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 14 10:21:42 1997 UTC (27 years, 6 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.14.2.2: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.2: +20 -12 lines
Update marc-pcmcia branch from trunk.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Oct 7 22:46:00 1997 UTC (27 years, 6 months ago) by augustss
Branches: MAIN
CVS tags: marc-pcmcia-base
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +20 -12 lines
Emulate setting the hiwater mark with SETFRAGMENT the right way.
Get rid of some 'register'.

Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 27 23:17:48 1997 UTC (27 years, 8 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.1: +2 -2 lines
Update marc-pcmcia branch from trunk.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Aug 24 23:31:23 1997 UTC (27 years, 8 months ago) by augustss
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2 lines
Increase the number of mixer devices the emulation looks at.

Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 23 07:12:32 1997 UTC (27 years, 8 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +102 -18 lines
Update marc-pcmcia branch from trunk.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Aug 11 01:54:52 1997 UTC (27 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -1 lines
Oops, forgot two lines in last commit.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Aug 11 01:52:47 1997 UTC (27 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -2 lines
Implement OSS_SNDCTL_DSP_NONBLOCK.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Aug 11 01:00:38 1997 UTC (27 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +12 -9 lines
Some more debugging output.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Aug 7 23:59:23 1997 UTC (27 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +70 -3 lines
Make sure OSS_SNDCTL_DSP_GETFMTS returns the formats the audio driver
can handle and not just some random guess.
Also add some debugging stuff.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Aug 6 23:06:04 1997 UTC (27 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +18 -8 lines
Improve ioctl decoding.
Change mixer name mappings.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Jul 28 03:51:11 1997 UTC (27 years, 9 months ago) by augustss
Branches: MAIN
CVS tags: marc-pcmcia-bp
Branch point for: marc-pcmcia
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +30 -3 lines
Make sure the blocksize is always a power of 2 when inspected.
OSS only uses powers of 2 so some programs expect this.
Now Quake works!

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jul 27 01:16:41 1997 UTC (27 years, 9 months ago) by augustss
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +72 -3 lines
Changes to the sudio system:
  - It is now possible to handle devices that want "looping" DMA,
    e.g. the SoundBlaster correctly.  The WSS and SB drivers use this.
    To do this several new methods were introduced in audio_hw_if.
  - Different silence handling (forced by previous change).
  - The audio driver can now be mmap()-ed, but due to problems in
    the VM system only for writing for now.
  - The OSS (Linux) audio emulation takes advantage of some of the
    new features.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Jul 15 07:46:09 1997 UTC (27 years, 9 months ago) by augustss
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -6 lines
In the name of backwards compatibility AUDIO_ENCODING_LINEAR has been
renamed AUDIO_ENCODING_SLINEAR and AUDIO_ENCODING_LINEAR reverts to the
NetBSD 1.2 sematics.  A kernel with COMPAT_12 defined will accept
AUDIO_ENCODING_LINEAR and treat it as before, without COMPAT_12 it
will be rejected.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon May 19 23:05:14 1997 UTC (27 years, 11 months ago) by augustss
Branches: MAIN
CVS tags: bouyer-scsipi
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -1 lines
Add missing initialization.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon May 19 17:29:12 1997 UTC (27 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +9 -9 lines
Fix recording source selection bug.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed May 7 19:24:30 1997 UTC (27 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +20 -2 lines
Return audio buffer size in audio_info_t with ioctl() AUDIO_GETINFO.
Use the buffer size to implement one more OSS ioctl().

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed May 7 18:51:37 1997 UTC (27 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +49 -7 lines
Convert to new orthogonal audio encoding scheme and implement
some of the new encodings.  The change to ioctl AUDIO_GETENC is
NOT backwards compatible.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Apr 6 23:49:32 1997 UTC (28 years ago) by augustss
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +26 -8 lines
Improve setting of record source.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Apr 4 15:36:01 1997 UTC (28 years ago) by augustss
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +356 -62 lines
* Move the Linux audio emulation into its own directory and rename it
  OSS (aka VoxWare) audio emulation.
* Use the OSS audio emulation for Linux and FreeBSD.
* Add mixer emulation to the OSS emulator.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Mar 20 16:11:29 1997 UTC (28 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +21 -2 lines
Copy back the format we set in SNDCTL_DSP_SETFMT.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Mar 20 04:21:31 1997 UTC (28 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
SOUND_PCM_WRITE_CHANNELS -> SNDCTL_DSP_CHANNELS, to match current Linux code.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Mar 19 05:12:13 1997 UTC (28 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +53 -1 lines
Emulate the SOUND_PCM_WRITE_CHANNELS ioctl.  From PR 3356, by Lennart
Augustsson.  Also add hooks for mixer ioctls.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Oct 17 19:46:39 1996 UTC (28 years, 6 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -0 lines
Add RCS Id.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Mar 8 04:56:01 1996 UTC (29 years, 1 month ago) by mycroft
Branches: MAIN
Separate ioctl emulation by group.  Add (minimal) audio emulation.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>