The NetBSD Project

CVS log for src/sys/compat/linux/common/linux_file.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.123 / (download) - annotate - [select for diffs], Mon Jul 10 02:31:55 2023 UTC (8 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.122: +10 -2 lines
Diff to previous 1.122 (colored) to selected 1.21 (colored)

Add memfd_create(2) from GSoC 2023 by Theodore Preduta

Revision 1.115.10.1 / (download) - annotate - [select for diffs], Wed Jun 21 21:04:02 2023 UTC (9 months, 1 week ago) by martin
Branch: netbsd-8
Changes since 1.115: +3 -2 lines
Diff to previous 1.115 (colored) next main 1.116 (colored) to selected 1.21 (colored)

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.116.2.1 / (download) - annotate - [select for diffs], Wed Aug 3 11:11:32 2022 UTC (19 months, 3 weeks ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.116: +3 -2 lines
Diff to previous 1.116 (colored) next main 1.117 (colored) to selected 1.21 (colored)

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.122 / (download) - annotate - [select for diffs], Thu Nov 25 03:08:04 2021 UTC (2 years, 4 months ago) by ryo
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.121: +2 -8 lines
Diff to previous 1.121 (colored) to selected 1.21 (colored)

add support COMPAT_LINUX32 for aarch64

Revision 1.121 / (download) - annotate - [select for diffs], Thu Sep 23 06:56:27 2021 UTC (2 years, 6 months ago) by ryo
Branch: MAIN
Changes since 1.120: +13 -5 lines
Diff to previous 1.120 (colored) to selected 1.21 (colored)

add support COMPAT_LINUX for aarch64

Revision 1.120 / (download) - annotate - [select for diffs], Mon Sep 20 02:20:03 2021 UTC (2 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.119: +69 -2 lines
Diff to previous 1.119 (colored) to selected 1.21 (colored)

Add preadv(2) and pwritev(2) system calls to COMPAT_LINUX and COMPAT_LINUX32.

Revision 1.119 / (download) - annotate - [select for diffs], Tue Sep 7 11:43:04 2021 UTC (2 years, 6 months ago) by riastradh
Branch: MAIN
Changes since 1.118: +3 -2 lines
Diff to previous 1.118 (colored) to selected 1.21 (colored)

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.118.2.1 / (download) - annotate - [select for diffs], Thu Dec 17 03:14:16 2020 UTC (3 years, 3 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.118: +69 -2 lines
Diff to previous 1.118 (colored) next main 1.119 (colored) to selected 1.21 (colored)

Add suppport for Linux preadv(2) and pwritev(2).  Same as native, except
for the silly way that the offset argument is passed in.

Revision 1.118 / (download) - annotate - [select for diffs], Sat May 23 23:42:41 2020 UTC (3 years, 10 months ago) by ad
Branch: 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-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-futex
Changes since 1.117: +7 -7 lines
Diff to previous 1.117 (colored) to selected 1.21 (colored)

Move proc_lock into the data segment.  It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.

Revision 1.115.18.1 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:15 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.115: +11 -4 lines
Diff to previous 1.115 (colored) next main 1.116 (colored) to selected 1.21 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.117 / (download) - annotate - [select for diffs], Sat Nov 9 23:44:32 2019 UTC (4 years, 4 months ago) by jdolecek
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.116: +10 -2 lines
Diff to previous 1.116 (colored) to selected 1.21 (colored)

add dummy implementation of linux fallocate() which just returns EOPNOTSUPP;
this is needed so that glibc falls back to emulation and apps behaving
properly, since EOPNOTSUPP is a documented and expected return code, but
ENOSYS is not

right now there are no filesystems in NetBSD tree supporting the fallocate
VOP, so no point trying to map this to a native call

supposed to help with problem reported in
https://mail-index.netbsd.org/tech-kern/2019/11/03/msg025641.html

Revision 1.116 / (download) - annotate - [select for diffs], Tue Jun 18 22:34:25 2019 UTC (4 years, 9 months ago) by kamil
Branch: MAIN
CVS Tags: netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.115: +3 -4 lines
Diff to previous 1.115 (colored) to selected 1.21 (colored)

Drop unused retval pointer from do_sys_mknod{,at}()

No functional change intended.

Revision 1.104.12.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:54 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.104.12.1: +4 -1 lines
Diff to previous 1.104.12.1 (colored) to branchpoint 1.104 (colored) next main 1.105 (colored) to selected 1.21 (colored)

update from HEAD

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:06 2015 UTC (8 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.114: +6 -2 lines
Diff to previous 1.114 (colored) next main 1.115 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.115 / (download) - annotate - [select for diffs], Sun Mar 1 13:19:39 2015 UTC (9 years, 1 month ago) by njoly
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, 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, 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, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, netbsd-8
Changes since 1.114: +6 -2 lines
Diff to previous 1.114 (colored) to selected 1.21 (colored)

Add Linux specific fcntl(2) commands. Support F_DUPFD_CLOEXEC.

Revision 1.113.2.1 / (download) - annotate - [select for diffs], Sat Jan 17 12:10:54 2015 UTC (9 years, 2 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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-1, 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
Changes since 1.113: +2 -3 lines
Diff to previous 1.113 (colored) next main 1.114 (colored) to selected 1.21 (colored)

Pull up following revision(s) (requested by maxv in ticket #427):
	sys/compat/svr4/svr4_schedctl.c: revision 1.8
	sys/netinet/tcp_timer.c: revision 1.88
	sys/miscfs/genfs/layer_vfsops.c: revision 1.45
	sys/compat/svr4/svr4_ioctl.c: revision 1.37
	sys/ufs/chfs/chfs_vfsops.c: revision 1.14
	sys/miscfs/fdesc/fdesc_vfsops.c: revision 1.91
	sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.30
	sys/compat/common/kern_time_50.c: revision 1.28
	sys/netinet6/ip6_forward.c: revision 1.74
	sys/miscfs/umapfs/umap_vnops.c: revision 1.57
	sys/compat/svr4/svr4_fcntl.c: revision 1.74
	distrib/sets/lists/comp/mi: revision 1.1931
	sys/netinet6/udp6_output.c: revision 1.46
	sys/fs/puffs/puffs_compat.c: revision 1.3
	sys/fs/udf/udf_rename.c: revision 1.11
	sys/compat/svr4/svr4_filio.c: revision 1.24
	sys/fs/udf/udf_rename.c: revision 1.12
	sys/netinet/tcp_usrreq.c: revision 1.202
	sys/miscfs/umapfs/umap_subr.c: revision 1.29
	sys/compat/linux/common/linux_fadvise64.c: revision 1.3
	sys/netinet/if_atm.c: revision 1.34
	sys/miscfs/procfs/procfs_subr.c: revision 1.106
	sys/miscfs/genfs/layer_subr.c: revision 1.37
	sys/netinet/tcp_sack.c: revision 1.30
	sys/compat/freebsd/freebsd_misc.c: revision 1.33
	sys/compat/freebsd/freebsd_file.c: revision 1.33
	sys/ufs/chfs/chfs_vnode.c: revision 1.12
	sys/compat/svr4/svr4_ttold.c: revision 1.34
	sys/compat/linux/common/linux_file.c: revision 1.114
	sys/compat/linux/arch/mips/linux_machdep.c: revision 1.43
	sys/compat/linux/common/linux_signal.c: revision 1.76
	sys/compat/common/compat_util.c: revision 1.46
	sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.18
	sys/compat/svr4/svr4_sockio.c: revision 1.36
	sys/compat/linux/arch/arm/linux_machdep.c: revision 1.32
	sys/compat/svr4/svr4_signal.c: revision 1.66
	sys/kern/kern_exec.c: revision 1.410
	sys/fs/puffs/puffs_vfsops.c: revision 1.115
	sys/compat/svr4/svr4_exec_elf64.c: revision 1.15
	sys/compat/linux/arch/i386/linux_machdep.c: revision 1.159
	sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.50
	sys/compat/linux32/common/linux32_misc.c: revision 1.24
	sys/netinet/in_pcb.c: revision 1.153
	sys/sys/malloc.h: revision 1.116
	sys/compat/common/if_43.c: revision 1.9
	share/man/man9/Makefile: revision 1.380
	sys/netinet/tcp_vtw.c: revision 1.12
	sys/miscfs/umapfs/umap_vfsops.c: revision 1.95
	sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.186
	sys/compat/common/uipc_syscalls_43.c: revision 1.46
	sys/ufs/ext2fs/ext2fs_vnops.c: revision 1.115
	sys/fs/puffs/puffs_msgif.c: revision 1.97
	sys/compat/svr4/svr4_ipc.c: revision 1.27
	sys/compat/linux/common/linux_exec.c: revision 1.117
	sys/ufs/ext2fs/ext2fs_readwrite.c: revision 1.66
	sys/netinet/tcp_output.c: revision 1.179
	sys/compat/svr4/svr4_termios.c: revision 1.28
	sys/fs/udf/udf_strat_bootstrap.c: revision 1.4
	sys/fs/puffs/puffs_subr.c: revision 1.67
	sys/fs/puffs/puffs_node.c: revision 1.36
	sys/miscfs/overlay/overlay_vnops.c: revision 1.21
	sys/fs/cd9660/cd9660_node.c: revision 1.34
	sys/netinet/raw_ip.c: revision 1.146
	sys/sys/mallocvar.h: revision 1.13
	sys/miscfs/overlay/overlay_vfsops.c: revision 1.63
	share/man/man9/malloc.9: revision 1.50
	sys/netinet6/dest6.c: revision 1.18
	sys/compat/linux/common/linux_uselib.c: revision 1.33
	sys/compat/linux/common/linux_socket.c: revision 1.120
	share/man/man9/malloc.9: revision 1.51
	sys/netinet/tcp_subr.c: revision 1.257
	sys/compat/linux/common/linux_socketcall.c: revision 1.45
	sys/compat/linux/common/linux_fadvise64_64.c: revision 1.3
	sys/compat/freebsd/freebsd_ipc.c: revision 1.17
	sys/compat/linux/common/linux_misc_notalpha.c: revision 1.109
	sys/compat/linux/arch/alpha/linux_pipe.c: revision 1.17
	sys/netinet6/in6_pcb.c: revision 1.132
	sys/netinet6/in6_ifattach.c: revision 1.94
	sys/compat/svr4/svr4_exec_elf32.c: revision 1.15
	sys/miscfs/nullfs/null_vfsops.c: revision 1.90
	sys/fs/cd9660/cd9660_util.c: revision 1.12
	sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.48
	sys/compat/freebsd/freebsd_exec_elf32.c: revision 1.20
	sys/miscfs/procfs/procfs_vfsops.c: revision 1.94
	sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.28
	sys/compat/linux/common/linux_sched.c: revision 1.67
	sys/compat/linux/common/linux_exec_aout.c: revision 1.67
	sys/compat/linux/common/linux_pipe.c: revision 1.67
	sys/compat/linux/common/linux_llseek.c: revision 1.34
	sys/compat/linux/arch/mips/linux_ptrace.c: revision 1.10
Do not uselessly include <sys/malloc.h>.
Cleanup:
 - remove struct kmembuckets (dead)
 - correctly deadify MALLOC_XX
 - remove MALLOC_DEFINE_LIMIT and MALLOC_JUSTDEFINE_LIMIT (dead)
 - remove malloc_roundup(), malloc_type_setlimit(), MALLOC_DEFINE_LIMIT()
   and MALLOC_JUSTDEFINE_LIMIT() from man 9 malloc
New sentence, new line. Bump date for previous.
Obsolete malloc_roundup(9), malloc_type_setlimit(9) and MALLOC_DEFINE_LIMIT(9)
man pages.

Revision 1.114 / (download) - annotate - [select for diffs], Sun Nov 9 17:48:08 2014 UTC (9 years, 4 months ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.113: +2 -3 lines
Diff to previous 1.113 (colored) to selected 1.21 (colored)

Do not uselessly include <sys/malloc.h>.

Revision 1.104.12.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:32 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.104: +230 -53 lines
Diff to previous 1.104 (colored) to selected 1.21 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.108.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:33 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.108: +27 -16 lines
Diff to previous 1.108 (colored) next main 1.109 (colored) to selected 1.21 (colored)

Rebase.

Revision 1.113 / (download) - annotate - [select for diffs], Wed Jun 25 16:38:53 2014 UTC (9 years, 9 months ago) by njoly
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.112: +14 -6 lines
Diff to previous 1.112 (colored) to selected 1.21 (colored)

Add support for more open flags that have a native equivalent
(O_NONBLOCK, O_DIRECT and O_NOFOLLOW).
Translate native EFTYPE error (missing on Linux) to expected ELOOP;
when opening symlinks with flag O_NOFOLLOW.

Revision 1.112 / (download) - annotate - [select for diffs], Sun Jun 1 13:42:12 2014 UTC (9 years, 9 months ago) by njoly
Branch: MAIN
Changes since 1.111: +3 -4 lines
Diff to previous 1.111 (colored) to selected 1.21 (colored)

Cleanup pipe(2) flags, now that native handle them.

Revision 1.104.2.1 / (download) - annotate - [select for diffs], Thu May 22 11:40:16 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.104: +210 -42 lines
Diff to previous 1.104 (colored) next main 1.105 (colored) to selected 1.21 (colored)

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.104.16.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:32 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.104: +218 -48 lines
Diff to previous 1.104 (colored) next main 1.105 (colored) to selected 1.21 (colored)

sync with head

Revision 1.111 / (download) - annotate - [select for diffs], Sun May 18 09:30:00 2014 UTC (9 years, 10 months ago) by njoly
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.110: +10 -8 lines
Diff to previous 1.110 (colored) to selected 1.21 (colored)

Simplify dup3 emulation to call dodup() directly instead of
sys_dup2()+fd_set_exclose(). While here, add some error conditions.

Revision 1.110 / (download) - annotate - [select for diffs], Tue May 6 13:21:50 2014 UTC (9 years, 10 months ago) by njoly
Branch: MAIN
CVS Tags: yamt-pagecache-base9
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored) to selected 1.21 (colored)

linux_off_t -> off_t in pwrite() syscall args comment.

Revision 1.109 / (download) - annotate - [select for diffs], Sun May 4 10:08:53 2014 UTC (9 years, 10 months ago) by njoly
Branch: MAIN
Changes since 1.108: +5 -3 lines
Diff to previous 1.108 (colored) to selected 1.21 (colored)

Fix pread/pwrite syscalls which need a 64bit offset argument.

Revision 1.108 / (download) - annotate - [select for diffs], Sun Dec 8 15:55:10 2013 UTC (10 years, 3 months ago) by njoly
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.107: +5 -5 lines
Diff to previous 1.107 (colored) to selected 1.21 (colored)

Sprinkle a few more linux_umode_t where appropriate.
Reduce diffs between archs.

Revision 1.107 / (download) - annotate - [select for diffs], Sun Dec 8 14:59:43 2013 UTC (10 years, 3 months ago) by njoly
Branch: MAIN
Changes since 1.106: +3 -2 lines
Diff to previous 1.106 (colored) to selected 1.21 (colored)

Add missing syscall argument fd in comment.

Revision 1.106 / (download) - annotate - [select for diffs], Mon Nov 18 01:32:52 2013 UTC (10 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.105: +186 -38 lines
Diff to previous 1.105 (colored) to selected 1.21 (colored)

implement the *at() syscalls.
bring the unimplemented syscall list up to date.

Revision 1.105 / (download) - annotate - [select for diffs], Tue Sep 24 13:27:50 2013 UTC (10 years, 6 months ago) by njoly
Branch: MAIN
Changes since 1.104: +19 -2 lines
Diff to previous 1.104 (colored) to selected 1.21 (colored)

Add utimensat(2) for compat linux.

Revision 1.104 / (download) - annotate - [select for diffs], Fri Oct 14 09:23:28 2011 UTC (12 years, 5 months ago) by hannken
Branch: 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
Changes since 1.103: +4 -2 lines
Diff to previous 1.103 (colored) to selected 1.21 (colored)

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.101.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:07:27 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.101: +24 -2 lines
Diff to previous 1.101 (colored) next main 1.102 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.98.4.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:41:41 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.98.4.2: +22 -0 lines
Diff to previous 1.98.4.2 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored) to selected 1.21 (colored)

sync with head

Revision 1.103 / (download) - annotate - [select for diffs], Thu Apr 14 00:59:06 2011 UTC (12 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.102: +22 -2 lines
Diff to previous 1.102 (colored) to selected 1.21 (colored)

move dup3 to a more appropriate place because pipe is "special". Gotta love
linux.

Revision 1.102 / (download) - annotate - [select for diffs], Sun Apr 10 15:49:56 2011 UTC (12 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.101: +4 -2 lines
Diff to previous 1.101 (colored) to selected 1.21 (colored)

We have O_CLOEXEC now

Revision 1.98.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:52:47 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.98.4.1: +14 -6 lines
Diff to previous 1.98.4.1 (colored) to branchpoint 1.98 (colored) to selected 1.21 (colored)

sync with head

Revision 1.101 / (download) - annotate - [select for diffs], Fri Nov 19 06:44:37 2010 UTC (13 years, 4 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.100: +12 -5 lines
Diff to previous 1.100 (colored) to selected 1.21 (colored)

Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.

Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).

The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.

Revision 1.98.2.2 / (download) - annotate - [select for diffs], Fri Oct 22 07:21:47 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.98.2.1: +2 -1 lines
Diff to previous 1.98.2.1 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored) to selected 1.21 (colored)

Sync with HEAD (-D20101022).

Revision 1.95.2.5 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:01 2010 UTC (13 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.95.2.4: +4 -3 lines
Diff to previous 1.95.2.4 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored) to selected 1.21 (colored)

sync with head

Revision 1.100 / (download) - annotate - [select for diffs], Tue Sep 21 19:26:19 2010 UTC (13 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3
Changes since 1.99: +4 -3 lines
Diff to previous 1.99 (colored) to selected 1.21 (colored)

implement O_DIRECTORY as standardized in POSIX-2008,
for both native and linux emulations.
this fixes the rest of PR 43695.

Revision 1.98.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:45:48 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.98: +7 -5 lines
Diff to previous 1.98 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.95.2.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:08 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.95.2.3: +7 -5 lines
Diff to previous 1.95.2.3 (colored) to branchpoint 1.95 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.98.4.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:31 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.98: +7 -5 lines
Diff to previous 1.98 (colored) to selected 1.21 (colored)

sync with head

Revision 1.99 / (download) - annotate - [select for diffs], Thu Jul 1 02:38:28 2010 UTC (13 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.98: +7 -5 lines
Diff to previous 1.98 (colored) to selected 1.21 (colored)

Remove pfind() and pgfind(), fix locking in various broken uses of these.
Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags
and have consistent behaviour.  Provide proc_find_raw() for special cases.
Fix memory leak in sysctl_proc_corename().

COMPAT_LINUX: rework ptrace() locking, minimise differences between
different versions per-arch.

Note: while this change adds some formal cosmetics for COMPAT_DARWIN and
COMPAT_IRIX - locking there is utterly broken (for ages).

Fixes PR/43176.

Revision 1.95.2.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:46:58 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.95.2.2: +3 -3 lines
Diff to previous 1.95.2.2 (colored) to branchpoint 1.95 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.98 / (download) - annotate - [select for diffs], Sun Aug 9 22:49:01 2009 UTC (14 years, 7 months ago) by haad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) to selected 1.21 (colored)

Add enum uio_seg argument to do_sys_mknod and do_sys_mkdir so these functions
can be called from kernel, too.

Change needed for zfs device node creation, until we have propoer devfs.

Oked by ad@.

Revision 1.95.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:22 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.95.2.1: +4 -7 lines
Diff to previous 1.95.2.1 (colored) to branchpoint 1.95 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.96.8.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:17:31 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.96: +4 -7 lines
Diff to previous 1.96 (colored) next main 1.97 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.92.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:44 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.92.6.2: +2 -5 lines
Diff to previous 1.92.6.2 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.97 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:48 2009 UTC (15 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: 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
Changes since 1.96: +4 -7 lines
Diff to previous 1.96 (colored) to selected 1.21 (colored)

merge christos-time_t

Revision 1.93.2.2 / (download) - annotate - [select for diffs], Sat Nov 1 21:22:26 2008 UTC (15 years, 4 months ago) by christos
Branch: christos-time_t
Changes since 1.93.2.1: +8 -19 lines
Diff to previous 1.93.2.1 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.92.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:02 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.92.6.1: +6 -17 lines
Diff to previous 1.92.6.1 (colored) to branchpoint 1.92 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.93.4.1 / (download) - annotate - [select for diffs], Sun May 18 12:33:19 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.93: +8 -19 lines
Diff to previous 1.93 (colored) next main 1.94 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:23:42 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.95: +2 -9 lines
Diff to previous 1.95 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.96.2.2 / (download) - annotate - [select for diffs], Wed May 14 01:35:05 2008 UTC (15 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.96.2.1: +2 -3 lines
Diff to previous 1.96.2.1 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored) to selected 1.21 (colored)

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.96.2.1 / (download) - annotate - [select for diffs], Sat May 10 23:48:55 2008 UTC (15 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.96: +3 -2 lines
Diff to previous 1.96 (colored) to selected 1.21 (colored)

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.96 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:43 2008 UTC (15 years, 11 months ago) by martin
Branch: 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-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Branch point for: wrstuden-revivesa, nick-hppapmap
Changes since 1.95: +2 -9 lines
Diff to previous 1.95 (colored) to selected 1.21 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.95 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:27 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.94: +6 -6 lines
Diff to previous 1.94 (colored) to selected 1.21 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.94 / (download) - annotate - [select for diffs], Wed Apr 23 12:55:16 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.93: +6 -10 lines
Diff to previous 1.93 (colored) to selected 1.21 (colored)

- Use cdev_tty().
- Tweak locking.

Revision 1.92.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:32 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.92: +25 -31 lines
Diff to previous 1.92 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.93.2.1 / (download) - annotate - [select for diffs], Sat Mar 29 20:46:59 2008 UTC (16 years ago) by christos
Branch: christos-time_t
Changes since 1.93: +4 -7 lines
Diff to previous 1.93 (colored) to selected 1.21 (colored)

Welcome to the time_t=long long dev_t=uint64_t branch.

Revision 1.69.2.9 / (download) - annotate - [select for diffs], Mon Mar 24 09:38:41 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69.2.8: +25 -31 lines
Diff to previous 1.69.2.8 (colored) next main 1.70 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.83.8.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:32 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.83.8.2: +13 -128 lines
Diff to previous 1.83.8.2 (colored) to branchpoint 1.83 (colored) next main 1.84 (colored) to selected 1.21 (colored)

sync with HEAD

Revision 1.93 / (download) - annotate - [select for diffs], Fri Mar 21 21:54:58 2008 UTC (16 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42, christos-time_t
Changes since 1.92: +25 -31 lines
Diff to previous 1.92 (colored) to selected 1.21 (colored)

Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.84.2.4 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:27 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.84.2.3: +13 -128 lines
Diff to previous 1.84.2.3 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.69.2.8 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:05 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69.2.7: +13 -68 lines
Diff to previous 1.69.2.7 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.92 / (download) - annotate - [select for diffs], Sat Feb 2 21:54:01 2008 UTC (16 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: mjf-devfs2
Changes since 1.91: +13 -68 lines
Diff to previous 1.91 (colored) to selected 1.21 (colored)

Fix the linux32 emulations of fcntl() locking.
The 64bit linux emulation versions can't be used because the lock structure
alignment and field sizes all differ.
Since there need to be 4 different versions of the linux struct flock, and
amd64 kernel needs 3 of them compiled in, rather than replicating the same
code block twice more, move the body of the code into a few #defines
that can be expanded with the correct types in the linux[32]_sys_fcntl[64]()
functions.
Should fix problems running progams like skype running under linux32
emulation on amd64.

Revision 1.69.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:41:23 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69.2.6: +48 -165 lines
Diff to previous 1.69.2.6 (colored) to selected 1.21 (colored)

sync with head

Revision 1.89.4.2 / (download) - annotate - [select for diffs], Sat Jan 19 12:14:57 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.89.4.1: +0 -60 lines
Diff to previous 1.89.4.1 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.91 / (download) - annotate - [select for diffs], Tue Jan 15 22:38:34 2008 UTC (16 years, 2 months ago) by njoly
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.90: +2 -62 lines
Diff to previous 1.90 (colored) to selected 1.21 (colored)

compat linux (and linux32) uid16 functions cleanup and fixes.

- Move uid16 functions to their own file linux_uid16.c, included by
  needed archs (arm, i386 and m68k).
- Add new MI types linux_{u,g}id16_t.
- Add macros to handle linux_uid16_t and uid_t conversions.
- Add linux_sys_getres{uid,gid}16 syscalls, to fix an overflow with
  bad sizes given to copyout when linux_sys_getres{uid,gid} are used.
- Update arm syscall table to use more uid16 functions.

Revision 1.83.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:51:09 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.83.8.1: +64 -294 lines
Diff to previous 1.83.8.1 (colored) to branchpoint 1.83 (colored) to selected 1.21 (colored)

sync with HEAD

Revision 1.89.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:52:32 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.89: +51 -57 lines
Diff to previous 1.89 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.84.2.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:44:07 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.84.2.2: +57 -114 lines
Diff to previous 1.84.2.2 (colored) to branchpoint 1.84 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.86.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:38:59 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.86.2.1: +57 -114 lines
Diff to previous 1.86.2.1 (colored) to branchpoint 1.86 (colored) next main 1.87 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.90 / (download) - annotate - [select for diffs], Thu Dec 20 23:02:54 2007 UTC (16 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base
Changes since 1.89: +51 -57 lines
Diff to previous 1.89 (colored) to selected 1.21 (colored)

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.83.6.4 / (download) - annotate - [select for diffs], Sun Dec 9 19:36:59 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.83.6.3: +29 -80 lines
Diff to previous 1.83.6.3 (colored) to branchpoint 1.83 (colored) next main 1.84 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.89 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:39 2007 UTC (16 years, 3 months ago) by pooka
Branch: 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
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored) to selected 1.21 (colored)

Remove cn_lwp from struct componentname.  curlwp should be used
from on.  The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure.

Revision 1.88 / (download) - annotate - [select for diffs], Sat Dec 8 18:36:07 2007 UTC (16 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.87: +21 -72 lines
Diff to previous 1.87 (colored) to selected 1.21 (colored)

ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...

Revision 1.84.2.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:18:47 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.84.2.1: +10 -10 lines
Diff to previous 1.84.2.1 (colored) to branchpoint 1.84 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:56:47 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.86: +9 -9 lines
Diff to previous 1.86 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.69.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:28:20 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69.2.5: +10 -183 lines
Diff to previous 1.69.2.5 (colored) to selected 1.21 (colored)

sync with head

Revision 1.87 / (download) - annotate - [select for diffs], Tue Dec 4 18:40:15 2007 UTC (16 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Changes since 1.86: +9 -9 lines
Diff to previous 1.86 (colored) to selected 1.21 (colored)

Remove all the __P

Revision 1.83.6.3 / (download) - annotate - [select for diffs], Tue Nov 27 19:36:44 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.83.6.2: +3 -3 lines
Diff to previous 1.83.6.2 (colored) to branchpoint 1.83 (colored) to selected 1.21 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.86 / (download) - annotate - [select for diffs], Mon Nov 26 19:01:31 2007 UTC (16 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase
Branch point for: vmlocking2
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored) to selected 1.21 (colored)

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.83.6.2 / (download) - annotate - [select for diffs], Wed Nov 21 21:53:55 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.83.6.1: +2 -175 lines
Diff to previous 1.83.6.1 (colored) to branchpoint 1.83 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.84.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:47:27 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.84: +2 -175 lines
Diff to previous 1.84 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.83.12.2 / (download) - annotate - [select for diffs], Sun Nov 18 19:35:11 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.83.12.1: +0 -173 lines
Diff to previous 1.83.12.1 (colored) to branchpoint 1.83 (colored) next main 1.84 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.85 / (download) - annotate - [select for diffs], Fri Nov 16 12:51:56 2007 UTC (16 years, 4 months ago) by njoly
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.84: +2 -175 lines
Diff to previous 1.84 (colored) to selected 1.21 (colored)

Cleanup. Remove a few linux syscalls definitions, now identical to
native ones (with stackgap and ALT_CHECK_xxx removal). No functional
changes expected.

Revision 1.83.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:24:56 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.83: +4 -2 lines
Diff to previous 1.83 (colored) to selected 1.21 (colored)

sync with HEAD

Revision 1.69.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:29:36 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69.2.4: +4 -2 lines
Diff to previous 1.69.2.4 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.83.6.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:43:56 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.83: +4 -2 lines
Diff to previous 1.83 (colored) to selected 1.21 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.83.12.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:36:56 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.83: +4 -2 lines
Diff to previous 1.83 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.84 / (download) - annotate - [select for diffs], Fri Oct 19 18:52:10 2007 UTC (16 years, 5 months ago) by njoly
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.83: +4 -2 lines
Diff to previous 1.83 (colored) to selected 1.21 (colored)

Add compat_linux and exec_linux_elf lkm support for amd64:
- Add needed COMPAT_OSSAUDIO to GENERIC.
- Add missing includes needed by linux_syscallargs.h.
- Add lkm building.

Revision 1.69.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:32:22 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69.2.3: +29 -155 lines
Diff to previous 1.69.2.3 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:04:14 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.81: +9 -109 lines
Diff to previous 1.81 (colored) next main 1.82 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.80.2.2 / (download) - annotate - [select for diffs], Sun May 27 14:35:04 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.80.2.1: +9 -109 lines
Diff to previous 1.80.2.1 (colored) next main 1.81 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.77.2.4 / (download) - annotate - [select for diffs], Thu May 17 13:41:13 2007 UTC (16 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.77.2.3: +7 -20 lines
Diff to previous 1.77.2.3 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.83 / (download) - annotate - [select for diffs], Sat May 12 23:02:49 2007 UTC (16 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, vmlocking-base, 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, bouyer-xenamd64
Changes since 1.82: +7 -20 lines
Diff to previous 1.82 (colored) to selected 1.21 (colored)

Split the fcntl locking code out from its copyin/out.
Use to avoid all the stackgap stuff in compat code.

Revision 1.77.2.3 / (download) - annotate - [select for diffs], Mon May 7 10:55:12 2007 UTC (16 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.77.2.2: +4 -91 lines
Diff to previous 1.77.2.2 (colored) to branchpoint 1.77 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.82 / (download) - annotate - [select for diffs], Sun Apr 22 08:29:57 2007 UTC (16 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.81: +4 -91 lines
Diff to previous 1.81 (colored) to selected 1.21 (colored)

Change the way that emulations locate files within the emulation root to
  avoid having to allocate space in the 'stackgap'
  - which is very LWP unfriendly.
The additional code for non-emulation namei() is trivial, the reduction for
  the emulations is massive.
The vnode for a processes emulation root is saved in the cwdi structure
  during process exec.
If the emulation root the TRYEMULROOT flag are set, namei() will do an initial
  search for absolute pathnames in the emulation root, if that fails it will
  retry from the normal root.
".." at the emulation root will always go to the real root, even in the middle
  of paths and when expanding symlinks.
Absolute symlinks found using absolute paths in the emulation root will be
  relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links
  inside the emulation root don't need changing).
If the root of the emulation would be returned (for an emulation lookup), then
  the real root is returned instead (matching the behaviour of emul_lookup,
  but being a cheap comparison here) so that programs that scan "../.."
  looking for the root dircetory don't loop forever.
The target for symbolic links is no longer mangled (it used to get the
  CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended).
CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding
  TRYEMULROOT to the flags to NDINIT().
A lot of the emulation system call stubs could now be deleted.

Revision 1.80.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:50:18 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.80: +18 -44 lines
Diff to previous 1.80 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.77.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:52:26 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.77.2.1: +45 -71 lines
Diff to previous 1.77.2.1 (colored) to branchpoint 1.77 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Mar 10 21:40:24 2007 UTC (17 years ago) by dsl
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Changes since 1.80: +18 -44 lines
Diff to previous 1.80 (colored) to selected 1.21 (colored)

Update all the compat stuff to not use the 'stackgap' for processing
sys_stat() and friends, instead use do_sys_stat() and do_sys_fstat()
that write the answer into a kernel buffer (on stack) that can be
converted to the correct form and written the userspace.
I've test compiled a few kernels, and tested i386 netbsd1.6 ls.
Given I think I've fixed some bugs, it might be 50-50 with new ones.

Revision 1.80 / (download) - annotate - [select for diffs], Fri Mar 9 14:11:28 2007 UTC (17 years ago) by ad
Branch: MAIN
Branch point for: vmlocking
Changes since 1.79: +5 -5 lines
Diff to previous 1.79 (colored) to selected 1.21 (colored)

- Make the proclist_lock a mutex. The write:read ratio is unfavourable,
  and mutexes are cheaper use than RW locks.
- LOCK_ASSERT -> KASSERT in some places.
- Hold proclist_lock/kernel_lock longer in a couple of places.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Mar 4 06:01:23 2007 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.78: +27 -27 lines
Diff to previous 1.78 (colored) to selected 1.21 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:53:37 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.77: +9 -5 lines
Diff to previous 1.77 (colored) to selected 1.21 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.69.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:09:19 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69.2.2: +10 -7 lines
Diff to previous 1.69.2.2 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Feb 17 21:40:19 2007 UTC (17 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.77: +9 -5 lines
Diff to previous 1.77 (colored) to selected 1.21 (colored)

Acquire proclist_lock across the calls to p_find() and pg_find().

Revision 1.77 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:19 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.76: +3 -4 lines
Diff to previous 1.76 (colored) to selected 1.21 (colored)

Merge newlock2 to head.

Revision 1.73.4.3 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:33 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.73.4.2: +2 -3 lines
Diff to previous 1.73.4.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.21 (colored)

Remove support for SA. Ok core@.

Revision 1.69.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:38 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69.2.1: +26 -111 lines
Diff to previous 1.69.2.1 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.73.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:47 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.73.6.1: +3 -3 lines
Diff to previous 1.73.6.1 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.73.4.2 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:07 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.73.4.1: +25 -110 lines
Diff to previous 1.73.4.1 (colored) to branchpoint 1.73 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.73.4.1 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:35 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.21 (colored)

Checkpoint work in progress.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:42 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, newlock2-nbase, newlock2-base, netbsd-4-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, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored) to selected 1.21 (colored)

__unused removal on arguments; approved by core.

Revision 1.73.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:24 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.73: +25 -110 lines
Diff to previous 1.73 (colored) to selected 1.21 (colored)

sync with head

Revision 1.75 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:48 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.74: +24 -109 lines
Diff to previous 1.74 (colored) to selected 1.21 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.74 / (download) - annotate - [select for diffs], Mon Sep 25 16:16:18 2006 UTC (17 years, 6 months ago) by pavel
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.21 (colored)

Replace homegrown tests for FIFO (... & S_IFIFO) by S_ISFIFO. The old code
was "correct" by luck - we don't have any other file type whose S_IF* bits
in sys/stat.h overlap with S_IFIFO.

Originally discovered by Paul Stoeber in OpenBSD.

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:45:52 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.21 (colored)

sync with head

Revision 1.71.8.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:43:29 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.71.8.1: +3 -3 lines
Diff to previous 1.71.8.1 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored) to selected 1.21 (colored)

sync with head

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:09 2006 UTC (17 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.21 (colored)

Use the LWP cached credentials where sane.

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:59:12 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.69: +40 -40 lines
Diff to previous 1.69 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.71.6.1 / (download) - annotate - [select for diffs], Thu Jun 1 22:35:50 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.21 (colored)

Sync with head.

Revision 1.71.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:48:27 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.21 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.71.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:57:28 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored) to selected 1.21 (colored)

sync with head.

Revision 1.72 / (download) - annotate - [select for diffs], Sun May 14 21:24:50 2006 UTC (17 years, 10 months ago) by elad
Branch: 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
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored) to selected 1.21 (colored)

integrate kauth.

Revision 1.71.10.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:48:38 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.21 (colored)

Adapt to kernel authorization KPI.

Revision 1.71 / (download) - annotate - [select for diffs], Sun Dec 11 12:20:19 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.70: +35 -35 lines
Diff to previous 1.70 (colored) to selected 1.21 (colored)

merge ktrace-lwp.

Revision 1.61.2.9 / (download) - annotate - [select for diffs], Thu Nov 10 14:01:06 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.61.2.8: +138 -23 lines
Diff to previous 1.61.2.8 (colored) next main 1.62 (colored) to selected 1.21 (colored)

Sync with HEAD. Here we go again...

Revision 1.70 / (download) - annotate - [select for diffs], Fri Aug 19 02:03:57 2005 UTC (18 years, 7 months ago) by christos
Branch: 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, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.69: +7 -7 lines
Diff to previous 1.69 (colored) to selected 1.21 (colored)

64 bit inode changes.

Revision 1.69 / (download) - annotate - [select for diffs], Sun May 29 22:08:16 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.68: +13 -13 lines
Diff to previous 1.68 (colored) to selected 1.21 (colored)

- sprinkle const.
- add XXXUNCONST to the emul_find() pbuf argument free'ing. XXX: this needs
  an api change.
- avoid variable shadowing.

Revision 1.68 / (download) - annotate - [select for diffs], Mon May 16 16:02:20 2005 UTC (18 years, 10 months ago) by fvdl
Branch: MAIN
Changes since 1.67: +110 -2 lines
Diff to previous 1.67 (colored) to selected 1.21 (colored)

Add *xattr functions (they all return EOPNOTSUPP).

Revision 1.67 / (download) - annotate - [select for diffs], Tue May 3 16:26:28 2005 UTC (18 years, 10 months ago) by manu
Branch: MAIN
Changes since 1.66: +14 -7 lines
Diff to previous 1.66 (colored) to selected 1.21 (colored)

First work on COMPAT_LINUX/amd64
Process startup and dynamiclinking work, but processes hang due to
Linux arch_prctl(2) not being really supported yet.

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Sun May 1 10:09:09 2005 UTC (18 years, 11 months ago) by tron
Branch: netbsd-1-6
Changes since 1.52: +4 -4 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.21 (colored)

Pull up revision 1.62 via patch (requested by bad in ticket #5762):
fix linux_sys_p{read|write}() to actually call correct syscall after
arg massage, i.e. sys_p{read|write} as appropriate; up to now, the functions
called sys_{read|write}() by mistake

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:39 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.64: +12 -7 lines
Diff to previous 1.64 (colored) next main 1.65 (colored) to selected 1.21 (colored)

sync with -current

Revision 1.61.2.8 / (download) - annotate - [select for diffs], Fri Apr 1 14:29:36 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.61.2.7: +7 -2 lines
Diff to previous 1.61.2.7 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.64.4.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:33:37 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.64: +12 -7 lines
Diff to previous 1.64 (colored) next main 1.65 (colored) to selected 1.21 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Mar 10 14:12:28 2005 UTC (19 years ago) by christos
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, 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, 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, netbsd-3, kent-audio2-base
Changes since 1.65: +7 -2 lines
Diff to previous 1.65 (colored) to selected 1.21 (colored)

Add nanosecond handling on the stat and stat64 code for the i386.

Revision 1.61.2.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:40:02 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.61.2.6: +7 -7 lines
Diff to previous 1.61.2.6 (colored) to selected 1.21 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.65 / (download) - annotate - [select for diffs], Sat Feb 26 23:10:19 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.64: +7 -7 lines
Diff to previous 1.64 (colored) to selected 1.21 (colored)

nuke trailing whitespace

Revision 1.61.2.6 / (download) - annotate - [select for diffs], Sat Dec 18 09:31:45 2004 UTC (19 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.61.2.5: +3 -3 lines
Diff to previous 1.61.2.5 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Dec 12 20:42:54 2004 UTC (19 years, 3 months ago) by abs
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.21 (colored)

Fix comments slighly

Revision 1.61.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:25:38 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.61.2.4: +35 -35 lines
Diff to previous 1.61.2.4 (colored) to selected 1.21 (colored)

Fix the sync with head I botched.

Revision 1.61.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:43:42 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.61.2.3: +35 -35 lines
Diff to previous 1.61.2.3 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.61.2.3 / (download) - annotate - [select for diffs], Wed Aug 25 06:57:33 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.61.2.2: +27 -3 lines
Diff to previous 1.61.2.2 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Sun Aug 15 14:23:45 2004 UTC (19 years, 7 months ago) by tron
Branch: netbsd-2-0
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-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
Changes since 1.62: +27 -3 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.21 (colored)

Pull up revision 1.63 (requested by jdolecek in ticket #764):
on Linux, unlink() fails with EISDIR if the target is directory,
rather than EPERM; to emulate this properly, translate the error to EISDIR
if the target patch exists and points to a directory
this fixes the 'ant clean' problem reported by Marc Recht on current-users@
with SuSE 9.1 libraries

Revision 1.63 / (download) - annotate - [select for diffs], Fri Aug 13 21:27:32 2004 UTC (19 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.62: +27 -3 lines
Diff to previous 1.62 (colored) to selected 1.21 (colored)

on Linux, unlink() fails with EISDIR if the target is directory,
rather than EPERM; to emulate this properly, translate the error to EISDIR
if the target patch exists and points to a directory

this fixes the 'ant clean' problem reported by Marc Recht on current-users@
with SuSE 9.1 libraries

Revision 1.61.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:44:03 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.61.2.1: +4 -4 lines
Diff to previous 1.61.2.1 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.62 / (download) - annotate - [select for diffs], Sat Aug 9 17:11:51 2003 UTC (20 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.61: +4 -4 lines
Diff to previous 1.61 (colored) to selected 1.21 (colored)

fix linux_sys_p{read|write}() to actually call correct syscall after
arg massage, i.e. sys_p{read|write} as appropriate; up to now, the functions
called sys_{read|write}() by mistake

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:25:47 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.61: +33 -33 lines
Diff to previous 1.61 (colored) to selected 1.21 (colored)

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.61 / (download) - annotate - [select for diffs], Sun Jun 29 22:29:29 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.60: +33 -34 lines
Diff to previous 1.60 (colored) to selected 1.21 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Jun 29 14:51:28 2003 UTC (20 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.59: +16 -8 lines
Diff to previous 1.59 (colored) to selected 1.21 (colored)

properly FILE_USE/FILE_UNUSE descriptor in linux_sys_fcntl()
adresses PR kern/21628 by Wolfgang Solfrank

Revision 1.59 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:21 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.58: +31 -31 lines
Diff to previous 1.58 (colored) to selected 1.21 (colored)

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.58 / (download) - annotate - [select for diffs], Wed Mar 19 11:36:35 2003 UTC (21 years ago) by dsl
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.21 (colored)

Alternative pid/proc allocater, removes all searches associated with pid
lookup and allocation, and any dependency on NPROC or MAXUSERS.
NO_PID changed to -1 (and renamed NO_PGID) to remove artificial limit
on PID_MAX.
As discussed on tech-kern.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Feb 27 16:04:16 2003 UTC (21 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.56: +10 -4 lines
Diff to previous 1.56 (colored) to selected 1.21 (colored)

make compat_linux struct file interlock friendly.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Jan 18 08:02:52 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.55: +111 -90 lines
Diff to previous 1.55 (colored) to selected 1.21 (colored)

Merge the nathanw_sa branch.

Revision 1.37.2.14 / (download) - annotate - [select for diffs], Fri Dec 20 00:03:51 2002 UTC (21 years, 3 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.37.2.13: +3 -3 lines
Diff to previous 1.37.2.13 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored) to selected 1.21 (colored)

LWPify new mkfifo code.

Revision 1.37.2.13 / (download) - annotate - [select for diffs], Thu Dec 19 00:42:53 2002 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.37.2.12: +19 -6 lines
Diff to previous 1.37.2.12 (colored) to branchpoint 1.37 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Dec 17 11:48:02 2002 UTC (21 years, 3 months ago) by simonb
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.54: +4 -4 lines
Diff to previous 1.54 (colored) to selected 1.21 (colored)

Use the already-filled-in-but-not-used native syscall args in
linux_sys_mknod().

Revision 1.54 / (download) - annotate - [select for diffs], Wed Dec 11 19:30:39 2002 UTC (21 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.53: +17 -4 lines
Diff to previous 1.53 (colored) to selected 1.21 (colored)

linux_sys_mknod(): if creating device file (i.e. !fifo case), mask
the passed device number to only contain lower 16 bits; older glibc
appears to pass some junk in upper bits sometimes, resulting in incorrect
device entries being created

Problem initially analyzed by Thor Lancelot Simon.

Revision 1.39.2.7 / (download) - annotate - [select for diffs], Thu Oct 10 18:38:03 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.39.2.6: +10 -6 lines
Diff to previous 1.39.2.6 (colored) next main 1.40 (colored) to selected 1.21 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.37.2.12 / (download) - annotate - [select for diffs], Tue Sep 17 21:19:02 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.11: +10 -6 lines
Diff to previous 1.37.2.11 (colored) to branchpoint 1.37 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (21 years, 6 months ago) by gehenna
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.52: +10 -6 lines
Diff to previous 1.52 (colored) to selected 1.21 (colored)

Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.39.2.6 / (download) - annotate - [select for diffs], Sun Jun 23 17:44:22 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.39.2.5: +47 -41 lines
Diff to previous 1.39.2.5 (colored) to selected 1.21 (colored)

catch up with -current on kqueue branch

Revision 1.37.2.11 / (download) - annotate - [select for diffs], Thu Jun 20 03:43:04 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.10: +2 -3 lines
Diff to previous 1.37.2.10 (colored) to branchpoint 1.37 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.37.2.10 / (download) - annotate - [select for diffs], Wed May 29 21:32:38 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.9: +3 -2 lines
Diff to previous 1.37.2.9 (colored) to branchpoint 1.37 (colored) to selected 1.21 (colored)

#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.52.2.1 / (download) - annotate - [select for diffs], Thu May 16 04:24:11 2002 UTC (21 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.52: +10 -6 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.21 (colored)

Replace the direct-access to devsw table with calling devsw API.

Revision 1.52 / (download) - annotate - [select for diffs], Mon May 13 05:31:42 2002 UTC (21 years, 10 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, 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, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, gehenna-devsw-base
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.51: +2 -3 lines
Diff to previous 1.51 (colored) to selected 1.21 (colored)

Remove an unreachable "break" after a return statement.

Revision 1.37.2.9 / (download) - annotate - [select for diffs], Wed Apr 17 00:05:07 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.8: +1 -4 lines
Diff to previous 1.37.2.8 (colored) to branchpoint 1.37 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Apr 10 18:19:34 2002 UTC (21 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.50: +3 -6 lines
Diff to previous 1.50 (colored) to selected 1.21 (colored)

implement getdents64; my full java tree builds now.

Revision 1.37.2.8 / (download) - annotate - [select for diffs], Mon Apr 1 07:44:25 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.7: +46 -36 lines
Diff to previous 1.37.2.7 (colored) to branchpoint 1.37 (colored) to selected 1.21 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.50 / (download) - annotate - [select for diffs], Sun Mar 24 15:12:45 2002 UTC (22 years ago) by jdolecek
Branch: MAIN
Changes since 1.49: +3 -2 lines
Diff to previous 1.49 (colored) to selected 1.21 (colored)

add explicit comment a FILE_USE() is not needed here

Revision 1.49 / (download) - annotate - [select for diffs], Sun Mar 24 00:32:34 2002 UTC (22 years ago) by jdolecek
Branch: MAIN
Changes since 1.48: +38 -61 lines
Diff to previous 1.48 (colored) to selected 1.21 (colored)

Fix problem with assumption non-socket == vnode in F_{G,S}ETOWN different way
(revisions 1.47 & 1.48 effectively backed off):
* for all but vnodes, just fallback to sys_fcntl(); assumming
  state of support for F_SETOWN/F_GETOWN and even hardcoding it here is
  not right (e.g. rev. 1.47 had this incorrect for DTYPE_PIPE)
* fallback to sys_fcntl() also for vnodes which don't represent tty
* don't need to use FILE_{,UN}USE() here, the code won't block while
  using the pointer
* add/fix some comments

Revision 1.48 / (download) - annotate - [select for diffs], Sat Mar 23 15:36:15 2002 UTC (22 years ago) by christos
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored) to selected 1.21 (colored)

correct placement for FILE_UNUSE [from Izumi Tsutsui]

Revision 1.47 / (download) - annotate - [select for diffs], Fri Mar 22 14:53:26 2002 UTC (22 years ago) by christos
Branch: MAIN
Changes since 1.46: +61 -29 lines
Diff to previous 1.46 (colored) to selected 1.21 (colored)

- obey FILE_USE and FILE_UNUSE
- don't assume that non sockets point to vnodes.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Mar 16 20:43:53 2002 UTC (22 years ago) by christos
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.45: +28 -28 lines
Diff to previous 1.45 (colored) to selected 1.21 (colored)

make the stackgap_{init,alloc} functions MP friendly (i.e. pass struct proc *
in, instead of using curproc). While there add an optional size argument to
stackgap_init.

Revision 1.39.2.5 / (download) - annotate - [select for diffs], Sat Mar 16 16:00:37 2002 UTC (22 years ago) by jdolecek
Branch: kqueue
Changes since 1.39.2.4: +4 -4 lines
Diff to previous 1.39.2.4 (colored) to selected 1.21 (colored)

Catch up with -current.

Revision 1.37.2.7 / (download) - annotate - [select for diffs], Thu Feb 28 04:12:55 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.6: +8 -8 lines
Diff to previous 1.37.2.6 (colored) to branchpoint 1.37 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Feb 15 16:48:02 2002 UTC (22 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored) to selected 1.21 (colored)

- add a real linux_sys___sysctl because the mib numbers are different.
  implement only the kernel version getting entries.
- make the signal conversion functions consistent; dest is arg 1.
- make linux_fakedev deal with block and char devices differently.
- add linux_sys_ugetrlimit, and flesh out the regular get/setrlimit so
  that they work properly.
- add linux_mmap2 [untested].
- bump kernel to 2.4.18, and make the date be valentine's day :-)
- linux_sys_*stat64 family was totally busted. Fix it.

tested only on i386.

Status:
	gdb, telnet, work
	jdk-1.4.0 extractor works, jdk still coredumps.

christos

Revision 1.39.2.4 / (download) - annotate - [select for diffs], Mon Feb 11 20:09:34 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.39.2.3: +6 -6 lines
Diff to previous 1.39.2.3 (colored) to selected 1.21 (colored)

Sync w/ -current.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Jan 14 23:14:42 2002 UTC (22 years, 2 months ago) by bjh21
Branch: MAIN
Changes since 1.43: +6 -6 lines
Diff to previous 1.43 (colored) to selected 1.21 (colored)

Crude first cut at ARMLinux binary compatibility.  Successfully runs
"/emul/linux/bin/echo hello, world", dynamically linked.

Revision 1.39.2.3 / (download) - annotate - [select for diffs], Thu Jan 10 19:51:41 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.39.2.2: +7 -3 lines
Diff to previous 1.39.2.2 (colored) to selected 1.21 (colored)

Sync kqueue branch with -current.

Revision 1.37.2.6 / (download) - annotate - [select for diffs], Wed Nov 14 19:13:10 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.5: +4 -1 lines
Diff to previous 1.37.2.5 (colored) to branchpoint 1.37 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Nov 13 02:08:52 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.42: +4 -1 lines
Diff to previous 1.42 (colored) to selected 1.21 (colored)

add RCSIDs (including regeneration of files as appropriate)

Revision 1.41.2.2 / (download) - annotate - [select for diffs], Mon Oct 1 12:43:45 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.41.2.1: +4 -3 lines
Diff to previous 1.41.2.1 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.21 (colored)

Catch up with -current.

Revision 1.37.2.5 / (download) - annotate - [select for diffs], Wed Sep 26 19:54:48 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.4: +4 -3 lines
Diff to previous 1.37.2.4 (colored) to branchpoint 1.37 (colored) to selected 1.21 (colored)

Catch up to -current.
Again.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Sep 22 21:22:57 2001 UTC (22 years, 6 months ago) by manu
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Changes since 1.41: +4 -3 lines
Diff to previous 1.41 (colored) to selected 1.21 (colored)

Fixes for mips support

Revision 1.37.2.4 / (download) - annotate - [select for diffs], Fri Sep 21 22:35:18 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.3: +42 -46 lines
Diff to previous 1.37.2.3 (colored) to branchpoint 1.37 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Thu Sep 13 01:15:24 2001 UTC (22 years, 6 months ago) by thorpej
Branch: kqueue
Changes since 1.39.2.1: +43 -46 lines
Diff to previous 1.39.2.1 (colored) to selected 1.21 (colored)

Update the kqueue branch to HEAD.

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:21 2001 UTC (22 years, 6 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) to selected 1.21 (colored)

Commit my "devvp" changes to the thorpej-devvp branch.  This
replaces the use of dev_t in most places with a struct vnode *.

This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).

Revision 1.41 / (download) - annotate - [select for diffs], Tue Sep 4 20:27:29 2001 UTC (22 years, 6 months ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.40: +43 -46 lines
Diff to previous 1.40 (colored) to selected 1.21 (colored)

change LINUX_F_SETFL so that SIGIO handling for sockets
matches more closely
add support for NEW_PIPE to the SIGIO hack

Revision 1.37.2.3 / (download) - annotate - [select for diffs], Fri Aug 24 00:08:49 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.2: +2 -2 lines
Diff to previous 1.37.2.2 (colored) to branchpoint 1.37 (colored) to selected 1.21 (colored)

Catch up with -current.

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:12:44 2001 UTC (22 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) to selected 1.21 (colored)

update to -current

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jul 22 13:34:09 2001 UTC (22 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) to selected 1.21 (colored)

seperate -> separate

Revision 1.37.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 19:59:48 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.1: +59 -6 lines
Diff to previous 1.37.2.1 (colored) to branchpoint 1.37 (colored) to selected 1.21 (colored)

Catch up to -current.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Jun 16 21:32:51 2001 UTC (22 years, 9 months ago) by manu
Branch: MAIN
Branch point for: kqueue
Changes since 1.38: +54 -2 lines
Diff to previous 1.38 (colored) to selected 1.21 (colored)

Linux does not send a SIGIO to the write end of a socket,
neither it does send any SIGIO for pipes. If async I/O
was requested, we keep the SS_ASYNC in struct socket flag
set, but we clear SB_ASYNC flags on the sending buffer
(for socket), and on the sending and the receiving buffer
(for pipes).

Because we do not alter to SS_ASYNC in struct socket,
the Linux process keeps a consistent view of async I/O
status if it attemps to read the async flag (SS_ASYNC)

This async I/O problem does matters, since some Linux
a programs such as the JDK request async I/O on pipes,
but they fail if they happen to get a SIGIO to the write
end of the pipe.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jun 14 20:32:43 2001 UTC (22 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.37: +6 -5 lines
Diff to previous 1.37 (colored) to selected 1.21 (colored)

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.28.4.2 / (download) - annotate - [select for diffs], Fri Mar 30 21:39:13 2001 UTC (23 years ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.28.4.1: +19 -1 lines
Diff to previous 1.28.4.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored) to selected 1.21 (colored)

Pull up revision 1.34 (via patch, requested by fvdl):
  Add some required Linux emulation bits to support the Linux
  version of VMware.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:24 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.37: +110 -89 lines
Diff to previous 1.37 (colored) to selected 1.21 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.27.8.4 / (download) - annotate - [select for diffs], Sun Feb 11 19:14:01 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.27.8.3: +11 -13 lines
Diff to previous 1.27.8.3 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jan 22 21:31:37 2001 UTC (23 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.36: +5 -8 lines
Diff to previous 1.36 (colored) to selected 1.21 (colored)

use CHECK_ALT_SYMLINK() for lstat(2)
don't call stackgap_init() for pwrite(2) and pread(2), it's not necessary

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jan 22 20:08:05 2001 UTC (23 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored) to selected 1.21 (colored)

Use CHECK_ALT_SYMLINK() instead CHECK_ALT_EXISTS() where appropriate.
This addresses kern/11757.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jan 19 01:44:46 2001 UTC (23 years, 2 months ago) by manu
Branch: MAIN
Changes since 1.34: +4 -3 lines
Diff to previous 1.34 (colored) to selected 1.21 (colored)

Added support for powerpc Linux compatibility

Revision 1.27.8.3 / (download) - annotate - [select for diffs], Fri Jan 5 17:35:26 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.27.8.2: +66 -7 lines
Diff to previous 1.27.8.2 (colored) to branchpoint 1.27 (colored) to selected 1.21 (colored)

Sync with HEAD

Revision 1.34 / (download) - annotate - [select for diffs], Fri Dec 29 20:08:31 2000 UTC (23 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.33: +19 -1 lines
Diff to previous 1.33 (colored) to selected 1.21 (colored)

Do alternate path checks for link(2).

Revision 1.33 / (download) - annotate - [select for diffs], Wed Dec 27 22:01:43 2000 UTC (23 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.32: +40 -1 lines
Diff to previous 1.32 (colored) to selected 1.21 (colored)

Use CHECK_ALT_* for chown and lchown, missed in my previous commit.
Get *id16 calls right; most can be passed through directly, but
some need the 16->32 check for -1 values.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Dec 21 20:15:53 2000 UTC (23 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.31: +4 -2 lines
Diff to previous 1.31 (colored) to selected 1.21 (colored)

Only include the 16-bit chown/fchown/lchown stuff if on i386 or m68k.
This is a little ugly, but hey, so is Linux.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Dec 18 14:40:02 2000 UTC (23 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.30: +7 -7 lines
Diff to previous 1.30 (colored) to selected 1.21 (colored)

Add seperate entries for 16 bit uid/gid calls, so that border cases
like 0xffff can be handled better (not done yet).

Revision 1.27.8.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:08:27 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.27.8.1: +19 -19 lines
Diff to previous 1.27.8.1 (colored) to branchpoint 1.27 (colored) to selected 1.21 (colored)

Sync with HEAD.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Dec 1 12:28:33 2000 UTC (23 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.29: +19 -19 lines
Diff to previous 1.29 (colored) to selected 1.21 (colored)

add e_path (emulation path) to struct emul, which replaces emulation-specific
*_emul_path variables

change macros CHECK_ALT_{CREAT|EXIST} to use that, 'root' doesn't need
to be passed explicitly any more and *_CHECK_ALT_{CREAT|EXIST} are removed
change explicit emul_find() calls in probe functions to get the emulation
path from the checked exec switch entry's emulation

remove no longer needed header files

add e_flags and e_syscall to struct emul; these are unsed and empty for now

Revision 1.27.8.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:08:22 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.27: +58 -3 lines
Diff to previous 1.27 (colored) to selected 1.21 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 15:54:38 2000 UTC (23 years, 6 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.27: +2 -3 lines
Diff to previous 1.27 (colored) next main 1.28 (colored) to selected 1.21 (colored)

Pull up revision 1.29 (requested by simonb):
  More carefully check length of user-supplied data, in particular
  make sure we don't overrun the available stack gap in stack gap
  allocations.

Revision 1.28.4.1 / (download) - annotate - [select for diffs], Wed Aug 30 03:59:20 2000 UTC (23 years, 7 months ago) by sommerfeld
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.28: +2 -3 lines
Diff to previous 1.28 (colored) to selected 1.21 (colored)

Pull up:
syssrc/sys/compat/common/compat_util.c                  1.16
syssrc/sys/compat/hpux/hpux_file.c                      1.14
syssrc/sys/compat/ibcs2/ibcs2_misc.c                    1.52
syssrc/sys/compat/ibcs2/ibcs2_stat.c                    1.16
syssrc/sys/compat/linux/common/linux_file.c             1.29
syssrc/sys/compat/linux/common/linux_misc_notalpha.c    1.58
syssrc/sys/compat/svr4/svr4_stat.c                      1.40
syssrc/sys/compat/svr4/svr4_stream.c                   1.40,1.41

Approved by thorpej and jhawk.

Emulation stackgap sanity checks, based partly on fixes from
FreeBSD-SA00:42.

Change stackgap_alloc to bounds-check the allocation vs. the stack
gap, returning NULL if there isn't room for the allocation.

Change emul_find() to check for a NULL return from stackgap_alloc()
and convert that into ENAMETOOLONG.

Reorder various emulation syscalls so that all *_CHECK_ALT_{EXIST,CREAT}
calls (which turn into emul_find() under the covers come *after* small,
fixed-size stackgap_alloc() calls.

Clean up ibcs2 {get,set}groups.

Add range checks to svr4_stream.c

Revision 1.29 / (download) - annotate - [select for diffs], Tue Aug 29 14:33:27 2000 UTC (23 years, 7 months ago) by sommerfeld
Branch: MAIN
Changes since 1.28: +2 -3 lines
Diff to previous 1.28 (colored) to selected 1.21 (colored)

Emulation stackgap sanity checks, based partly on fixes from
FreeBSD-SA00:42.

Change stackgap_alloc to bounds-check the allocation vs. the stack
gap, returning NULL if there isn't room for the allocation.

Change emul_find() to check for a NULL return from stackgap_alloc()
and convert that into ENAMETOOLONG.

Reorder various emulation syscalls so that all *_CHECK_ALT_{EXIST,CREAT}
calls (which turn into emul_find() under the covers come *after* small,
fixed-size stackgap_alloc() calls.

Clean up ibcs2 {get,set}groups.

Revision 1.27.14.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:34:27 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.27: +57 -1 lines
Diff to previous 1.27 (colored) next main 1.28 (colored) to selected 1.21 (colored)

Pull up to last week's -current.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Dec 5 21:24:30 1999 UTC (24 years, 3 months ago) by tron
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl, chs-ubc2-newbase
Branch point for: netbsd-1-5
Changes since 1.27: +57 -1 lines
Diff to previous 1.27 (colored) to selected 1.21 (colored)

Add proper stub code to make emulation of Linux's pread(2) and pwrite(2)
work. Fixes PR kern/8945 by Dave Sainty.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Feb 9 20:37:19 1999 UTC (25 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base, chs-ubc2
Branch point for: wrstuden-devbsize, thorpej_scsipi, netbsd-1-4
Changes since 1.26: +19 -19 lines
Diff to previous 1.26 (colored) to selected 1.21 (colored)

const poisoning.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Oct 7 22:17:57 1998 UTC (25 years, 5 months ago) by erh
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.25: +1 -2 lines
Diff to previous 1.25 (colored) to selected 1.21 (colored)

The siginfo include line is not needed here anymore.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Oct 4 00:02:33 1998 UTC (25 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.24: +3 -34 lines
Diff to previous 1.24 (colored) to selected 1.21 (colored)

Assign my copyright to TNF. Merge with others were appropriate.
Regen syscall files after script change.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Oct 3 20:17:41 1998 UTC (25 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.23: +8 -8 lines
Diff to previous 1.23 (colored) to selected 1.21 (colored)

Attempt to fix the mess.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Oct 1 03:22:11 1998 UTC (25 years, 6 months ago) by erh
Branch: MAIN
Changes since 1.22: +77 -40 lines
Diff to previous 1.22 (colored) to selected 1.21 (colored)

Split compat/linux/linux_file.c into common and multi-architechture parts.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Feb 14 21:57:02 1998 UTC (26 years, 1 month ago) by kleink
Branch: MAIN
Changes since 1.21: +6 -6 lines
Diff to previous 1.21 (colored)

* Use sys___posix_{chown,fchown}() instead of sys_{chown,fchown}().
* Change reference from sys_posix_rename() to sys___posix_rename().

Revision 1.21 / (download) - annotate - [selected], Mon Oct 20 22:05:16 1997 UTC (26 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +12 -17 lines
Diff to previous 1.20 (colored)

Fix the shared library versioning snafu caused by the recent changes
to the stat(2) family and msync(2).  This uses a primitive function
versioning scheme.

This reverts the libc shared library major version from 13 to 12, and
adds a few new interfaces to bring us to libc version 12.20.

From Frank van der Linden <fvdl@NetBSD.ORG>.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Oct 19 18:35:19 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +13 -8 lines
Diff to previous 1.19 (colored) to selected 1.21 (colored)

Fix bogosity in mknod(2) translation.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Oct 16 23:54:40 1997 UTC (26 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.18: +6 -3 lines
Diff to previous 1.18 (colored) to selected 1.21 (colored)

check for st_nlink overflow

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Sat Sep 6 18:45:33 1997 UTC (26 years, 6 months ago) by thorpej
Changes since 1.17: +6 -1 lines
Diff to previous 1.17 (colored) next main 1.18 (colored) to selected 1.21 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Sep 5 01:49:12 1997 UTC (26 years, 6 months ago) by kleink
Branch: MAIN
Changes since 1.17: +6 -1 lines
Diff to previous 1.17 (colored) to selected 1.21 (colored)

Add missing preparation of F_GETLK parameters in linux_sys_fcntl(); fixes PR
port-i386/4083 from Matthias Scheler <tron@lyssa.owl.de>, but vastly cleaned
up as previously suggested by myself.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jun 27 05:29:36 1997 UTC (26 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) to selected 1.21 (colored)

Use sys_posix_rename() instead of sys_rename() as it's the behaviour of the
native implementation.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Oct 10 17:51:57 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored) to selected 1.21 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.15 / (download) - annotate - [select for diffs], Mon May 20 01:59:09 1996 UTC (27 years, 10 months ago) by fvdl
Branch: MAIN
Changes since 1.14: +16 -1 lines
Diff to previous 1.14 (colored) to selected 1.21 (colored)

Update list of Linux syscalls and implement the ones that are likely to be
used and doable.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Apr 5 00:01:21 1996 UTC (27 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.13: +17 -5 lines
Diff to previous 1.13 (colored) to selected 1.21 (colored)

Prototyping changes.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 8 22:53:43 1995 UTC (28 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.12: +51 -6 lines
Diff to previous 1.12 (colored) to selected 1.21 (colored)

Work around calling the NetBSD fcntl(F_{G,S}ETOWN) for now; it is too
restrictive to implement the Linux equivalent (and perhaps too restrictive
overall).

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 7 06:27:05 1995 UTC (28 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +85 -75 lines
Diff to previous 1.11 (colored) to selected 1.21 (colored)

Prefix names of system call implementation functions with `sys_'.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Sep 19 22:37:28 1995 UTC (28 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.10: +103 -79 lines
Diff to previous 1.10 (colored) to selected 1.21 (colored)

Make system calls conform to a standard prototype and bring those
prototypes into scope.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Sep 7 21:48:59 1995 UTC (28 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.9: +43 -5 lines
Diff to previous 1.9 (colored) to selected 1.21 (colored)

Fix some bugs & typing problems.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 27 20:51:48 1995 UTC (28 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.8: +6 -3 lines
Diff to previous 1.8 (colored) to selected 1.21 (colored)

Add a hook for MD ioctl calls, plus a couple of more changes to make
svgalib binaries work on the i386

Revision 1.8 / (download) - annotate - [select for diffs], Mon Aug 14 01:27:50 1995 UTC (28 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored) to selected 1.21 (colored)

Rearrange #includes.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jul 24 06:35:28 1995 UTC (28 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored) to selected 1.21 (colored)

mkdir() has 2 arguments.. fixes PR 1248 (from Brad Spencer)

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jul 3 21:33:59 1995 UTC (28 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.5: +5 -11 lines
Diff to previous 1.5 (colored) to selected 1.21 (colored)

Fix totally bogus implementation of a few fcntl() calls. I think I'll go
live on a deserted island now..

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jun 24 20:20:13 1995 UTC (28 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.4: +38 -39 lines
Diff to previous 1.4 (colored) to selected 1.21 (colored)

Use compat_util.[ch].

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jun 22 21:34:33 1995 UTC (28 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored) to selected 1.21 (colored)

* Changed to use generic ELF code from kern/exec_elf.c (which was taken
  from the svr4 exec code plus the linux compat mods)
* Include file change
* Add multicast sockopts (from John Brezak)

Revision 1.3 / (download) - annotate - [select for diffs], Tue Apr 4 04:21:30 1995 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.2: +11 -11 lines
Diff to previous 1.2 (colored) to selected 1.21 (colored)

Fix conversion of `type' and `whence' values in struct flock.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 5 23:23:40 1995 UTC (29 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.1: +217 -7 lines
Diff to previous 1.1 (colored) to selected 1.21 (colored)

Added a few more system calls.
More consistent alternate root file semantics throughout.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 28 23:24:53 1995 UTC (29 years, 1 month ago) by fvdl
Branch: MAIN
Diff to selected 1.21 (colored)

Added Linux compat code.

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>