The NetBSD Project

CVS log for src/sys/compat/netbsd32/netbsd32_netbsd.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.235 / (download) - annotate - [select for diffs], Sun Jul 30 05:30:45 2023 UTC (8 months, 2 weeks ago) by rin
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.234: +17 -2 lines
Diff to previous 1.234 (colored)

COMPAT_NETBSD32: Add support for memfd_create(2).

Revision 1.234 / (download) - annotate - [select for diffs], Sun Jul 30 05:10:47 2023 UTC (8 months, 2 weeks ago) by rin
Branch: MAIN
Changes since 1.233: +21 -22 lines
Diff to previous 1.233 (colored)

netbsd32_netbsd: Sort headers. No binary changes.

Revision 1.206.2.3 / (download) - annotate - [select for diffs], Wed Jun 21 20:38:35 2023 UTC (9 months, 3 weeks ago) by martin
Branch: netbsd-8
Changes since 1.206.2.2: +14 -2 lines
Diff to previous 1.206.2.2 (colored) to branchpoint 1.206 (colored) next main 1.207 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1833):

	sys/compat/netbsd32/netbsd32_netbsd.c: revision 1.232
	sys/compat/netbsd32/netbsd32_socket.c: revision 1.56
	sys/compat/netbsd32/netbsd32_conv.h: revision 1.45
	sys/compat/netbsd32/netbsd32_fs.c: revision 1.92
	sys/compat/netbsd32/netbsd32.h: revision 1.137

The read/write/send/recv system calls return ssize_t because -1 is
returned on error.  Therefore we must restrict the lengths of any
buffers to NETBSD32_SSIZE_MAX with compat32 to avoid garbage return
values.

Fixes ATF lib/libc/sys/t_write:write_err.

Revision 1.228.2.1 / (download) - annotate - [select for diffs], Wed Aug 3 11:05:51 2022 UTC (20 months, 1 week ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.228: +14 -2 lines
Diff to previous 1.228 (colored) next main 1.229 (colored)

Pull up following revision(s), all via patch
(requested by riastradh in ticket #1489):

	sys/compat/netbsd32/netbsd32_netbsd.c: revision 1.232
	sys/compat/netbsd32/netbsd32_socket.c: revision 1.56
	sys/compat/netbsd32/netbsd32_conv.h: revision 1.45
	sys/compat/netbsd32/netbsd32_fs.c: revision 1.92
	sys/compat/netbsd32/netbsd32.h: revision 1.137

The read/write/send/recv system calls return ssize_t because -1 is
returned on error.  Therefore we must restrict the lengths of any
buffers to NETBSD32_SSIZE_MAX with compat32 to avoid garbage return
values.

Fixes ATF lib/libc/sys/t_write:write_err.

Revision 1.233 / (download) - annotate - [select for diffs], Mon Sep 20 01:07:45 2021 UTC (2 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.232: +17 -2 lines
Diff to previous 1.232 (colored)

Add the eventfd(2) system call to COMPAT_NETBSD32.

Revision 1.230.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:42 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.230: +14 -4 lines
Diff to previous 1.230 (colored) next main 1.231 (colored)

Sync with HEAD.

Revision 1.232 / (download) - annotate - [select for diffs], Tue Jan 19 03:41:22 2021 UTC (3 years, 2 months ago) by simonb
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
Changes since 1.231: +14 -2 lines
Diff to previous 1.231 (colored)

The read/write/send/recv system calls return ssize_t because -1 is
returned on error.  Therefore we must restrict the lengths of any
buffers to NETBSD32_SSIZE_MAX with compat32 to avoid garbage return
values.

Fixes ATF lib/libc/sys/t_write:write_err.

Revision 1.231 / (download) - annotate - [select for diffs], Fri Jan 15 03:51:41 2021 UTC (3 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.230: +2 -4 lines
Diff to previous 1.230 (colored)

Remove unused LIMITCHECK() macro (now contained in netbsd32_rlimit.c).

Revision 1.230 / (download) - annotate - [select for diffs], Sat Oct 10 00:00:54 2020 UTC (3 years, 6 months ago) by rin
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.229: +18 -2 lines
Diff to previous 1.229 (colored)

Teach about getrandom(2) to COMPAT_NETBSD32.

Revision 1.229 / (download) - annotate - [select for diffs], Sat May 16 18:31:48 2020 UTC (3 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.228: +17 -2 lines
Diff to previous 1.228 (colored)

Add ACL support for FFS. From FreeBSD.

Revision 1.216.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:16 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.216.2.1: +9 -8 lines
Diff to previous 1.216.2.1 (colored) to branchpoint 1.216 (colored) next main 1.217 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.228 / (download) - annotate - [select for diffs], Thu Jun 20 03:31:54 2019 UTC (4 years, 9 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, 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
Branch point for: netbsd-9
Changes since 1.227: +4 -4 lines
Diff to previous 1.227 (colored)

Add mkfifo{,at}(2) mode in mknod{,at}(2) as requested by POSIX

mknod with mode & S_IFIFO and dev=0 shall behave like mkfifo.

Update the documentation to reflect this state.

Add ATF tests.

This is an in-kernel implementation as typically user-space programs use
mkfifo(2) directly, however whenever there is need to bypass libc (like in
valgrind) then portable POSIX software calls the mknod syscall.

Noted on tech-kern@ by Greg Troxel.

Revision 1.227 / (download) - annotate - [select for diffs], Tue Jun 18 22:34:25 2019 UTC (4 years, 9 months ago) by kamil
Branch: MAIN
Changes since 1.226: +3 -3 lines
Diff to previous 1.226 (colored)

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

No functional change intended.

Revision 1.226 / (download) - annotate - [select for diffs], Tue Jun 18 16:46:03 2019 UTC (4 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.225: +6 -7 lines
Diff to previous 1.225 (colored)

sort -u opt_ to remove dup.

Revision 1.225 / (download) - annotate - [select for diffs], Tue Jun 18 16:22:54 2019 UTC (4 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.224: +3 -2 lines
Diff to previous 1.224 (colored)

Add options for quota.

Revision 1.224 / (download) - annotate - [select for diffs], Tue Jun 18 16:05:30 2019 UTC (4 years, 9 months ago) by pgoyette
Branch: MAIN
Changes since 1.223: +3 -2 lines
Diff to previous 1.223 (colored)

Include opt_quota.h

Fixes (at least) the amd64 build.

Revision 1.216.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:02 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.216: +248 -486 lines
Diff to previous 1.216 (colored)

Sync with HEAD

Revision 1.223 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:40 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Changes since 1.222: +10 -20 lines
Diff to previous 1.222 (colored)

Merge the [pgoyette-compat] branch

Revision 1.206.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 12:04:09 2018 UTC (5 years, 3 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.206.2.1: +6 -3 lines
Diff to previous 1.206.2.1 (colored) to branchpoint 1.206 (colored)

Pull up following revision(s) (requested by mrg in ticket #1146):

	sys/compat/netbsd32/netbsd32_netbsd.c: revision 1.219

pset_create() takes a pointer so it needs special handling.

Revision 1.214.2.7 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:46 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.214.2.6: +221 -449 lines
Diff to previous 1.214.2.6 (colored) to branchpoint 1.214 (colored) next main 1.215 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.193.6.1 / (download) - annotate - [select for diffs], Tue Dec 25 11:34:14 2018 UTC (5 years, 3 months ago) by martin
Branch: netbsd-7-0
Changes since 1.193: +3 -3 lines
Diff to previous 1.193 (colored) next main 1.194 (colored)

Apply patch, requested by maxv in ticket #1666:
Fix similar to:

	sys/uvm/uvm_swap.c: revision 1.178

Woah man, fix enormous leak.

        Possible info leak: [len=1056, leaked=931]
        #0 0xffffffff80bad351 in kleak_copyout
        #1 0xffffffff80b2cf64 in uvm_swap_stats.part.1
        #2 0xffffffff80b2d38d in uvm_swap_stats
        #3 0xffffffff80b2d43c in sys_swapctl
        #4 0xffffffff80259b82 in syscall

Revision 1.193.10.1 / (download) - annotate - [select for diffs], Tue Dec 25 11:33:27 2018 UTC (5 years, 3 months ago) by martin
Branch: netbsd-7-1
Changes since 1.193: +3 -3 lines
Diff to previous 1.193 (colored) next main 1.194 (colored)

Apply patch, requested by maxv in ticket #1666:
Fix similar to:

	sys/uvm/uvm_swap.c: revision 1.178

Woah man, fix enormous leak.

        Possible info leak: [len=1056, leaked=931]
        #0 0xffffffff80bad351 in kleak_copyout
        #1 0xffffffff80b2cf64 in uvm_swap_stats.part.1
        #2 0xffffffff80b2d38d in uvm_swap_stats
        #3 0xffffffff80b2d43c in sys_swapctl
        #4 0xffffffff80259b82 in syscall

Revision 1.193.2.1 / (download) - annotate - [select for diffs], Tue Dec 25 11:32:30 2018 UTC (5 years, 3 months ago) by martin
Branch: netbsd-7
Changes since 1.193: +3 -3 lines
Diff to previous 1.193 (colored) next main 1.194 (colored)

Apply patch, requested by maxv in ticket #1666:
Fix similar to:

	sys/uvm/uvm_swap.c: revision 1.178

Woah man, fix enormous leak.

        Possible info leak: [len=1056, leaked=931]
        #0 0xffffffff80bad351 in kleak_copyout
        #1 0xffffffff80b2cf64 in uvm_swap_stats.part.1
        #2 0xffffffff80b2d38d in uvm_swap_stats
        #3 0xffffffff80b2d43c in sys_swapctl
        #4 0xffffffff80259b82 in syscall

Revision 1.206.2.1 / (download) - annotate - [select for diffs], Tue Dec 25 11:19:52 2018 UTC (5 years, 3 months ago) by martin
Branch: netbsd-8
Changes since 1.206: +3 -3 lines
Diff to previous 1.206 (colored)

Apply patch, requested by maxv in ticket #1142:
Similar to:

	sys/uvm/uvm_swap.c: revision 1.178

Fix kernel info leak in swapctl(2).

        Possible info leak: [len=1056, leaked=931]
        #0 0xffffffff80bad351 in kleak_copyout
        #1 0xffffffff80b2cf64 in uvm_swap_stats.part.1
        #2 0xffffffff80b2d38d in uvm_swap_stats
        #3 0xffffffff80b2d43c in sys_swapctl
        #4 0xffffffff80259b82 in syscall

Revision 1.222 / (download) - annotate - [select for diffs], Mon Dec 24 21:27:05 2018 UTC (5 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.221: +2 -175 lines
Diff to previous 1.221 (colored)

move mmap(), compat 40 mount(), pipe() and getfh() into their own files
as the implementation is non trivial or is compat.  mark old mount()
properly instead of manually #if'ing ito to ENOSYS.

Revision 1.221 / (download) - annotate - [select for diffs], Mon Dec 24 20:44:39 2018 UTC (5 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.220: +13 -212 lines
Diff to previous 1.220 (colored)

move rlimit and quota code into their own modules.

(netbsd32_netbsd.c should have only simple shims.  anything more
than copying arguments from one args struct to the other should
not be placed in this file.  still a couple more to move out.)

Revision 1.220 / (download) - annotate - [select for diffs], Mon Dec 24 20:39:17 2018 UTC (5 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.219: +227 -108 lines
Diff to previous 1.219 (colored)

fix style consistency.
remove obsolete comments or commented code.
NFC.

Revision 1.219 / (download) - annotate - [select for diffs], Mon Dec 24 20:27:57 2018 UTC (5 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.218: +6 -3 lines
Diff to previous 1.218 (colored)

pset_create() takes a pointer so it needs special handling.

Revision 1.214.2.6 / (download) - annotate - [select for diffs], Fri Sep 14 08:53:22 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.214.2.5: +2 -9 lines
Diff to previous 1.214.2.5 (colored) to branchpoint 1.214 (colored)

Move some extern definitions into netbsd32_netbsd.h rather than having
them in the .c files.

Revision 1.214.2.5 / (download) - annotate - [select for diffs], Wed Sep 12 01:26:40 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.214.2.4: +2 -13 lines
Diff to previous 1.214.2.4 (colored) to branchpoint 1.214 (colored)

Add a compat_netbsd32_16 to handle the sigcode stuff.

Revision 1.214.2.4 / (download) - annotate - [select for diffs], Wed Sep 12 01:05:21 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.214.2.3: +2 -24 lines
Diff to previous 1.214.2.3 (colored) to branchpoint 1.214 (colored)

Add a netbsd32_compat40 module, move the 4.0 mount stuff there.

Revision 1.214.2.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:46 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.214.2.2: +24 -2 lines
Diff to previous 1.214.2.2 (colored) to branchpoint 1.214 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.218 / (download) - annotate - [select for diffs], Fri Aug 10 21:44:58 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: MAIN
CVS Tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.217: +4 -2 lines
Diff to previous 1.217 (colored)

Allow syscall_establish() to install new syscalls when the existing
entry-point is either sys_nomodule or sys_nosys.  Update the
makesyscalls.sh script to create a const array of bits to allow
syscall_disestablish() to properly restore the original entry-point.
Update all the initializers of struct emul to initialize the pointer
to the bit array struct emul.

XXX Regen of all files created by makesyscalls.sh will come soon,
XXX followed by a kernel version bump (since struct emul is being
XXX modified).

This commit should address PR kern/45781 and also removes the need
for the work-around for that PR in file

	sys/arch/usermode/modules/syscallemu/syscallemu.c

Revision 1.217 / (download) - annotate - [select for diffs], Tue Jul 31 21:00:02 2018 UTC (5 years, 8 months ago) by rjs
Branch: MAIN
Changes since 1.216: +22 -2 lines
Diff to previous 1.216 (colored)

Add getsockopt2().

Revision 1.214.2.2 / (download) - annotate - [select for diffs], Mon May 21 04:36:03 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.214.2.1: +2 -3 lines
Diff to previous 1.214.2.1 (colored) to branchpoint 1.214 (colored)

Sync with HEAD

Revision 1.216 / (download) - annotate - [select for diffs], Sun May 6 13:40:51 2018 UTC (5 years, 11 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.215: +2 -3 lines
Diff to previous 1.215 (colored)

Remove an element from struct emul: e_tracesig

e_tracesig used to be implemented for Darwin compat. Nowadays the Darwin
compatiblity layer is gone and there are no other users.

This functionality isn't used where it shall be used in the existing
codebase.

If we want to emulate debugging interfaces in compat layers we would need
to implement that from scratch anyway. We would need to be bug compatible
with other OSes too.

Proposed on tech-kern@.

Welcome to NetBSD 8.99.16!

Sponsored by <The NetBSD Foundation>

Revision 1.214.2.1 / (download) - annotate - [select for diffs], Thu Mar 15 09:12:05 2018 UTC (6 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.214: +21 -52 lines
Diff to previous 1.214 (colored)

Synch with HEAD

Revision 1.215 / (download) - annotate - [select for diffs], Thu Mar 15 00:48:13 2018 UTC (6 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Changes since 1.214: +21 -52 lines
Diff to previous 1.214 (colored)

Untangle the swapctl compat code mess. Welcome to lucky 13.

Revision 1.214 / (download) - annotate - [select for diffs], Tue Jan 9 20:55:43 2018 UTC (6 years, 3 months ago) by maya
Branch: MAIN
CVS Tags: pgoyette-compat-base
Branch point for: pgoyette-compat
Changes since 1.213: +2 -3 lines
Diff to previous 1.213 (colored)

remove struct emul's e_fault.

It used to be used by COMPAT_IRIX for the purpose of overriding
uvm_fault (only implemented in MIPS), now removed.

Ride 8.99.12 version bump.

Revision 1.213 / (download) - annotate - [select for diffs], Sat Jan 6 16:41:23 2018 UTC (6 years, 3 months ago) by kamil
Branch: MAIN
Changes since 1.212: +13 -2 lines
Diff to previous 1.212 (colored)

Revert vadvise(2) removal

This system call was used in legacy Lisp code, that was inherited to modern
age and still compiled against supported compat layers (e.g. in clisp,
oaklisp, Franz Lisp).

It used to instruct the kernel about paging policy (G/C aware, flush etc).

Newly compiled code (assuming that it will detect vadvise()) will use the
libc stub for vadvise(). The headers for this interface are gone.

vadvise(2) could be marked as COMPAT_80, but as long as we support ultrix,
sunos or aout68k ABI, don't bother with this.

Requested by <mrg>

Revision 1.212 / (download) - annotate - [select for diffs], Tue Dec 26 08:30:58 2017 UTC (6 years, 3 months ago) by kamil
Branch: MAIN
Changes since 1.211: +3 -6 lines
Diff to previous 1.211 (colored)

Refactor pipe1() and correct a bug in sys_pipe2() (SYS_pipe2)

sys_pipe2() returns two integers (values), the 2nd one is a copy of the 2nd
file descriptor that lands in fildes[2]. This is a side effect of reusing
the code for sys_pipe() (SYS_pipe) and not cleaning it up.

The first returned value is (on success) 0.

Introduced a small refactoring in pipe1() that it does not operate over
retval[], but on an array int[2]. A user sets retval[] for pipe() when
desired and needed.

This refactoring touches compat code: netbsd32, linux, linux32.

Before the changes on NetBSD/amd64:

$ ktruss -i ./a.out
[...]
 15131      1 a.out    pipe2(0x7f7fff2e62b8, 0)    = 0, 4
[...]

After the changes:

$ ktruss -i ./a.out
[...]
   782      1 a.out    pipe2(0x7f7fff97e850, 0)    = 0
[...]

There should not be a visible change for current users.

Sponsored by <The NetBSD Foundation>

Revision 1.211 / (download) - annotate - [select for diffs], Tue Dec 19 19:40:03 2017 UTC (6 years, 3 months ago) by kamil
Branch: MAIN
Changes since 1.210: +2 -13 lines
Diff to previous 1.210 (colored)

Drop SYS_vadvise

The (o)vadvise syscall is dummy since the beginning of NetBSD.

It is an obsolete remnant from the old UNIX.

Sponsored by <The NetBSD Foundation>

Revision 1.210 / (download) - annotate - [select for diffs], Tue Dec 19 18:34:47 2017 UTC (6 years, 3 months ago) by kamil
Branch: MAIN
Changes since 1.209: +2 -14 lines
Diff to previous 1.209 (colored)

Drop SYS_sbrk

sbrk - change data segment size

This syscall is dummy since the inception of the project.

Sponsored by <The NetBSD Foundation>

Revision 1.209 / (download) - annotate - [select for diffs], Tue Dec 19 08:48:19 2017 UTC (6 years, 3 months ago) by kamil
Branch: MAIN
Changes since 1.208: +2 -14 lines
Diff to previous 1.208 (colored)

Drop the sstk(2) syscall stub

sstk - change stack section size

This functionality has never been implemented and is a remnant from 16-bit
UNIX. This stub appeared with the first NetBSD commit.

Sponsored by <The NetBSD Foundation>

Revision 1.208 / (download) - annotate - [select for diffs], Wed Dec 6 19:15:27 2017 UTC (6 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.207: +7 -3 lines
Diff to previous 1.207 (colored)

disable 32 bit signal ktrace records; 32 bit traced process produce 64 bit
trace records, the only record that we can't parse is that one :-)
XXX: pullup-8

Revision 1.180.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:56 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.180.2.1: +181 -57 lines
Diff to previous 1.180.2.1 (colored) to branchpoint 1.180 (colored) next main 1.181 (colored)

update from HEAD

Revision 1.193.4.7 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:59 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.193.4.6: +8 -10 lines
Diff to previous 1.193.4.6 (colored) to branchpoint 1.193 (colored) next main 1.194 (colored)

Sync with HEAD

Revision 1.207 / (download) - annotate - [select for diffs], Mon Jul 31 15:38:01 2017 UTC (6 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, nick-nhusb-base-20170825
Changes since 1.206: +2 -9 lines
Diff to previous 1.206 (colored)

Remove references to COMPAT_OLDSOCK (itself removed years ago).

Revision 1.205.6.1 / (download) - annotate - [select for diffs], Tue May 2 03:19:18 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.205: +8 -3 lines
Diff to previous 1.205 (colored) next main 1.206 (colored)

Sync with HEAD - tag prg-localcount2-base1

Revision 1.206 / (download) - annotate - [select for diffs], Sat Apr 29 01:15:40 2017 UTC (6 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Changes since 1.205: +8 -3 lines
Diff to previous 1.205 (colored)

move MAP_COPY in compat

Revision 1.193.4.6 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:00 2016 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.193.4.5: +2 -21 lines
Diff to previous 1.193.4.5 (colored) to branchpoint 1.193 (colored)

Sync with HEAD

Revision 1.200.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:07 2016 UTC (7 years, 5 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.200: +3 -21 lines
Diff to previous 1.200 (colored) next main 1.201 (colored)

Sync with HEAD

Revision 1.205 / (download) - annotate - [select for diffs], Wed Oct 19 09:44:01 2016 UTC (7 years, 5 months ago) by skrll
Branch: MAIN
CVS Tags: prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Changes since 1.204: +2 -21 lines
Diff to previous 1.204 (colored)

PR kern/51514: ptrace(2) fails for 32-bit process on 64-bit kernel

Updated from the original patch in the PR by me.

Revision 1.193.4.5 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:39 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.193.4.4: +22 -6 lines
Diff to previous 1.193.4.4 (colored) to branchpoint 1.193 (colored)

Sync with HEAD

Revision 1.204 / (download) - annotate - [select for diffs], Sat Sep 17 02:44:38 2016 UTC (7 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20161004
Changes since 1.203: +3 -4 lines
Diff to previous 1.203 (colored)

deal with not having KTRACE

Revision 1.203 / (download) - annotate - [select for diffs], Tue Sep 13 07:39:45 2016 UTC (7 years, 7 months ago) by martin
Branch: MAIN
CVS Tags: localcount-20160914
Changes since 1.202: +6 -3 lines
Diff to previous 1.202 (colored)

Allow emulations to override the creation of ktrace records for posting
signals. In compat_netbsd32 use this to write the 32bit version of
the records, so a 32bit userland kdump is happy.

Revision 1.202 / (download) - annotate - [select for diffs], Sat Sep 10 08:21:26 2016 UTC (7 years, 7 months ago) by skrll
Branch: MAIN
Changes since 1.201: +5 -5 lines
Diff to previous 1.201 (colored)

Trailing whitespace

Revision 1.201 / (download) - annotate - [select for diffs], Sat Sep 10 08:20:49 2016 UTC (7 years, 7 months ago) by skrll
Branch: MAIN
Changes since 1.200: +16 -2 lines
Diff to previous 1.200 (colored)

+netbsd32__sched_protect

Revision 1.193.4.4 / (download) - annotate - [select for diffs], Sun May 29 08:44:20 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.193.4.3: +40 -24 lines
Diff to previous 1.193.4.3 (colored) to branchpoint 1.193 (colored)

Sync with HEAD

Revision 1.200 / (download) - annotate - [select for diffs], Fri May 13 16:54:36 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529
Branch point for: pgoyette-localcount
Changes since 1.199: +40 -24 lines
Diff to previous 1.199 (colored)

clamp getrlimit the same way we clamp setrlimit

Revision 1.193.4.3 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:08 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.193.4.2: +3 -3 lines
Diff to previous 1.193.4.2 (colored) to branchpoint 1.193 (colored)

Sync with HEAD

Revision 1.199 / (download) - annotate - [select for diffs], Sun Feb 28 23:24:35 2016 UTC (8 years, 1 month ago) by khorben
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.198: +3 -3 lines
Diff to previous 1.198 (colored)

Add missing newline character in error message

This is related to kern/50469.

Revision 1.193.4.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:47 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.193.4.1: +9 -2 lines
Diff to previous 1.193.4.1 (colored) to branchpoint 1.193 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.198 / (download) - annotate - [select for diffs], Tue Dec 1 02:20:43 2015 UTC (8 years, 4 months ago) by pgoyette
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226
Changes since 1.197: +9 -2 lines
Diff to previous 1.197 (colored)

Adapt to per-emulation syscall_autoload capability (the table of syscalls
that can be autoloaded is currently empty).

Revision 1.193.4.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:55 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.193: +112 -6 lines
Diff to previous 1.193 (colored)

Sync with HEAD

Revision 1.197 / (download) - annotate - [select for diffs], Thu Jul 30 09:55:57 2015 UTC (8 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.196: +12 -5 lines
Diff to previous 1.196 (colored)

Lock before calling uvm_swap_stats(). Otherwise a race condition could
corrupt memory.

Revision 1.196 / (download) - annotate - [select for diffs], Sun Jun 21 12:54:33 2015 UTC (8 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.195: +63 -2 lines
Diff to previous 1.195 (colored)

Implement trivial conversion for pset_*

Revision 1.195 / (download) - annotate - [select for diffs], Tue Jun 16 10:42:38 2015 UTC (8 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.194: +40 -2 lines
Diff to previous 1.194 (colored)

Implement posix_fallocate and fdiscard compat

Revision 1.194 / (download) - annotate - [select for diffs], Tue Jun 16 07:29:46 2015 UTC (8 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.193: +3 -3 lines
Diff to previous 1.193 (colored)

Fix a comment.

Revision 1.180.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:33 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.180: +100 -327 lines
Diff to previous 1.180 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.185.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:33 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.185: +38 -57 lines
Diff to previous 1.185 (colored) next main 1.186 (colored)

Rebase.

Revision 1.193 / (download) - annotate - [select for diffs], Thu Jul 31 12:35:33 2014 UTC (9 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Branch point for: nick-nhusb, netbsd-7-1, netbsd-7-0, netbsd-7
Changes since 1.192: +4 -20 lines
Diff to previous 1.192 (colored)

Just return sys_open(). COMPAT_10 will be handled internally.

ok christos@

Revision 1.192 / (download) - annotate - [select for diffs], Sat Jun 28 22:27:50 2014 UTC (9 years, 9 months ago) by dholland
Branch: MAIN
Changes since 1.191: +4 -4 lines
Diff to previous 1.191 (colored)

Revert the following changes:

   src/sys/sys/quotactl.h 1.37
   src/sys/compat/netbsd32/netbsd32.h 1.101
   src/sys/compat/netbsd32/netbsd32_netbsd.c 1.188, 1.189
   src/sys/kern/vfs_quotactl.c 1.39
   src/sys/kern/vfs_syscalls.c 1.483
   src/sys/ufs/lfs/ulfs_quota.c 1.11
   src/sys/ufs/ufs/ufs_quota.c 1.116
   src/lib/libquota/quota_kernel.c 1.5

and do them correctly.

If you're going to change the name of something, you need to change
the name of *all* the things with the same name, not just a handful,
and you should change it to something similar so it still matches the
rest of the system rather than just picking an arbitrarily different
name.

Hi, Joerg.

To wit, rename the quotactl "delete" operation to "del", because
"delete" is a reserved word in C++ and for some reason Joerg wants to
run internal interfaces used only by C code through his C++ compiler.
Do not rename it to "remove" instead, because this doesn't match
libquota or the rest of the usage throughout the system; and rename
all the related identifiers, not just the ones that blew the mind of
Joerg's C++ compiler.

Because this is not a user-facing API (the only userland consumer
sys/quotactl.h is libquota) it is sort of ok to make arbitrary
source-incompatible changes; however, by the same token it's completely
unnecessary. If it *were* a user-facing API that someone might have a
semi-rational reason to want to run a C++ compiler on, it would be
incorrect to change it at this point.

Revision 1.191 / (download) - annotate - [select for diffs], Sat Jun 28 11:39:15 2014 UTC (9 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.190: +22 -24 lines
Diff to previous 1.190 (colored)

Sync getfh() with the native implementation. It also fixes:
a) a return value
b) a vnode lock
c) a user-controlled memory allocation

ok christos@, on tech-kern

Revision 1.179.2.2 / (download) - annotate - [select for diffs], Thu Jun 26 03:28:47 2014 UTC (9 years, 9 months ago) by msaitoh
Branch: netbsd-6
Changes since 1.179.2.1: +8 -7 lines
Diff to previous 1.179.2.1 (colored) to branchpoint 1.179 (colored) next main 1.180 (colored)

Pull up following revision(s) (requested by maxv in ticket #1084):
	sys/compat/netbsd32/netbsd32_netbsd.c	rev. 1.187

Fix cases where count <= 0 (thanks to Maxime Villard for raising this).

Revision 1.190 / (download) - annotate - [select for diffs], Sun Jun 22 19:09:39 2014 UTC (9 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.189: +2 -4 lines
Diff to previous 1.189 (colored)

Sync swapctl() with netbsd32. Return EINVAL when misc<0, and 0 when misc=0
or uvmexp.nswapdev=0.

Revision 1.189 / (download) - annotate - [select for diffs], Fri Jun 13 10:37:02 2014 UTC (9 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.188: +3 -3 lines
Diff to previous 1.188 (colored)

delete -> remove

Revision 1.188 / (download) - annotate - [select for diffs], Thu Jun 12 21:39:45 2014 UTC (9 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.187: +3 -3 lines
Diff to previous 1.187 (colored)

Don't t use a C++ keyword as field name.

Revision 1.173.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:17 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.173.2.2: +96 -304 lines
Diff to previous 1.173.2.2 (colored) to branchpoint 1.173 (colored) next main 1.174 (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.180.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:45:33 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.180.4.1: +97 -12 lines
Diff to previous 1.180.4.1 (colored) to branchpoint 1.180 (colored) next main 1.181 (colored)

sync with head

Revision 1.187 / (download) - annotate - [select for diffs], Thu May 15 18:25:35 2014 UTC (9 years, 11 months ago) by manu
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.186: +8 -7 lines
Diff to previous 1.186 (colored)

Fix cases where count <= 0 (thanks to Maxime Villard for raising this)

Revision 1.186 / (download) - annotate - [select for diffs], Wed Apr 30 17:23:45 2014 UTC (9 years, 11 months ago) by njoly
Branch: MAIN
CVS Tags: yamt-pagecache-base9
Changes since 1.185: +10 -10 lines
Diff to previous 1.185 (colored)

Do not use native off_t type under compat netbsd32, but a new
netbsd32_off_t that provide the expected alignment for 64bit types.

Revision 1.185 / (download) - annotate - [select for diffs], Sat Mar 22 08:15:25 2014 UTC (10 years ago) by maxv
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.184: +6 -3 lines
Diff to previous 1.184 (colored)

Fix a potential - but very unlikely - NULL pointer dereference.
(it does not introduce a new error code for open(), since
 pathbuf_copyin() is already there and can return ENOMEM)

Found by my code scanner.

Revision 1.179.2.1 / (download) - annotate - [select for diffs], Tue Mar 18 08:09:46 2014 UTC (10 years ago) by msaitoh
Branch: netbsd-6
Changes since 1.179: +54 -2 lines
Diff to previous 1.179 (colored)

Pull up following revision(s) (requested by manu in ticket #1025):
	sys/compat/netbsd32/netbsd32_netbsd.c: revision 1.184
	sys/uvm/uvm_swap.c: revision 1.166
	sys/uvm/uvm_swap.h: revision 1.20
	sys/compat/netbsd32/netbsd32.h: revision 1.99
Properly translate struct swapent for COMPAT_NETBSD32
 Properly translate struct swapent for COMPAT_NETBSD32  (missing commit)

Revision 1.184 / (download) - annotate - [select for diffs], Mon Feb 3 13:20:20 2014 UTC (10 years, 2 months ago) by manu
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.183: +54 -2 lines
Diff to previous 1.183 (colored)

Properly translate struct swapent for COMPAT_NETBSD32

Revision 1.183 / (download) - annotate - [select for diffs], Sat Jan 25 03:31:12 2014 UTC (10 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.182: +9 -9 lines
Diff to previous 1.182 (colored)

ifdef debug printf

Revision 1.182 / (download) - annotate - [select for diffs], Sat Jan 25 02:27:41 2014 UTC (10 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.181: +33 -4 lines
Diff to previous 1.181 (colored)

compat_10 fix: open(NULL) == open(".");

Revision 1.180.4.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:24 2013 UTC (10 years, 7 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.180: +2 -294 lines
Diff to previous 1.180 (colored)

sync with head

Revision 1.180.10.1 / (download) - annotate - [select for diffs], Tue Jul 23 21:07:35 2013 UTC (10 years, 8 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.180: +2 -294 lines
Diff to previous 1.180 (colored) next main 1.181 (colored)

sync with HEAD

Revision 1.181 / (download) - annotate - [select for diffs], Thu Jul 18 13:43:32 2013 UTC (10 years, 8 months ago) by matt
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.180: +2 -294 lines
Diff to previous 1.180 (colored)

Move *at syscall handlers to netbsd32_fs.c from netbsd32_netbsd.c
Fix netbsd32_fstatat to emit a 32bit stat structure.

Revision 1.173.2.2 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:20 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.173.2.1: +409 -38 lines
Diff to previous 1.173.2.1 (colored) to branchpoint 1.173 (colored)

sync with head

Revision 1.175.4.2 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:38 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.175.4.1: +2 -11 lines
Diff to previous 1.175.4.1 (colored) to branchpoint 1.175 (colored) next main 1.176 (colored)

sync to -current.

Revision 1.180 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:39 2012 UTC (12 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet, riastradh-drm2
Changes since 1.179: +2 -11 lines
Diff to previous 1.179 (colored)

Remove COMPAT_SA / KERN_SA.  Welcome to 6.99.3!
Approved by core@.

Revision 1.175.4.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:33:58 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.175: +401 -27 lines
Diff to previous 1.175 (colored)

merge to -current.

Revision 1.179 / (download) - annotate - [select for diffs], Wed Feb 1 05:43:54 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.178: +4 -4 lines
Diff to previous 1.178 (colored)

Improve the names of some members of struct quotactl_args. These are
effectively function parameter names, but since they need to be
described with the same names in the man page the choices do matter.
Some.

Revision 1.178 / (download) - annotate - [select for diffs], Wed Feb 1 05:40:00 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.177: +86 -27 lines
Diff to previous 1.177 (colored)

Update compat_netbsd32 for new quotactl.

Revision 1.177 / (download) - annotate - [select for diffs], Tue Jan 31 22:53:56 2012 UTC (12 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.176: +317 -2 lines
Diff to previous 1.176 (colored)

Add missing *at syscalls among others

Revision 1.176 / (download) - annotate - [select for diffs], Sun Jan 29 06:29:04 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.175: +3 -3 lines
Diff to previous 1.175 (colored)

Add vfs_quotactl() in between the syscall and VFS_QUOTACTL. Call it
from the COMPAT_50 code as well as the current sys_quotactl instead
of going directly to VFS_QUOTACTL. Doesn't actually do anything yet.

Revision 1.175 / (download) - annotate - [select for diffs], Tue Nov 15 14:13:17 2011 UTC (12 years, 5 months ago) by njoly
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Changes since 1.174: +10 -4 lines
Diff to previous 1.174 (colored)

Fix pipe2 return value.

Revision 1.173.2.1 / (download) - annotate - [select for diffs], Thu Nov 10 14:31:45 2011 UTC (12 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.173: +15 -2 lines
Diff to previous 1.173 (colored)

sync with head

Revision 1.174 / (download) - annotate - [select for diffs], Tue Nov 8 10:59:12 2011 UTC (12 years, 5 months ago) by njoly
Branch: MAIN
CVS Tags: yamt-pagecache-base3
Changes since 1.173: +15 -2 lines
Diff to previous 1.173 (colored)

Add kqueue1(2) support.

Revision 1.173 / (download) - annotate - [select for diffs], Wed Aug 31 16:50:32 2011 UTC (12 years, 7 months ago) by njoly
Branch: MAIN
CVS Tags: yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.172: +20 -2 lines
Diff to previous 1.172 (colored)

Add dup3 syscall support.

Revision 1.172 / (download) - annotate - [select for diffs], Tue Jul 5 14:21:46 2011 UTC (12 years, 9 months ago) by njoly
Branch: MAIN
Changes since 1.171: +21 -2 lines
Diff to previous 1.171 (colored)

Add pipe2 syscall now needed for popen(3).

Revision 1.170.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:53 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.170: +3 -3 lines
Diff to previous 1.170 (colored) next main 1.171 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.166.2.5 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:13 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.166.2.4: +1 -1 lines
Diff to previous 1.166.2.4 (colored) to branchpoint 1.166 (colored) next main 1.167 (colored)

sync with head

Revision 1.168.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:07:33 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.168: +32 -14 lines
Diff to previous 1.168 (colored) next main 1.169 (colored)

Sync with HEAD.

Revision 1.171 / (download) - annotate - [select for diffs], Sun Jun 5 08:42:59 2011 UTC (12 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Changes since 1.170: +3 -3 lines
Diff to previous 1.170 (colored)

Delete some splurious commas and very unexpected trailing space

Revision 1.166.2.4 / (download) - annotate - [select for diffs], Tue May 31 03:04:32 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.166.2.3: +1 -1 lines
Diff to previous 1.166.2.3 (colored) to branchpoint 1.166 (colored)

sync with head

Revision 1.170 / (download) - annotate - [select for diffs], Sun May 1 02:08:15 2011 UTC (12 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.169: +3 -3 lines
Diff to previous 1.169 (colored)

Catch up with lim_privatise() change (missed in previous commit).

Revision 1.166.2.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:41:42 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.166.2.2: +28 -10 lines
Diff to previous 1.166.2.2 (colored) to branchpoint 1.166 (colored)

sync with head

Revision 1.169 / (download) - annotate - [select for diffs], Sun Mar 6 17:08:34 2011 UTC (13 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.168: +30 -12 lines
Diff to previous 1.168 (colored)

merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.

Revision 1.166.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:52:55 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.166.2.1: +16 -6 lines
Diff to previous 1.166.2.1 (colored) to branchpoint 1.166 (colored)

sync with head

Revision 1.168.4.3 / (download) - annotate - [select for diffs], Tue Feb 15 17:52:51 2011 UTC (13 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.168.4.2: +28 -29 lines
Diff to previous 1.168.4.2 (colored) to branchpoint 1.168 (colored) next main 1.169 (colored)

implement COMPAT_NETBSD32 quotactl syscalls (both new and COMPAT_50)

Revision 1.168.4.2 / (download) - annotate - [select for diffs], Wed Feb 9 16:09:55 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.168.4.1: +7 -7 lines
Diff to previous 1.168.4.1 (colored) to branchpoint 1.168 (colored)

Proper definitions for quotactl

Revision 1.168.4.1 / (download) - annotate - [select for diffs], Thu Jan 20 14:24:55 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.168: +22 -3 lines
Diff to previous 1.168 (colored)

Snapshot of work in progress on a modernised disk quota system:
- new quotactl syscall (versionned for backward compat), which takes
  as parameter a path to a mount point, and a prop_dictionary
  (in plistref format) describing commands and arguments.
  For each command, status and data are returned as a prop_dictionary.
  quota commands features will be added to take advantage of this,
  exporting quota data or getting quota commands as plists.

- new on disk-format storage (all 64bit wide), integrated to metadata for
  ffs (and playing nicely with wapbl).
  Quotas are enabled on a ffs filesystem via superblock flags.
  tunefs(8) can enable or disable quotas.
  On a quota-enabled filesystem, fsck_ffs(8) will track per-uid/gid
  block and inode usages, and will check and update quotas in Pass 6.
  quota usage and limits are stored in unliked files (one for users,
  one for groups)l fsck_ffs(8) will create the files if needed, or
  free them if needed. This means that after enabling or disabling
  quotas on a filesystem; a fsck_ffs(8) run is required.
  quotacheck(8) is not needed any more, on a unclean shutdown
  fsck or journal replay will take care of fixing quotas.
  newfs(8) can create a ready-to-mount quota-enabled filesystem
  (superblock flags are set and quota inodes are created).
  Other new features or semantic changes:
  - default quota datas, applied to users or groups which don't already
    have a quota entry
  - per-user/group grace time (instead of a filesystem global one)
  - 0 really means "nothing allowed at all", not "no limit".
    If you want "no limit", set the limit to UQUAD_MAX (tools will
    understand "unlimited" and "-")

  A quota file is structured as follow:
  it starts with a header, containing a few per-filesystem values,
  and the default quota limits.
  Quota entries are linked together as a simple list, each entry has a
  pointer (as an offset withing the file) to the next.
  The header has a pointer to a list of free quota entries, and
  a hash table of in-use entries. The size of the hash table depends
  on the filesystem block size (header+hash table should fit in the
  first block). The file is not sparse and is a multiple of
  filesystem block size (when the free quota entry list is empty a new
  filesystem block is allocated). quota entries to not cross
  filesystem block boundaries.

  In memory, the kernel keeps a cache of recently used quota entries
  as a reference to the block number, and offset withing the block.
  The quota entry itself is keept in the buf cache.

fsck_ffs(8), tunefs(8) and newfs(8) supports are completed (with
related atf tests :)
The kernel can update disk usage and report it via quotactl(2).

Todo: enforce quotas limits (limits are not checked by kernel yet)
      update repquota, edquota and rpc.rquotad to the new world
      implement compat_50_quotactl ioctl.
      update quotactl(2) man page

fsck_ffs required fixes so that allocating new blocks or inodes will
properly update the superblock and cg sumaries. This was not an issue up
to now because superblock and cg sumaries check happened last, but now
allocations or frees can happen in pass 6.

Revision 1.168 / (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
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.167: +16 -6 lines
Diff to previous 1.167 (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.143.4.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:11 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.143.4.4: +18 -15 lines
Diff to previous 1.143.4.4 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored)

sync with head.

Revision 1.166.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:15 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.166: +18 -15 lines
Diff to previous 1.166 (colored)

sync with head

Revision 1.163.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:00 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.163: +16 -64 lines
Diff to previous 1.163 (colored) next main 1.164 (colored)

Sync with HEAD.

Revision 1.167 / (download) - annotate - [select for diffs], Fri Apr 23 15:19:20 2010 UTC (13 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Changes since 1.166: +18 -15 lines
Diff to previous 1.166 (colored)

Replace M_IOV and some malloc(9)s with kmem(9), and while there:
- Fix invalid free (M_TEMP vs M_IOV) in do_sys_recvmsg(), spotted by jakllsch@.
  Also, same fix in osf1_sys_sendmsg_xopen().
- Fix attempt to free non-allocated memory in error path in netbsd32___getfh30().
- Plug a memory leak in compat_43_netbsd32_orecvmsg().

Revision 1.143.4.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:18 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.143.4.3: +42 -112 lines
Diff to previous 1.143.4.3 (colored) to branchpoint 1.143 (colored)

sync with head

Revision 1.166 / (download) - annotate - [select for diffs], Tue Mar 2 21:09:21 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.165: +2 -21 lines
Diff to previous 1.165 (colored)

remove nfssvc emulation (or non-emulation)

Revision 1.165 / (download) - annotate - [select for diffs], Tue Mar 2 16:08:15 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.164: +2 -4 lines
Diff to previous 1.164 (colored)

-fs_lfs.h

Revision 1.164 / (download) - annotate - [select for diffs], Tue Mar 2 16:03:59 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.163: +2 -32 lines
Diff to previous 1.163 (colored)

remove unused lfs compat stubs

Revision 1.163 / (download) - annotate - [select for diffs], Mon Dec 14 00:47:11 2009 UTC (14 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.162: +2 -4 lines
Diff to previous 1.162 (colored)

Merge from matt-nb5-mips64

Revision 1.162 / (download) - annotate - [select for diffs], Sat Dec 12 10:30:09 2009 UTC (14 years, 4 months ago) by njoly
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.161: +7 -7 lines
Diff to previous 1.161 (colored)

Add missing semicolons after NETBSD32TOx_UAP macro calls.

Revision 1.161 / (download) - annotate - [select for diffs], Thu Dec 10 14:10:35 2009 UTC (14 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.160: +3 -18 lines
Diff to previous 1.160 (colored)

Move saemul_netbsd32 to netbsd32_sa.c and allow the KERN_SA bits to be omitted.

Revision 1.160 / (download) - annotate - [select for diffs], Sat Nov 21 11:54:54 2009 UTC (14 years, 4 months ago) by njoly
Branch: MAIN
Changes since 1.159: +2 -3 lines
Diff to previous 1.159 (colored)

Kill redundant assignment.

Revision 1.159 / (download) - annotate - [select for diffs], Sun Oct 25 01:14:03 2009 UTC (14 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.158: +36 -37 lines
Diff to previous 1.158 (colored)

Initialise struct emul members by name (it is readable now and one can search
them in the tree).

Revision 1.145.4.2.4.2 / (download) - annotate - [select for diffs], Sun Sep 13 06:19:43 2009 UTC (14 years, 7 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15
Changes since 1.145.4.2.4.1: +2 -134 lines
Diff to previous 1.145.4.2.4.1 (colored) to branchpoint 1.145.4.2 (colored) next main 1.146 (colored)

Move netbsd32___mount50 from netbsd32_netbsd.c to netbsd32_fs.c

Revision 1.145.4.2.4.1 / (download) - annotate - [select for diffs], Sat Sep 12 18:02:32 2009 UTC (14 years, 7 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-u2-k2-k4-k7-k8-k9
Changes since 1.145.4.2: +137 -5 lines
Diff to previous 1.145.4.2 (colored)

Add support for netbsd32___mount50.  There's got to be a better of doing this.
Maybe pushing it down to vfs.  This only supports mfs/ufs/cd9660 and probably
tmpfs.

Revision 1.143.4.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:47:00 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.143.4.2: +3 -3 lines
Diff to previous 1.143.4.2 (colored) to branchpoint 1.143 (colored)

sync with head.

Revision 1.158 / (download) - annotate - [select for diffs], Sun Aug 9 22:49:01 2009 UTC (14 years, 8 months ago) by haad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Changes since 1.157: +3 -3 lines
Diff to previous 1.157 (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.154.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:31:43 2009 UTC (14 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.154.2.1: +15 -15 lines
Diff to previous 1.154.2.1 (colored) to branchpoint 1.154 (colored) next main 1.155 (colored)

Sync with HEAD.

Revision 1.143.4.2 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:18 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.143.4.1: +15 -15 lines
Diff to previous 1.143.4.1 (colored) to branchpoint 1.143 (colored)

sync with head

Revision 1.157 / (download) - annotate - [select for diffs], Sun May 17 05:57:01 2009 UTC (14 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Changes since 1.156: +15 -15 lines
Diff to previous 1.156 (colored)

pad -> PAD.  Fixes build problem reported by Paul Goyette in private email.

Revision 1.154.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:18:59 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.154: +6 -4 lines
Diff to previous 1.154 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.143.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:25 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.143: +135 -42 lines
Diff to previous 1.143 (colored)

sync with head.

Revision 1.145.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:08 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.145.2.2: +6 -4 lines
Diff to previous 1.145.2.2 (colored) to branchpoint 1.145 (colored) next main 1.146 (colored)

Sync with HEAD.

Revision 1.156 / (download) - annotate - [select for diffs], Mon Mar 16 20:48:13 2009 UTC (15 years, 1 month ago) by njoly
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.155: +3 -3 lines
Diff to previous 1.155 (colored)

Fix dev_t alignment, by not using the new 64bit value directly but
rather a 32bit aligned version (netbsd32_dev_t = netbsd32_uint64).

ok by cube@.

Revision 1.155 / (download) - annotate - [select for diffs], Wed Mar 4 18:11:24 2009 UTC (15 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.154: +5 -3 lines
Diff to previous 1.154 (colored)

Fix the posix_fadvise return value... finally.

Tested martin on sparc64/m68k and me on hppa.

Revision 1.145.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:30:08 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.145.2.1: +7 -7 lines
Diff to previous 1.145.2.1 (colored) to branchpoint 1.145 (colored)

Sync with HEAD.

Revision 1.154 / (download) - annotate - [select for diffs], Fri Jan 30 13:01:36 2009 UTC (15 years, 2 months ago) by njoly
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.153: +7 -7 lines
Diff to previous 1.153 (colored)

Cleanup. Kill a few netbsd32_caddr_t in syscalls argument types.

Revision 1.153 / (download) - annotate - [select for diffs], Wed Jan 21 10:01:42 2009 UTC (15 years, 2 months ago) by tron
Branch: MAIN
Changes since 1.152: +103 -18 lines
Diff to previous 1.152 (colored)

Revert accidental of some rogue changes which broke the build.

Revision 1.152 / (download) - annotate - [select for diffs], Tue Jan 20 22:49:29 2009 UTC (15 years, 2 months ago) by tron
Branch: MAIN
Changes since 1.151: +18 -103 lines
Diff to previous 1.151 (colored)

Include "bsd.own.mk" to get the definition of "NETBSDSRCDIR" via
"/etc/mk.conf". This fixes manual use of "make cleandir".

Revision 1.145.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:17:36 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.145: +106 -33 lines
Diff to previous 1.145 (colored)

Sync with HEAD.

Revision 1.141.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:46 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.141.6.2: +124 -31 lines
Diff to previous 1.141.6.2 (colored) to branchpoint 1.141 (colored) next main 1.142 (colored)

Sync with HEAD.

Revision 1.151 / (download) - annotate - [select for diffs], Sun Jan 11 13:14:14 2009 UTC (15 years, 3 months ago) by nakayama
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.150: +3 -3 lines
Diff to previous 1.150 (colored)

Follow christos-time_t merge.

Revision 1.150 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:49 2009 UTC (15 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.149: +13 -16 lines
Diff to previous 1.149 (colored)

merge christos-time_t

Revision 1.149.4.2 / (download) - annotate - [select for diffs], Sun Jan 4 01:56:02 2009 UTC (15 years, 3 months ago) by christos
Branch: christos-time_t
Changes since 1.149.4.1: +2623 -0 lines
Diff to previous 1.149.4.1 (colored) to branchpoint 1.149 (colored) next main 1.150 (colored)

add new syscalls.

Revision 1.144.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:03 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.144.4.1: +94 -18 lines
Diff to previous 1.144.4.1 (colored) to branchpoint 1.144 (colored) next main 1.145 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.145.4.2 / (download) - annotate - [select for diffs], Tue Nov 25 17:31:26 2008 UTC (15 years, 4 months ago) by snj
Branch: netbsd-5
CVS Tags: 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, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u1-k1-k5, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.145.4.1: +83 -3 lines
Diff to previous 1.145.4.1 (colored) to branchpoint 1.145 (colored) next main 1.146 (colored)

Pull up following revision(s) (requested by mrg in ticket #121):
	sys/compat/netbsd32/syscalls.master: revision 1.74
	sys/compat/netbsd32/netbsd32.h: revision 1.78
	sys/compat/netbsd32/netbsd32_netbsd.c: revision 1.149
implement netbsd32__sched_setparam(), netbsd32__sched_getparam(),
netbsd32__sched_setaffinity() and netbsd32__sched_getaffinity().

Revision 1.149.4.1, Sat Nov 22 23:13:38 2008 UTC (15 years, 4 months ago) by christos
Branch: christos-time_t
Changes since 1.149: +0 -2626 lines
FILE REMOVED

file netbsd32_netbsd.c was added on branch christos-time_t on 2009-01-04 01:56:02 +0000

Revision 1.149 / (download) - annotate - [select for diffs], Sat Nov 22 23:13:38 2008 UTC (15 years, 4 months ago) by mrg
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Branch point for: christos-time_t
Changes since 1.148: +83 -3 lines
Diff to previous 1.148 (colored)

implement netbsd32__sched_setparam(), netbsd32__sched_getparam(),
netbsd32__sched_setaffinity() and netbsd32__sched_getaffinity().

Revision 1.145.4.1 / (download) - annotate - [select for diffs], Sat Nov 22 04:54:41 2008 UTC (15 years, 4 months ago) by snj
Branch: netbsd-5
Changes since 1.145: +10 -2 lines
Diff to previous 1.145 (colored)

Pull up following revision(s) (requested by tron in ticket #100):
	sys/compat/netbsd32/netbsd32_netbsd.c: revision 1.148
	sys/compat/netbsd32/netbsd32_sa.c: revision 1.8
Make it possible to compile a kernel with COMPAT_NETBSD32 but without
COMPAT_40. This fixes PR port-amd64/39967.

Revision 1.148 / (download) - annotate - [select for diffs], Thu Nov 20 11:56:40 2008 UTC (15 years, 4 months ago) by tron
Branch: MAIN
Changes since 1.147: +10 -2 lines
Diff to previous 1.147 (colored)

Make it possible to compile a kernel with COMPAT_NETBSD32 but without
COMPAT_40. This fixes PR port-amd64/39967.

Revision 1.147 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:05 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.146: +3 -7 lines
Diff to previous 1.146 (colored)

Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime

Revision 1.146 / (download) - annotate - [select for diffs], Wed Nov 12 12:36:10 2008 UTC (15 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.145: +4 -12 lines
Diff to previous 1.145 (colored)

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.

Revision 1.144.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:16 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.144: +22 -2 lines
Diff to previous 1.144 (colored)

Sync with HEAD.

Revision 1.145 / (download) - annotate - [select for diffs], Wed Oct 15 06:51:19 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: MAIN
CVS Tags: netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.144: +22 -2 lines
Diff to previous 1.144 (colored)

Merge wrstuden-revivesa into HEAD.

Revision 1.143.6.5 / (download) - annotate - [select for diffs], Sun Sep 28 21:23:32 2008 UTC (15 years, 6 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.143.6.4: +3 -2 lines
Diff to previous 1.143.6.4 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored)

Adapt the SA COMPAT_NETBSD32 stuff to this branch.

Revision 1.143.6.4 / (download) - annotate - [select for diffs], Mon Jul 21 19:13:45 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.143.6.3: +7 -2 lines
Diff to previous 1.143.6.3 (colored) to branchpoint 1.143 (colored)

Add support for compiling SA as an option. Implied by COMPAT_40.

i386 kernels both with COMPAT_40 and with no compat options (and thus
no SA) compile.

No functional changes intended.

Revision 1.143.6.3 / (download) - annotate - [select for diffs], Fri Jun 27 01:34:26 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.143.6.2: +3 -3 lines
Diff to previous 1.143.6.2 (colored) to branchpoint 1.143 (colored)

Add getucontext32_sa() and getucontext_sa(), and use them. They
are sa-specific versions of getucontext{,32}(). The main difference
is that they do NOT require the p_lock be held. We report an empty
signal mask, both to avoid needing p_lock and because the process
signal mask is almost always 0 for SA.

Revision 1.143.6.2 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:55 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.143.6.1: +2 -4 lines
Diff to previous 1.143.6.1 (colored) to branchpoint 1.143 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.143.2.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:05 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.143: +2 -4 lines
Diff to previous 1.143 (colored) next main 1.144 (colored)

sync with head

Revision 1.141.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:07 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.141.6.1: +0 -2 lines
Diff to previous 1.141.6.1 (colored) to branchpoint 1.141 (colored)

Sync with HEAD.

Revision 1.144 / (download) - annotate - [select for diffs], Thu May 29 14:51:26 2008 UTC (15 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, 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
Branch point for: haad-dm
Changes since 1.143: +2 -4 lines
Diff to previous 1.143 (colored)

remove clause #3 from my license where there are no other
copyright holders involved.

Revision 1.143.6.1 / (download) - annotate - [select for diffs], Sat May 10 23:48:58 2008 UTC (15 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.143: +16 -2 lines
Diff to previous 1.143 (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.141.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:33 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.141: +4 -20 lines
Diff to previous 1.141 (colored)

Sync with HEAD.

Revision 1.90.2.11 / (download) - annotate - [select for diffs], Mon Mar 24 09:38:42 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.90.2.10: +4 -4 lines
Diff to previous 1.90.2.10 (colored) next main 1.91 (colored)

sync with head.

Revision 1.141.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:10 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.141: +2 -18 lines
Diff to previous 1.141 (colored) next main 1.142 (colored)

sync with head.

Revision 1.126.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:33 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.126.2.2: +59 -27 lines
Diff to previous 1.126.2.2 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

sync with HEAD

Revision 1.143 / (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-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, hpcarm-cleanup-nbase, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.142: +4 -4 lines
Diff to previous 1.142 (colored)

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

Revision 1.90.2.10 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:30 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.90.2.9: +2 -18 lines
Diff to previous 1.90.2.9 (colored)

sync with head.

Revision 1.142 / (download) - annotate - [select for diffs], Sun Feb 24 15:02:15 2008 UTC (16 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-base
Changes since 1.141: +2 -18 lines
Diff to previous 1.141 (colored)

Remove old posix_fadvise compat code

Revision 1.128.4.4 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:28 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.128.4.3: +75 -27 lines
Diff to previous 1.128.4.3 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored)

Sync with HEAD.

Revision 1.90.2.9 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:11 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.90.2.8: +54 -27 lines
Diff to previous 1.90.2.8 (colored)

sync with head.

Revision 1.141 / (download) - annotate - [select for diffs], Mon Jan 28 00:19:28 2008 UTC (16 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.140: +3 -3 lines
Diff to previous 1.140 (colored)

wrong argument type

Revision 1.140 / (download) - annotate - [select for diffs], Sun Jan 27 20:13:07 2008 UTC (16 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.139: +20 -2 lines
Diff to previous 1.139 (colored)

Catch up with versioning of posix_fadvise

Revision 1.139 / (download) - annotate - [select for diffs], Sun Jan 27 19:51:40 2008 UTC (16 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.138: +5 -8 lines
Diff to previous 1.138 (colored)

Call do_posix_fadvise() in netbsd32_posix_fadvise()

Revision 1.138 / (download) - annotate - [select for diffs], Sat Jan 26 20:57:46 2008 UTC (16 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.137: +18 -7 lines
Diff to previous 1.137 (colored)

Split the return value of sys_lseek() into two 32 bit halves for retval[0/1]
in a manner that is endianness independant.
Should mean the amd64 will return correct offsets > 2^32 (sparc64 had a
special define).
Any new netbsd32 ports should work regardless of the endianness.

Revision 1.137 / (download) - annotate - [select for diffs], Sat Jan 26 09:07:01 2008 UTC (16 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.136: +6 -22 lines
Diff to previous 1.136 (colored)

Don't try to bound the return value for pread/pwrite/pathconf by casting
an 'ssize_t' or 'long' variable to 'register_t'.
If the sizes were different it would either overwrite stack or return
uninitialised stack.  On big-endian systems things would be worse!

Revision 1.136 / (download) - annotate - [select for diffs], Sat Jan 26 08:35:51 2008 UTC (16 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.135: +19 -2 lines
Diff to previous 1.135 (colored)

Add a wrapper for posix_fadvise()

Revision 1.90.2.8 / (download) - annotate - [select for diffs], Mon Jan 21 09:41:51 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.90.2.7: +450 -774 lines
Diff to previous 1.90.2.7 (colored)

sync with head

Revision 1.133.2.2 / (download) - annotate - [select for diffs], Sun Jan 20 17:51:28 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.133.2.1: +21 -0 lines
Diff to previous 1.133.2.1 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored)

Sync with HEAD

Revision 1.135 / (download) - annotate - [select for diffs], Sat Jan 19 22:25:12 2008 UTC (16 years, 2 months ago) by dsl
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.134: +23 -2 lines
Diff to previous 1.134 (colored)

Add netbsd32 wrapper for sys_mremap(), compiles, and assuming the mmap()
wrapper is ok, it should work!
I presume the kernel knows not to map above 4GB though....

Revision 1.126.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:51:37 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.126.2.1: +450 -778 lines
Diff to previous 1.126.2.1 (colored) to branchpoint 1.126 (colored)

sync with HEAD

Revision 1.133.2.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:53:09 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.133: +428 -446 lines
Diff to previous 1.133 (colored)

Sync with HEAD

Revision 1.128.4.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:44:25 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.128.4.2: +429 -774 lines
Diff to previous 1.128.4.2 (colored) to branchpoint 1.128 (colored)

Sync with HEAD.

Revision 1.130.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:07 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.130.2.1: +429 -774 lines
Diff to previous 1.130.2.1 (colored) to branchpoint 1.130 (colored) next main 1.131 (colored)

Sync with head.

Revision 1.134 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:02 2007 UTC (16 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base
Changes since 1.133: +428 -446 lines
Diff to previous 1.133 (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.132.2.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:22:22 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-kmem
Changes since 1.132: +3 -3 lines
Diff to previous 1.132 (colored) next main 1.133 (colored)

sync with head.

Revision 1.125.6.4 / (download) - annotate - [select for diffs], Sun Dec 9 19:37:20 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.125.6.3: +114 -441 lines
Diff to previous 1.125.6.3 (colored) to branchpoint 1.125 (colored) next main 1.126 (colored)

Sync with HEAD.

Revision 1.133 / (download) - annotate - [select for diffs], Sun Dec 9 12:50:29 2007 UTC (16 years, 4 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.132: +3 -3 lines
Diff to previous 1.132 (colored)

Remove last argument from NDINIT call, following
"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." from pooka.

Revision 1.132 / (download) - annotate - [select for diffs], Sat Dec 8 18:36:19 2007 UTC (16 years, 4 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-kmem-base
Branch point for: yamt-kmem
Changes since 1.131: +111 -438 lines
Diff to previous 1.131 (colored)

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

Revision 1.128.4.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:18:59 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.128.4.1: +4 -4 lines
Diff to previous 1.128.4.1 (colored) to branchpoint 1.128 (colored)

Sync with HEAD.

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:56:59 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.130: +4 -4 lines
Diff to previous 1.130 (colored)

Sync with head.

Revision 1.90.2.7 / (download) - annotate - [select for diffs], Fri Dec 7 17:28:48 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.90.2.6: +4 -4 lines
Diff to previous 1.90.2.6 (colored)

sync with head

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

Remove all the __P

Revision 1.128.4.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:47:32 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.128: +21 -4 lines
Diff to previous 1.128 (colored)

Sync with HEAD.

Revision 1.90.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:43:54 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.90.2.5: +21 -4 lines
Diff to previous 1.90.2.5 (colored)

sync with head.

Revision 1.128.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:00:40 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.128: +21 -4 lines
Diff to previous 1.128 (colored) next main 1.129 (colored)

Sync with HEAD

Revision 1.125.6.3 / (download) - annotate - [select for diffs], Sun Nov 11 16:47:19 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.125.6.2: +21 -4 lines
Diff to previous 1.125.6.2 (colored) to branchpoint 1.125 (colored)

Sync with HEAD.

Revision 1.130 / (download) - annotate - [select for diffs], Sat Nov 10 18:55:42 2007 UTC (16 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2
Changes since 1.129: +4 -4 lines
Diff to previous 1.129 (colored)

Fix builds for ports that don't define __HAVE_MINIMAL_EMUL (eg sparc64).
Fallout from a change that made #define names for syscalls (etc) start
NETBSD32 (not netbsd32).

Revision 1.129 / (download) - annotate - [select for diffs], Fri Nov 9 15:05:34 2007 UTC (16 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.128: +19 -2 lines
Diff to previous 1.128 (colored)

Add arguments to sys_syscall and sys___syscall.
Use MI wrappers for them in netbsd32.
Change prefix for constants from netbsd32 to NETBSD32 (used in #defines etc).

Revision 1.126.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:25:11 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.126: +34 -30 lines
Diff to previous 1.126 (colored)

sync with HEAD

Revision 1.90.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:29:46 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.90.2.4: +34 -30 lines
Diff to previous 1.90.2.4 (colored)

sync with head.

Revision 1.119.2.5 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:06 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.4: +34 -30 lines
Diff to previous 1.119.2.4 (colored) next main 1.120 (colored)

Sync with head.

Revision 1.127.2.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:30:15 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.127: +34 -30 lines
Diff to previous 1.127 (colored) next main 1.128 (colored)

sync with head.

Revision 1.125.6.2 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:13 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.125.6.1: +34 -30 lines
Diff to previous 1.125.6.1 (colored) to branchpoint 1.125 (colored)

Sync with HEAD.

Revision 1.128 / (download) - annotate - [select for diffs], Sat Sep 29 12:22:31 2007 UTC (16 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base, jmcneill-base
Branch point for: mjf-devfs, bouyer-xenamd64
Changes since 1.127: +34 -30 lines
Diff to previous 1.127 (colored)

Change the way p->p_limit (and hence p->p_rlimit) is locked.
Should fix PR/36939 and make the rlimit code MP safe.
Posted for comment to tech-kern (non received!)

The p_limit field (for a process) is only be changed once (on the first
  write), and a reference to the old structure is kept (for code paths
  that have cached the pointer).
Only p->p_limit is now locked by p->p_mutex, and since the referenced memory
  will not go away, is only needed if the pointer is to be changed.
The contents of 'struct plimit' are all locked by pl_mutex, except that the
  code doesn't bother to acquire it for reads (which are basically atomic).
Add FORK_SHARELIMIT that causes fork1() to share the limits between parent
  and child, use it for the IRIX_PR_SULIMIT.
Fix borked test for both IRIX_PR_SUMASK and IRIX_PR_SDIR being set.

Revision 1.127 / (download) - annotate - [select for diffs], Fri Sep 21 19:19:21 2007 UTC (16 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-x86pmap-base
Branch point for: yamt-x86pmap
Changes since 1.126: +4 -4 lines
Diff to previous 1.126 (colored)

Rename members of 'struct plimit' so that the fields are 'pl_xxx' and
no longer have the same names as members of 'struct proc'.

Revision 1.90.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:32:39 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.90.2.3: +25 -59 lines
Diff to previous 1.90.2.3 (colored)

sync with head.

Revision 1.125.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:20:01 2007 UTC (16 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.125: +2 -7 lines
Diff to previous 1.125 (colored) next main 1.126 (colored)

Sync with HEAD.

Revision 1.119.2.4 / (download) - annotate - [select for diffs], Mon Aug 20 21:25:59 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.3: +2 -7 lines
Diff to previous 1.119.2.3 (colored)

Sync with HEAD.

Revision 1.125.6.1 / (download) - annotate - [select for diffs], Thu Aug 16 11:02:54 2007 UTC (16 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.125: +2 -7 lines
Diff to previous 1.125 (colored)

Sync with HEAD.

Revision 1.126 / (download) - annotate - [select for diffs], Wed Aug 15 12:07:31 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base5
Branch point for: matt-armv6
Changes since 1.125: +2 -7 lines
Diff to previous 1.125 (colored)

Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed
on tech-kern.

Revision 1.119.2.3 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:13 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.2: +10 -25 lines
Diff to previous 1.119.2.2 (colored)

Sync with head.

Revision 1.125 / (download) - annotate - [select for diffs], Sat Jul 14 15:47:27 2007 UTC (16 years, 9 months ago) by dsl
Branch: MAIN
CVS Tags: nick-csl-alignment-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.124: +4 -4 lines
Diff to previous 1.124 (colored)

Adapt for sys_mount() becoming compat_40_sys_mount(),

Revision 1.119.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:04:31 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.119: +23 -52 lines
Diff to previous 1.119 (colored) next main 1.120 (colored)

Sync with head.

Revision 1.124 / (download) - annotate - [select for diffs], Sat Jun 30 15:31:50 2007 UTC (16 years, 9 months ago) by dsl
Branch: MAIN
CVS Tags: mjf-ufs-trans-base
Changes since 1.123: +8 -23 lines
Diff to previous 1.123 (colored)

Changes to sompat socket function to avoid the dreaded stackgap.

Revision 1.119.2.2 / (download) - annotate - [select for diffs], Sun May 27 14:35:19 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.119.2.1: +4 -16 lines
Diff to previous 1.119.2.1 (colored)

Sync with head.

Revision 1.116.2.4 / (download) - annotate - [select for diffs], Mon May 7 10:55:16 2007 UTC (16 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.116.2.3: +4 -16 lines
Diff to previous 1.116.2.3 (colored) to branchpoint 1.116 (colored) next main 1.117 (colored)

sync with head.

Revision 1.123 / (download) - annotate - [select for diffs], Sun Apr 22 14:10:30 2007 UTC (16 years, 11 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.122: +3 -14 lines
Diff to previous 1.122 (colored)

Delete a diagnostic printf and some unused 'stack gap' initialisation.

Revision 1.122 / (download) - annotate - [select for diffs], Sun Apr 22 08:29:58 2007 UTC (16 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.121: +7 -8 lines
Diff to previous 1.121 (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.119.2.1 / (download) - annotate - [select for diffs], Tue Apr 10 13:26:29 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.119: +16 -18 lines
Diff to previous 1.119 (colored)

Sync with head.

Revision 1.119.6.2 / (download) - annotate - [select for diffs], Thu Mar 29 19:27:41 2007 UTC (17 years ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.119.6.1: +11 -13 lines
Diff to previous 1.119.6.1 (colored) next main 1.120 (colored)

Pullup to -current

Revision 1.116.2.3 / (download) - annotate - [select for diffs], Sat Mar 24 14:55:15 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.116.2.2: +16 -18 lines
Diff to previous 1.116.2.2 (colored) to branchpoint 1.116 (colored)

sync with head.

Revision 1.121 / (download) - annotate - [select for diffs], Sun Mar 18 21:38:33 2007 UTC (17 years ago) by dsl
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic
Changes since 1.120: +11 -13 lines
Diff to previous 1.120 (colored)

Change all the NETBSD32PTR64(SCARG(uap, xxx))) to SCARG_P32(uap, xxx).

Revision 1.119.6.1 / (download) - annotate - [select for diffs], Sun Mar 18 00:06:37 2007 UTC (17 years, 1 month ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.119: +7 -7 lines
Diff to previous 1.119 (colored)

First attempt to bring branch in sync with HEAD

Revision 1.120 / (download) - annotate - [select for diffs], Fri Mar 16 22:21:42 2007 UTC (17 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.119: +7 -7 lines
Diff to previous 1.119 (colored)

remove all the double (and triple) casts used to convert 32bit userspace
pointers to and from 64bit kernel pointers.  Instead use the defines
NETBSD32PTR64(p32) to read a 32bit pointer and (the new) NETBSD32PTR32(p32,p64)
to write a 32bit pointer throughout.
The 32bit pointer is now a struct to enforce the above.
amd64 (with linux emul) and sparc64 will both compile (when the arch stuff
goes in soon), and amd64 still runs some i386 binaries.

Revision 1.116.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:52:32 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.116.2.1: +14 -14 lines
Diff to previous 1.116.2.1 (colored) to branchpoint 1.116 (colored)

Sync with HEAD.

Revision 1.119 / (download) - annotate - [select for diffs], Sun Mar 4 07:54:08 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Branch point for: vmlocking, reinoud-bufcleanup, mjf-ufs-trans
Changes since 1.118: +7 -7 lines
Diff to previous 1.118 (colored)

fix fallout from caddr_t changes.

Revision 1.118 / (download) - annotate - [select for diffs], Sun Mar 4 06:01:26 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.117: +19 -19 lines
Diff to previous 1.117 (colored)

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

Revision 1.116.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:53:39 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.116: +3 -2 lines
Diff to previous 1.116 (colored)

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

Revision 1.90.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:09:31 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.90.2.2: +12 -20 lines
Diff to previous 1.90.2.2 (colored)

sync with head.

Revision 1.117 / (download) - annotate - [select for diffs], Mon Feb 19 15:10:03 2007 UTC (17 years, 1 month ago) by cube
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.116: +3 -2 lines
Diff to previous 1.116 (colored)

Introduce a new member to struct emul, e_startlwp, to be used by
sys__lwp_create.  It allows using the said syscall under COMPAT_NETBSD32.

The libpthread regression tests now pass on amd64 and sparc64.

Revision 1.116 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:22 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.115: +11 -20 lines
Diff to previous 1.115 (colored)

Merge newlock2 to head.

Revision 1.111.2.4 / (download) - annotate - [select for diffs], Mon Feb 5 13:16:49 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.111.2.3: +10 -5 lines
Diff to previous 1.111.2.3 (colored) to branchpoint 1.111 (colored) next main 1.112 (colored)

- When clearing signals dequeue siginfo first and free later, once
  outside the lock permiter.
- Push kernel_lock back in a a couple of places.
- Adjust limcopy() to be MP safe (this needs redoing).
- Fix a couple of bugs noticed along the way.
- Catch up with condvar changes.

Revision 1.111.2.3 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:35 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.111.2.2: +3 -17 lines
Diff to previous 1.111.2.2 (colored) to branchpoint 1.111 (colored)

Remove support for SA. Ok core@.

Revision 1.111.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:03 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.111.2.1: +43 -20 lines
Diff to previous 1.111.2.1 (colored) to branchpoint 1.111 (colored)

Sync with head.

Revision 1.90.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:42 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.90.2.1: +111 -43 lines
Diff to previous 1.90.2.1 (colored)

sync with head.

Revision 1.111.4.1 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:48 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.111: +45 -22 lines
Diff to previous 1.111 (colored) next main 1.112 (colored)

sync with head.

Revision 1.115 / (download) - annotate - [select for diffs], Tue Nov 21 18:50:01 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.114: +10 -10 lines
Diff to previous 1.114 (colored)

deal with RLIM_INFINITY in the setrlimit case.

Revision 1.114 / (download) - annotate - [select for diffs], Tue Nov 21 14:57:54 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.113: +38 -18 lines
Diff to previous 1.113 (colored)

Simplify previous commit not to use dosetrlimit(), since we don't want the
kauth tests etc.

Revision 1.113 / (download) - annotate - [select for diffs], Tue Nov 21 14:32:27 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.112: +20 -17 lines
Diff to previous 1.112 (colored)

From Nicolas Joly:

> It seems that 32bits programs, running under compat_netbsd32, using
> setrlimit force all other programs to have their maximum data size
> fixed at 3GB, where native 64bits apps used 8GB previously.

I tracked this one to the `netbsd32_adjust_limits()' function (called
when creating a new process under compat_netbsd32), where data and
stack limits are set without checking for shared `p_limit' structure
(p_limit->p_refcnt > 1). This explain the side effect where processes
have their limits changed when a compat_netbsd32 (or compat_linux32)
program is run.

The fix is to use `dosetrlimit()' to ensure the needed copy-on-write
behaviour for shared structure.

Revision 1.111.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:12 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.111: +4 -4 lines
Diff to previous 1.111 (colored)

Sync with head.

Revision 1.112 / (download) - annotate - [select for diffs], Tue Nov 14 13:34:29 2006 UTC (17 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.111: +4 -4 lines
Diff to previous 1.111 (colored)

Clean some KAUTH_GENERIC_ISSUSER usage in compat code.

Revision 1.99.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:46:12 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.99: +101 -50 lines
Diff to previous 1.99 (colored) next main 1.100 (colored)

sync with head

Revision 1.100.2.4 / (download) - annotate - [select for diffs], Sun Sep 3 15:23:46 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.100.2.3: +12 -3 lines
Diff to previous 1.100.2.3 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored)

sync with head.

Revision 1.111 / (download) - annotate - [select for diffs], Fri Sep 1 21:20:47 2006 UTC (17 years, 7 months ago) by matt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.110: +11 -5 lines
Diff to previous 1.110 (colored)

When calling PTRACE from an LKM, use sysent[SYS_ptrace].sy_call in case
the sys_ptrace symbol isn't present.

Revision 1.110 / (download) - annotate - [select for diffs], Wed Aug 30 13:56:48 2006 UTC (17 years, 7 months ago) by cube
Branch: MAIN
Changes since 1.109: +5 -2 lines
Diff to previous 1.109 (colored)

Protect netbsd32_ptrace with options PTRACE.

Revision 1.100.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:43:29 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.100.2.2: +60 -24 lines
Diff to previous 1.100.2.2 (colored) to branchpoint 1.100 (colored)

sync with head

Revision 1.109 / (download) - annotate - [select for diffs], Mon Jul 31 16:34:43 2006 UTC (17 years, 8 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.108: +9 -7 lines
Diff to previous 1.108 (colored)

Make filehandles opaque to userland

Revision 1.108 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:09 2006 UTC (17 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.107: +6 -8 lines
Diff to previous 1.107 (colored)

Use the LWP cached credentials where sane.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Jul 13 23:22:35 2006 UTC (17 years, 9 months ago) by pavel
Branch: MAIN
Changes since 1.106: +2 -4 lines
Diff to previous 1.106 (colored)

do not protect the getfh syscall by
#if defined(NFS) || defined(NFSSERVER).
The native syscall also isn't.

Revision 1.104.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:14 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.104: +52 -14 lines
Diff to previous 1.104 (colored) next main 1.105 (colored)

Merge from HEAD.

Revision 1.106 / (download) - annotate - [select for diffs], Thu Jul 13 12:00:25 2006 UTC (17 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.105: +48 -29 lines
Diff to previous 1.105 (colored)

Fix alignement problems for fhandle_t, exposed by gcc4.1.

While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.

Discussed on tech-kern, with lots of help from yamt (thanks!).

Revision 1.105 / (download) - annotate - [select for diffs], Mon Jun 26 21:23:57 2006 UTC (17 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.104: +25 -6 lines
Diff to previous 1.104 (colored)

version the socket(2) syscall.  for compat30 socket, we use
EPROTONOSUPPORT instead of EAFNOSUPPORT.

from pavel@ with a little bit of clean up from myself.

XXX: netbsd32 (and perhaps other emulations) should be able
XXX: to call the standard socket calls for this i think, but
XXX: revisit this at another time.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:59:35 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.90: +543 -33 lines
Diff to previous 1.90 (colored)

sync with head.

Revision 1.99.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:35:52 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.99.6.1: +17 -28 lines
Diff to previous 1.99.6.1 (colored) next main 1.100 (colored)

Sync with head.

Revision 1.100.6.2 / (download) - annotate - [select for diffs], Wed May 24 15:48:28 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.100.6.1: +15 -26 lines
Diff to previous 1.100.6.1 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored)

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

Revision 1.100.2.2 / (download) - annotate - [select for diffs], Wed May 24 10:57:31 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.100.2.1: +17 -28 lines
Diff to previous 1.100.2.1 (colored) to branchpoint 1.100 (colored)

sync with head.

Revision 1.104 / (download) - annotate - [select for diffs], Sun May 14 21:24:50 2006 UTC (17 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: gdamore-uart
Changes since 1.103: +13 -8 lines
Diff to previous 1.103 (colored)

integrate kauth.

Revision 1.100.4.6 / (download) - annotate - [select for diffs], Fri May 12 14:50:52 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.100.4.5: +3 -2 lines
Diff to previous 1.100.4.5 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored)

include sys/kauth.h where appropriate.

Revision 1.100.4.5 / (download) - annotate - [select for diffs], Thu May 11 23:27:31 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.100.4.4: +6 -22 lines
Diff to previous 1.100.4.4 (colored) to branchpoint 1.100 (colored)

sync with head

Revision 1.103 / (download) - annotate - [select for diffs], Thu May 11 00:59:10 2006 UTC (17 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.102: +6 -6 lines
Diff to previous 1.102 (colored)

use socklen_t where appropriate.

Revision 1.102 / (download) - annotate - [select for diffs], Fri May 5 13:31:30 2006 UTC (17 years, 11 months ago) by cube
Branch: MAIN
Changes since 1.101: +2 -18 lines
Diff to previous 1.101 (colored)

Move fhstat as sys___fhstat30 in netbsd32_fs.c because it doesn't belong
to netbsd32_netbsd.c (which incidentally means it had been broken for a
while I guess).  Add compat_30 version.

Revision 1.99.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:17 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.99: +19 -2 lines
Diff to previous 1.99 (colored)

Sync with head.

Revision 1.100.4.4 / (download) - annotate - [select for diffs], Wed Apr 19 04:01:22 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.100.4.3: +17 -2 lines
Diff to previous 1.100.4.3 (colored) to branchpoint 1.100 (colored)

sync with head.

Revision 1.100.4.3 / (download) - annotate - [select for diffs], Tue Apr 18 13:34:47 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.100.4.2: +2 -3 lines
Diff to previous 1.100.4.2 (colored) to branchpoint 1.100 (colored)

zap unused var

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:06:41 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.100: +17 -2 lines
Diff to previous 1.100 (colored)

sync with head.

Revision 1.100.6.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:13 2006 UTC (18 years ago) by tron
Branch: peter-altq
Changes since 1.100: +17 -2 lines
Diff to previous 1.100 (colored)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.101 / (download) - annotate - [select for diffs], Wed Mar 29 23:04:12 2006 UTC (18 years ago) by cube
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3
Changes since 1.100: +17 -2 lines
Diff to previous 1.100 (colored)

Implement the _lwp* and sa_* families of syscalls, using the newly
introduced hooks in the native code.

Revision 1.100.4.2 / (download) - annotate - [select for diffs], Tue Mar 14 02:52:47 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.100.4.1: +3 -4 lines
Diff to previous 1.100.4.1 (colored) to branchpoint 1.100 (colored)

Use kauth_cred_[sg]etgroups() where appropriate.

Revision 1.100.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:48:38 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.100: +14 -8 lines
Diff to previous 1.100 (colored)

Adapt to kernel authorization KPI.

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:02 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.99: +4 -2 lines
Diff to previous 1.99 (colored) next main 1.100 (colored)

sync with head.

Revision 1.100 / (download) - annotate - [select for diffs], Thu Feb 9 19:18:57 2006 UTC (18 years, 2 months ago) by manu
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.99: +4 -2 lines
Diff to previous 1.99 (colored)

Add initial (but unfinished) COMPAT_LINUX32 for amd64. This is good enough so
that the i386 license manager part of amd64 version of Fluent works.

While I'm here, add SysV IPC to COMPAT_LINUX/amd64

Revision 1.99 / (download) - annotate - [select for diffs], Sun Dec 11 12:20:22 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.98: +6 -6 lines
Diff to previous 1.98 (colored)

merge ktrace-lwp.

Revision 1.73.2.7 / (download) - annotate - [select for diffs], Thu Nov 10 14:01:21 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.73.2.6: +522 -4 lines
Diff to previous 1.73.2.6 (colored) next main 1.74 (colored)

Sync with HEAD. Here we go again...

Revision 1.87.2.1 / (download) - annotate - [select for diffs], Sun Sep 18 20:09:50 2005 UTC (18 years, 6 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, 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
Changes since 1.87: +41 -2 lines
Diff to previous 1.87 (colored) next main 1.88 (colored)

Pull up following revision(s) (requested by fvdl in ticket #798):
	sys/compat/sunos/sunos_exec.c: revision 1.47
	sys/compat/pecoff/pecoff_emul.c: revision 1.11
	sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.45
	sys/arch/amd64/amd64/netbsd32_machdep.c: revision 1.12
	sys/sys/proc.h: revision 1.198
	sys/compat/mach/mach_exec.c: revision 1.56
	sys/compat/freebsd/freebsd_exec.c: revision 1.27
	sys/arch/sparc64/include/vmparam.h: revision 1.27
	sys/kern/kern_resource.c: revision 1.91
	sys/compat/netbsd32/netbsd32_netbsd.c: revision 1.88
	sys/compat/osf1/osf1_exec.c: revision 1.39
	sys/compat/svr4_32/svr4_32_resource.c: revision 1.5
	sys/compat/ultrix/ultrix_misc.c: revision 1.99
	sys/compat/svr4_32/svr4_32_exec.h: revision 1.9
	sys/kern/exec_elf32.c: revision 1.103
	sys/compat/aoutm68k/aoutm68k_exec.c: revision 1.19
	sys/compat/sunos32/sunos32_exec.c: revision 1.20
	sys/compat/hpux/hpux_exec.c: revision 1.46
	sys/compat/darwin/darwin_exec.c: revision 1.40
	sys/kern/sysv_shm.c: revision 1.83
	sys/uvm/uvm_extern.h: revision 1.99
	sys/uvm/uvm_mmap.c: revision 1.89
	sys/kern/kern_exec.c: revision 1.195
	sys/compat/netbsd32/netbsd32.h: revision 1.31
	sys/arch/sparc64/sparc64/svr4_32_machdep.c: revision 1.20
	sys/compat/svr4/svr4_exec.c: revision 1.56
	sys/compat/irix/irix_exec.c: revision 1.41
	sys/compat/ibcs2/ibcs2_exec.c: revision 1.63
	sys/compat/svr4_32/svr4_32_exec.c: revision 1.16
	sys/arch/amd64/include/vmparam.h: revision 1.8
	sys/compat/linux/common/linux_exec.c: revision 1.73
Fix some things regarding COMPAT_NETBSD32 and limits/VM addresses.
* For sparc64 and amd64, define *SIZ32 VM constants.
* Add a new function pointer to struct emul, pointing at a function
  that will return the default VM map address. The default function
  is uvm_map_defaultaddr, which just uses the VM_DEFAULT_ADDRESS
  macro. This gives emulations control over the default map address,
  and allows things to be mapped at the right address (in 32bit range)
  for COMPAT_NETBSD32.
* Add code to adjust the data and stack limits when a COMPAT_NETBSD32
  or COMPAT_SVR4_32 binary is executed.
* Don't use USRSTACK in kern_resource.c, use p_vmspace->vm_minsaddr
  instead (emulations might have set it differently)
* Since this changes struct emul, bump kernel version to 3.99.2
Tested on amd64, compile-tested on sparc64.

Revision 1.98 / (download) - annotate - [select for diffs], Fri Aug 19 04:24:38 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.97: +3 -2 lines
Diff to previous 1.97 (colored)

Fix lossage I created with the 64 bit ino_t change.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Jul 12 15:06:17 2005 UTC (18 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.96: +9 -3 lines
Diff to previous 1.96 (colored)

When returning 64bit values (from netbsd32_lseek) fix up the return
value vector (of 32bit values, most likely) via a MD macro.

Revision 1.96 / (download) - annotate - [select for diffs], Tue Jul 12 07:45:34 2005 UTC (18 years, 9 months ago) by cube
Branch: MAIN
Changes since 1.95: +194 -2 lines
Diff to previous 1.95 (colored)

Add the *xattr(2) family of syscalls.  Just like the *extattr(2) family,
they're waiting for an actual FS back-end to be tested, but are still
straightforward enough.

Revision 1.95 / (download) - annotate - [select for diffs], Mon Jul 11 20:18:05 2005 UTC (18 years, 9 months ago) by cube
Branch: MAIN
Changes since 1.94: +18 -2 lines
Diff to previous 1.94 (colored)

Add rasctl(2).  Thanks to the regression tests for that syscall, I was able
to discover the bugs in netbsd32_setitimer() and netbsd32_execve().

Revision 1.94 / (download) - annotate - [select for diffs], Sun Jul 10 14:32:16 2005 UTC (18 years, 9 months ago) by cube
Branch: MAIN
Changes since 1.93: +20 -2 lines
Diff to previous 1.93 (colored)

Add support for fsync_range(2).

Revision 1.93 / (download) - annotate - [select for diffs], Sun Jul 10 11:28:58 2005 UTC (18 years, 9 months ago) by cube
Branch: MAIN
Changes since 1.92: +16 -2 lines
Diff to previous 1.92 (colored)

Implement __clone(2).

Revision 1.92 / (download) - annotate - [select for diffs], Fri Jul 8 22:21:43 2005 UTC (18 years, 9 months ago) by cube
Branch: MAIN
Changes since 1.91: +17 -2 lines
Diff to previous 1.91 (colored)

Add mlockall(2) and munlockall(2).

Revision 1.91 / (download) - annotate - [select for diffs], Fri Jul 8 21:39:39 2005 UTC (18 years, 9 months ago) by cube
Branch: MAIN
Changes since 1.90: +244 -2 lines
Diff to previous 1.90 (colored)

Implement the extattr(3) family of syscalls.

XXX However, those remain untested as there are currently no backend for
XXX extattr(9) in NetBSD.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Jul 4 00:26:06 2005 UTC (18 years, 9 months ago) by cube
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.89: +16 -2 lines
Diff to previous 1.89 (colored)

Implement uuidgen(2).

Revision 1.89 / (download) - annotate - [select for diffs], Mon May 30 22:59:55 2005 UTC (18 years, 10 months ago) by chs
Branch: MAIN
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

track change to swapctl args in kern/syscalls.master.

Revision 1.86.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:41 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.86: +45 -6 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

sync with -current

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

Sync with HEAD.

Revision 1.86.6.2 / (download) - annotate - [select for diffs], Sat Mar 26 18:19:18 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.86.6.1: +41 -2 lines
Diff to previous 1.86.6.1 (colored) to branchpoint 1.86 (colored) next main 1.87 (colored)

sync with head.

Revision 1.88 / (download) - annotate - [select for diffs], Sat Mar 26 05:12:35 2005 UTC (19 years ago) by fvdl
Branch: MAIN
CVS Tags: yamt-km-base4, kent-audio2-base
Changes since 1.87: +41 -2 lines
Diff to previous 1.87 (colored)

Fix some things regarding COMPAT_NETBSD32 and limits/VM addresses.

* For sparc64 and amd64, define *SIZ32 VM constants.
* Add a new function pointer to struct emul, pointing at a function
  that will return the default VM map address. The default function
  is uvm_map_defaultaddr, which just uses the VM_DEFAULT_ADDRESS
  macro. This gives emulations control over the default map address,
  and allows things to be mapped at the right address (in 32bit range)
  for COMPAT_NETBSD32.
* Add code to adjust the data and stack limits when a COMPAT_NETBSD32
  or COMPAT_SVR4_32 binary is executed.
* Don't use USRSTACK in kern_resource.c, use p_vmspace->vm_minsaddr
  instead (emulations might have set it differently)
* Since this changes struct emul, bump kernel version to 3.99.2

Tested on amd64, compile-tested on sparc64.

Revision 1.86.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:33:43 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.86: +6 -6 lines
Diff to previous 1.86 (colored)

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

Revision 1.73.2.5 / (download) - annotate - [select for diffs], Fri Mar 4 16:40:20 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.73.2.4: +6 -6 lines
Diff to previous 1.73.2.4 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.87 / (download) - annotate - [select for diffs], Sat Feb 26 23:10:21 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.86: +6 -6 lines
Diff to previous 1.86 (colored)

nuke trailing whitespace

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

Fix the sync with head I botched.

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

Sync with HEAD.

Revision 1.73.2.2 / (download) - annotate - [select for diffs], Thu Aug 26 19:28:30 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.73.2.1: +6 -6 lines
Diff to previous 1.73.2.1 (colored)

Adapt to branch.

sparc64 GENERIC compiles.

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:44:21 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.73: +22 -21 lines
Diff to previous 1.73 (colored)

Sync with HEAD

Revision 1.86 / (download) - annotate - [select for diffs], Thu Jun 17 18:29:40 2004 UTC (19 years, 10 months ago) by cube
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.85: +2 -21 lines
Diff to previous 1.85 (colored)

o Add support for the statvfs family of syscalls (statvfs1, fstatvfs1,
  fhstatvfs1 and getvfsstat)
o Move the statfs family out of netbsd32_fs.c and netbsd32_netbsd.c to
  netbsd_compat_20.c, compiled with COMPAT_20

Reviewed by christos@.

Revision 1.85 / (download) - annotate - [select for diffs], Thu Apr 22 12:04:03 2004 UTC (19 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.84: +4 -4 lines
Diff to previous 1.84 (colored)

Add the missing 'v' to fhstatvfs1

Revision 1.84 / (download) - annotate - [select for diffs], Wed Apr 21 11:50:26 2004 UTC (19 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.83: +7 -4 lines
Diff to previous 1.83 (colored)

try to make this compile. XXX: this will not work yet (hi simon)

Revision 1.83 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:36 2004 UTC (19 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.82: +4 -4 lines
Diff to previous 1.82 (colored)

Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.

Revision 1.82 / (download) - annotate - [select for diffs], Fri Mar 26 18:38:55 2004 UTC (20 years ago) by drochner
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.81: +12 -3 lines
Diff to previous 1.81 (colored)

use netbsd32_sigcode with COMPAT_16 only

Revision 1.81 / (download) - annotate - [select for diffs], Sun Mar 21 13:26:44 2004 UTC (20 years ago) by mrg
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored)

fix a (syscall args) comment.

Revision 1.80 / (download) - annotate - [select for diffs], Sat Dec 20 19:01:30 2003 UTC (20 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.79: +3 -2 lines
Diff to previous 1.79 (colored)

Put back Emmanuel's sigfilter hooks, as decided by Core.

Revision 1.79 / (download) - annotate - [select for diffs], Sat Dec 20 18:22:18 2003 UTC (20 years, 3 months ago) by manu
Branch: MAIN
Changes since 1.78: +4 -2 lines
Diff to previous 1.78 (colored)

Introduce lwp_emuldata and the associated hooks. No hook is provided for the
exec case, as the emulation already has the ability to intercept that
with the e_proc_exec hook. It is the responsability of the emulation to
take appropriaye action about lwp_emuldata in e_proc_exec.

Patch reviewed by Christos.

Revision 1.78 / (download) - annotate - [select for diffs], Fri Dec 5 21:12:43 2003 UTC (20 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.77: +2 -3 lines
Diff to previous 1.77 (colored)

back the sigfilter emulation hook change off

Revision 1.77 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:23 2003 UTC (20 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.76: +4 -3 lines
Diff to previous 1.76 (colored)

Dynamic sysctl.

Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al.  Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded.  Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment.  I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.

Revision 1.76 / (download) - annotate - [select for diffs], Wed Dec 3 20:24:51 2003 UTC (20 years, 4 months ago) by manu
Branch: MAIN
Changes since 1.75: +3 -2 lines
Diff to previous 1.75 (colored)

Add a sigfilter emulation hook. It is used at the beginning of kpsignal2()
so that a specific emulation has the oportunity to filter out some signals.

if sigfilter returns 0, then no signal is sent by kpsignal2().

There is another place where signals can be generated: trapsignal. Since this
function is already an emulation hook, no call to the sigfilter hook was
introduced in trapsignal.

This is needed to emulate the softsignal feature in COMPAT_DARWIN (signals
sent as Mach exception messages)

Revision 1.75 / (download) - annotate - [select for diffs], Fri Sep 26 21:28:24 2003 UTC (20 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.74: +3 -2 lines
Diff to previous 1.74 (colored)

Add necessary include file.

Revision 1.74 / (download) - annotate - [select for diffs], Sun Aug 24 17:52:44 2003 UTC (20 years, 7 months ago) by chs
Branch: MAIN
Changes since 1.73: +5 -2 lines
Diff to previous 1.73 (colored)

add support for non-executable mappings (where the hardware allows this)
and make the stack and heap non-executable by default.  the changes
fall into two basic catagories:

 - pmap and trap-handler changes.  these are all MD:
   = alpha: we already track per-page execute permission with the (software)
	PG_EXEC bit, so just have the trap handler pay attention to it.
   = i386: use a new GDT segment for %cs for processes that have no
	executable mappings above a certain threshold (currently the
	bottom of the stack).  track per-page execute permission with
	the last unused PTE bit.
   = powerpc/ibm4xx: just use the hardware exec bit.
   = powerpc/oea: we already track per-page exec bits, but the hardware only
	implements non-exec mappings at the segment level.  so track the
	number of executable mappings in each segment and turn on the no-exec
	segment bit iff the count is 0.  adjust the trap handler to deal.
   = sparc (sun4m): fix our use of the hardware protection bits.
	fix the trap handler to recognize text faults.
   = sparc64: split the existing unified TSB into data and instruction TSBs,
	and only load TTEs into the appropriate TSB(s) for the permissions.
	fix the trap handler to check for execute permission.
   = not yet implemented: amd64, hppa, sh5

 - changes in all the emulations that put a signal trampoline on the stack.
   instead, we now put the trampoline into a uvm_aobj and map that into
   the process separately.

originally from openbsd, adapted for netbsd by me.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jun 29 22:29:39 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.72: +4 -4 lines
Diff to previous 1.72 (colored)

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

Revision 1.72 / (download) - annotate - [select for diffs], Sun Jun 29 13:35:39 2003 UTC (20 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.71: +6 -6 lines
Diff to previous 1.71 (colored)

struct proc * -> struct lwp *

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jun 23 11:01:56 2003 UTC (20 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.70: +4 -2 lines
Diff to previous 1.70 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Jan 18 08:28:26 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.69: +350 -348 lines
Diff to previous 1.69 (colored)

Merge the nathanw_sa branch.

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Wed Dec 18 01:05:55 2002 UTC (21 years, 4 months ago) by gmcgarry
Branch: gmcgarry_ucred
Changes since 1.69: +7 -8 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Merge pcred and ucred, and poolify.  TBD: check backward compatibility
and factor-out some higher-level functionality.

Revision 1.57.2.10 / (download) - annotate - [select for diffs], Wed Dec 11 06:37:37 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.57.2.9: +4 -5 lines
Diff to previous 1.57.2.9 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

Sync with HEAD.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Dec 6 12:00:57 2002 UTC (21 years, 4 months ago) by scw
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Branch point for: gmcgarry_ucred
Changes since 1.68: +6 -7 lines
Diff to previous 1.68 (colored)

After a discussion with various folks, fix the strict-alias warning
by ditching 'void *rt' and passing retval directly to sys_mmap().

Revision 1.68 / (download) - annotate - [select for diffs], Fri Dec 6 10:02:40 2002 UTC (21 years, 4 months ago) by scw
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

Avoid strict-alias warnings.

Revision 1.57.2.9 / (download) - annotate - [select for diffs], Mon Nov 11 22:07:53 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.8: +7 -7 lines
Diff to previous 1.57.2.8 (colored) to branchpoint 1.57 (colored)

Catch up to -current

Revision 1.67 / (download) - annotate - [select for diffs], Fri Nov 1 19:26:22 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

set struct emul's nsysent to compat SYS_NSYSENT, not SYS_MAXSYSCALL

Revision 1.66 / (download) - annotate - [select for diffs], Wed Oct 23 13:16:44 2002 UTC (21 years, 5 months ago) by scw
Branch: MAIN
Changes since 1.65: +8 -8 lines
Diff to previous 1.65 (colored)

In preparation for COMPAT_NETBSD32 on SH-5:

 - The MD netbsd32_machdep.h header now defines the 32-bit pointer type
   instead of using u_int32_t everywhere,
 - The MD netbsd32_machdep.h header now defines a macro (at least on
   current implementations) which converts a 32-bit pointer to its 64-bit
   equivalent,
 - Change the MI code to utilise the above two items in all the right places,
 - Implement netbsd32___sigaction_sigtramp().

Tested on Sparc64 by Matt Green.

Revision 1.57.2.8 / (download) - annotate - [select for diffs], Fri Oct 18 02:41:16 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.7: +4 -2 lines
Diff to previous 1.57.2.7 (colored) to branchpoint 1.57 (colored)

Catch up to -current.

Revision 1.60.2.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:38:06 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.60.2.3: +4 -2 lines
Diff to previous 1.60.2.3 (colored) to branchpoint 1.60 (colored) next main 1.61 (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.65 / (download) - annotate - [select for diffs], Sat Sep 21 21:14:58 2002 UTC (21 years, 6 months ago) by manu
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.64: +4 -2 lines
Diff to previous 1.64 (colored)

- Introduce a e_fault field in struct proc to provide emulation specific
memory fault handler. IRIX uses irix_vm_fault, and all other emulation
use NULL, which means to use uvm_fault.

- While we are there, explicitely set to NULL the uninitialized fields in
struct emul: e_fault and e_sysctl on most ports

- e_fault is used by the trap handler, for now only on mips. In order to avoid
intrusive modifications in UVM, the function pointed by e_fault does not
has exactly the same protoype as uvm_fault:
int uvm_fault __P((struct vm_map *, vaddr_t, vm_fault_t, vm_prot_t));
int e_fault __P((struct proc *, vaddr_t, vm_fault_t, vm_prot_t));

- In IRIX share groups, all the VM space is shared, except one page.
This bounds us to have different VM spaces and synchronize modifications
to the VM space accross share group members. We need an IRIX specific hook
to the page fault handler in order to propagate VM space modifications
caused by page faults.

Revision 1.60.2.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:43:23 2002 UTC (21 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.60.2.2: +2 -20 lines
Diff to previous 1.60.2.2 (colored) to branchpoint 1.60 (colored)

sync kqueue branch with HEAD

Revision 1.57.2.7 / (download) - annotate - [select for diffs], Fri Aug 23 02:37:10 2002 UTC (21 years, 7 months ago) by petrov
Branch: nathanw_sa
Changes since 1.57.2.6: +349 -348 lines
Diff to previous 1.57.2.6 (colored) to branchpoint 1.57 (colored)

lwpification.

Revision 1.57.2.6 / (download) - annotate - [select for diffs], Thu Aug 1 02:44:19 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.5: +2 -20 lines
Diff to previous 1.57.2.5 (colored) to branchpoint 1.57 (colored)

Catch up to -current.

Revision 1.63.4.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:34:58 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.63: +2 -20 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

catch up with -current.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jul 7 23:23:41 2002 UTC (21 years, 9 months ago) by fvdl
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.63: +2 -20 lines
Diff to previous 1.63 (colored)

Move netbsd32_sysarch to netbsd32_machdep.c

Revision 1.60.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:44:32 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.60.2.1: +6 -6 lines
Diff to previous 1.60.2.1 (colored) to branchpoint 1.60 (colored)

catch up with -current on kqueue branch

Revision 1.57.2.5 / (download) - annotate - [select for diffs], Wed May 29 21:32:49 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.4: +3 -2 lines
Diff to previous 1.57.2.4 (colored) to branchpoint 1.57 (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.57.2.4 / (download) - annotate - [select for diffs], Mon Apr 1 07:44:33 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.3: +5 -5 lines
Diff to previous 1.57.2.3 (colored) to branchpoint 1.57 (colored)

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

Revision 1.63 / (download) - annotate - [select for diffs], Sat Mar 16 20:43:54 2002 UTC (22 years, 1 month ago) by christos
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, netbsd-1-6, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.62: +6 -6 lines
Diff to previous 1.62 (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.60.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:51:56 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.60: +5 -1 lines
Diff to previous 1.60 (colored)

Sync kqueue branch with -current.

Revision 1.57.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:13:17 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.2: +4 -1 lines
Diff to previous 1.57.2.2 (colored) to branchpoint 1.57 (colored)

Catch up to -current.

Revision 1.62 / (download) - annotate - [select for diffs], Tue Nov 13 02:09:06 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.61: +4 -1 lines
Diff to previous 1.61 (colored)

add RCSIDs (including regeneration of files as appropriate)

Revision 1.60.4.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:43:52 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored) next main 1.61 (colored)

Catch up with -current.

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Fri Sep 21 22:35:21 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.1: +2 -1 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored)

Catch up to -current.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Sep 18 19:36:40 2001 UTC (22 years, 6 months ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored)

Make the setregs hook emulation-specific, rather than executable
format specific.
Struct emul has a e_setregs hook back, which points to emulation-specific
setregs function. es_setregs of struct execsw now only points to
optional executable-specific setup function (this is only used for
ECOFF).

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:00:04 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57: +5 -4 lines
Diff to previous 1.57 (colored)

Catch up to -current.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Jun 19 00:36:21 2001 UTC (22 years, 9 months ago) by fvdl
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp, kqueue
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

Some of this was sparc-specific, so ifdef __sparc__ it (XXX). Also,
change the alignment of one structure with an MD ifdef. Should
be moved into the netbsd32_machdep parts.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jun 18 02:00:53 2001 UTC (22 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.58: +2 -1 lines
Diff to previous 1.58 (colored)

Add an e_trapsignal member to struct emul, so that emulated processes can
send the appropriate signal depending on the trap type.

Revision 1.28.2.5 / (download) - annotate - [select for diffs], Sat Jun 16 20:18:45 2001 UTC (22 years, 10 months 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.2.4: +15 -5 lines
Diff to previous 1.28.2.4 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Apply patch (from netbsd32_execve.c revision 1.4, requested by thorpej):
  Close a race condition between exec of a setuid binary and
  ptrace(2): check P_TRACED right before adjusting the privilege
  settings in the exec code.

Revision 1.58 / (download) - annotate - [select for diffs], Wed May 30 11:37:28 2001 UTC (22 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

use _KERNEL_OPT.

Revision 1.19.2.5 / (download) - annotate - [select for diffs], Sun Feb 11 19:14:14 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.19.2.4: +49 -3601 lines
Diff to previous 1.19.2.4 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Sync with HEAD.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Feb 8 13:19:34 2001 UTC (23 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.56: +27 -3250 lines
Diff to previous 1.56 (colored)

split up netbsd32_netbsd.c into 9 new files, leaving only those syscalls that
have no special interpretations besides simple syscall args conversion.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Feb 7 15:22:39 2001 UTC (23 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.55: +51 -475 lines
Diff to previous 1.55 (colored)

move the static inline conversion functions into a header file so other
files can see these.  note a bunch of functions that should be moved
into their own files.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Feb 6 17:01:53 2001 UTC (23 years, 2 months ago) by eeh
Branch: MAIN
Changes since 1.54: +5 -3 lines
Diff to previous 1.54 (colored)

Specify a process' address space limits for uvmspace_exec().

Revision 1.54 / (download) - annotate - [select for diffs], Sun Feb 4 09:00:14 2001 UTC (23 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.53: +17 -89 lines
Diff to previous 1.53 (colored)

change_utimes32() was copyin()ing a struct timeval, not netbsd32_timeval.
general clean up.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Feb 4 07:08:51 2001 UTC (23 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.52: +60 -2 lines
Diff to previous 1.52 (colored)

emulate kern.boottime.  now 32-bit w(1) works properly.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Feb 4 06:35:08 2001 UTC (23 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.51: +56 -2 lines
Diff to previous 1.51 (colored)

make sysctl vm.loadavg work.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Feb 3 12:46:55 2001 UTC (23 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.50: +11 -5 lines
Diff to previous 1.50 (colored)

sync a comment from sys_execve().
make netbsd32_recvfrom() work.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Feb 2 13:05:18 2001 UTC (23 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.49: +38 -1 lines
Diff to previous 1.49 (colored)

implement netbsd32_lchflags & netbsd32_utrace

Revision 1.49 / (download) - annotate - [select for diffs], Fri Feb 2 07:08:18 2001 UTC (23 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.48: +21 -11 lines
Diff to previous 1.48 (colored)

de-static netbsd32_exec_aout_prep_[zno]magic().
de-static netbsd32_from_stat43().
move the guts of netbsd32_execve() into netbsd32_execve2().

all of are for the forthcoming sunos32 compat mode (for sparc64).

Revision 1.48 / (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.47: +2 -2 lines
Diff to previous 1.47 (colored)

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

Revision 1.19.2.4 / (download) - annotate - [select for diffs], Fri Jan 5 17:35:28 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.19.2.3: +1 -1 lines
Diff to previous 1.19.2.3 (colored) to branchpoint 1.19 (colored)

Sync with HEAD

Revision 1.47 / (download) - annotate - [select for diffs], Fri Dec 22 22:58:59 2000 UTC (23 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

split off thread specific stuff from struct sigacts to struct sigctx, leaving
    only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx

This addresses kern/10981 by Matthew Orgass.

Revision 1.19.2.3 / (download) - annotate - [select for diffs], Wed Dec 13 15:49:50 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.19.2.2: +26 -13 lines
Diff to previous 1.19.2.2 (colored) to branchpoint 1.19 (colored)

Sync with HEAD (for UBC fixes).

Revision 1.46 / (download) - annotate - [select for diffs], Tue Dec 12 08:00:26 2000 UTC (23 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.45: +14 -4 lines
Diff to previous 1.45 (colored)

Do the __HAVE_SYSCALL_INTERN and __HAVE_MINIMAL_EMUL dance.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Dec 9 12:38:24 2000 UTC (23 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.44: +7 -1 lines
Diff to previous 1.44 (colored)

always fill in e_syscall in respective emul_*; if the emulation doesn't
have it's own separated *_syscall() function, use syscall()

Revision 1.44 / (download) - annotate - [select for diffs], Fri Dec 8 19:42:12 2000 UTC (23 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.43: +10 -13 lines
Diff to previous 1.43 (colored)

add infrastructure to load emulations and their executable support dynamically
via LKM

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:08:34 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.19.2.1: +146 -41 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored)

Sync with HEAD.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Dec 3 14:48:29 2000 UTC (23 years, 4 months ago) by fvdl
Branch: MAIN
Changes since 1.42: +11 -1 lines
Diff to previous 1.42 (colored)

Use a copied fktrace syscall arg structure with out 'const int' for the
filedescriptor to copy arguments, avoiding a warning. XXX

Revision 1.42 / (download) - annotate - [select for diffs], Fri Dec 1 21:48:24 2000 UTC (23 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.41: +46 -13 lines
Diff to previous 1.41 (colored)

always define COMPAT_OLDSOCK (this tracks rev.1.55 of kern/uipc_syscalls.c)
move definition of emul_netbsd32 from netbsd32_exec.c here
fix couple of compile nits I encountered while compiling this with
sparc cross-compiler

Revision 1.41 / (download) - annotate - [select for diffs], Fri Dec 1 12:28:34 2000 UTC (23 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.40: +8 -8 lines
Diff to previous 1.40 (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.40 / (download) - annotate - [select for diffs], Thu Nov 30 12:54:38 2000 UTC (23 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.39: +47 -6 lines
Diff to previous 1.39 (colored)

sync netbsd32_execve() with sys_execve() - this involves
VMCMD_RELATIVE support, couple of debugging printfs and addition of
doexechooks() call
also fix one FREE() which should be free()

Revision 1.39 / (download) - annotate - [select for diffs], Tue Nov 28 13:07:27 2000 UTC (23 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.38: +39 -18 lines
Diff to previous 1.38 (colored)

make this compile again, after execsw/lkm changes.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:08:30 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.19: +764 -163 lines
Diff to previous 1.19 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.28.2.4 / (download) - annotate - [select for diffs], Wed Oct 18 16:23:58 2000 UTC (23 years, 5 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.28.2.3: +12 -4 lines
Diff to previous 1.28.2.3 (colored) to branchpoint 1.28 (colored)

Pullup by patch [eeh]:
Support userspace at multiple addresses by making PSSTRINGS variable (using
p_psstr), and fix stackgap_init() appropriately.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Sep 28 19:05:07 2000 UTC (23 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.37: +12 -4 lines
Diff to previous 1.37 (colored)

Add support for variable end of user stacks needed to support COMPAT_NETBSD32:

	`struct vmspace' has a new field `vm_minsaddr' which is the user TOS.

	PS_STRINGS is deprecated in favor of curproc->p_pstr which is derived
	from `vm_minsaddr'.

	Bump the kernel version number.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Sep 24 13:09:31 2000 UTC (23 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.36: +18 -1 lines
Diff to previous 1.36 (colored)

The ovadvise syscall is (correctly) listed as STD, so move it's implementation
to another place. This makes kernels without options COMPAT_43 link.

Revision 1.28.2.3 / (download) - annotate - [select for diffs], Sat Aug 26 01:09:34 2000 UTC (23 years, 7 months ago) by mrg
Branch: netbsd-1-5
Changes since 1.28.2.2: +19 -1 lines
Diff to previous 1.28.2.2 (colored) to branchpoint 1.28 (colored)

pull up 1.36.  approved by thorpej:
>Fix netbsd32_ioctls.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Aug 19 14:38:19 2000 UTC (23 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.35: +19 -1 lines
Diff to previous 1.35 (colored)

Fix netbsd32_ioctls.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Aug 3 20:41:14 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

Convert namei pathname buffer allocation to use the pool allocator.

Revision 1.28.2.2 / (download) - annotate - [select for diffs], Fri Jul 14 18:10:49 2000 UTC (23 years, 9 months ago) by thorpej
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.28.2.1: +22 -40 lines
Diff to previous 1.28.2.1 (colored) to branchpoint 1.28 (colored)

Update from trunk:
- Fix the likely cause of the "ps(1) hangs machine" problem.  Always
  vslock the user pages for the data being copied out to userspace,
  so that we won't sleep while holding a lock in case we need to
  fault the pages in.
- Sprinkle some const and ANSI'ify some things while here.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Jul 14 07:21:21 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +22 -40 lines
Diff to previous 1.33 (colored)

- Fix the likely cause of the "ps(1) hangs machine" problem.  Always
  vslock the user pages for the data being copied out to userspace,
  so that we won't sleep while holding a lock in case we need to
  fault the pages in.
- Sprinkle some const and ANSI'ify some things while here.

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 20:20:27 2000 UTC (23 years, 9 months ago) by thorpej
Branch: netbsd-1-5
Changes since 1.28: +13 -11 lines
Diff to previous 1.28 (colored)

Pull up rev. 1.33:
Sync w/ kern_time.c and sys_generic.c

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jul 13 17:39:03 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.32: +13 -11 lines
Diff to previous 1.32 (colored)

Sync w/ kern_time.c and sys_generic.c

Revision 1.32 / (download) - annotate - [select for diffs], Sun Jul 9 13:39:31 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.31: +17 -16 lines
Diff to previous 1.31 (colored)

- massive warning fix fest.
- fix pread/pwrite return values (plus some other syscalls that looked
  similarly broken).
- prototypes and clean up for netbsd32_ioctl.c

now getpw*() works under compat32!

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jul 9 03:03:35 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.30: +15 -5 lines
Diff to previous 1.30 (colored)

look in /emul/netbsd32 for __stat13() and __lstat13().

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jun 28 15:39:32 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.29: +1 -3 lines
Diff to previous 1.29 (colored)

remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 26 14:21:08 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.28: +4 -2 lines
Diff to previous 1.28 (colored)

remove/move more mach vm header files:

	<vm/pglist.h> -> <uvm/uvm_pglist.h>
	<vm/vm_inherit.h> -> <uvm/uvm_inherit.h>
	<vm/vm_kern.h> -> into <uvm/uvm_extern.h>
	<vm/vm_object.h> -> nothing
	<vm/vm_pager.h> -> into <uvm/uvm_pager.h>

also includes a bunch of <vm/vm_page.h> include removals (due to redudancy
with <vm/vm.h>), and a scattering of other similar headers.

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:05:49 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.27: +6 -1 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.28 / (download) - annotate - [select for diffs], Tue May 30 20:54:26 2000 UTC (23 years, 10 months ago) by eeh
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.27: +6 -1 lines
Diff to previous 1.27 (colored)

Include "opt_DDB.h" to enable the DDB sysctls.

Revision 1.27 / (download) - annotate - [select for diffs], Sat May 27 04:52:34 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

sleep() -> tsleep()

Revision 1.26 / (download) - annotate - [select for diffs], Sat May 27 00:40:44 2000 UTC (23 years, 10 months ago) by sommerfeld
Branch: MAIN
Changes since 1.25: +6 -6 lines
Diff to previous 1.25 (colored)

Reduce use of curproc in several places:

 - Change ktrace interface to pass in the current process, rather than
p->p_tracep, since the various ktr* function need curproc anyway.

 - Add curproc as a parameter to mi_switch() since all callers had it
handy anyway.

 - Add a second proc argument for inferior() since callers all had
curproc handy.

Also, miscellaneous cleanups in ktrace:

 - ktrace now always uses file-based, rather than vnode-based I/O
(simplifies, increases type safety); eliminate KTRFLAG_FD & KTRFAC_FD.
Do non-blocking I/O, and yield a finite number of times when receiving
EWOULDBLOCK before giving up.

 - move code duplicated between sys_fktrace and sys_ktrace into ktrace_common.

 - simplify interface to ktrwrite()

Revision 1.25 / (download) - annotate - [select for diffs], Thu Mar 30 11:27:18 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.24: +30 -30 lines
Diff to previous 1.24 (colored)

Kill register declarations.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Mar 23 06:48:17 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.23: +4 -3 lines
Diff to previous 1.23 (colored)

New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Feb 6 16:45:56 2000 UTC (24 years, 2 months ago) by eeh
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Add support for -current's ELF32 exec format.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jan 31 16:41:20 2000 UTC (24 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Regen

Revision 1.21 / (download) - annotate - [select for diffs], Fri Dec 31 22:26:21 1999 UTC (24 years, 3 months ago) by eeh
Branch: MAIN
Changes since 1.20: +53 -23 lines
Diff to previous 1.20 (colored)

netbsd32_close() would work better if it called sys_close() rather than
sys_write().
netbsd32_getfsstat() cannot just copyin()/copyout(), convert the structures,
and call sys_getffstat().  sys_getffstat() wants to do its own
copyin()/copyout().  So we need to implent the whole of sys_getffstat()
in netbsd32_getfsstat().

Revision 1.20 / (download) - annotate - [select for diffs], Thu Dec 30 15:40:45 1999 UTC (24 years, 3 months ago) by eeh
Branch: MAIN
Changes since 1.19: +577 -50 lines
Diff to previous 1.19 (colored)

Update to 32-bit compatibility routines.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:34:29 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.18: +344 -343 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Pull up to last week's -current.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Oct 11 01:36:23 1999 UTC (24 years, 6 months ago) by eeh
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi
Changes since 1.18: +344 -343 lines
Diff to previous 1.18 (colored)

Add netbsd32_compat_14.c

Rename everything from compat_netbsd32 -> netbsd32 so we don't have silly
names like compat_14_compat_netbsd32_sys_shmctl().

Revision 1.18 / (download) - annotate - [select for diffs], Tue Sep 28 14:47:02 1999 UTC (24 years, 6 months ago) by bouyer
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Remplace kern.shortcorename sysctl with a more flexible sheme,
core filename format, which allow to change the name of the core dump,
and to relocate it in a directory. Credits to Bill Sommerfeld for giving me
the idea :)
The default core filename format can be changed by options DEFCORENAME and/or
kern.defcorename
Create a new sysctl tree, proc, which holds per-process values (for now
the corename format, and resources limits). Process is designed by its pid
at the second level name. These values are inherited on fork, and the corename
fomat is reset to defcorename on suid/sgid exec.
Create a p_sugid() function, to take appropriate actions on suid/sgid
exec (for now set the P_SUGID flag and reset the per-proc corename).
Adjust dosetrlimit() to allow changing limits of one proc by another, with
credential controls.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Aug 5 18:08:15 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Change the semantics of splsoftclock() to be like other spl*() functions,
that is priority is rasied.  Add a new spllowersoftclock() to provide the
atomic drop-to-softclock semantics that the old splsoftclock() provided,
and update calls accordingly.

This fixes a problem with using the "rnd" pseudo-device from within
interrupt context to extract random data (e.g. from within the softnet
interrupt) where doing so would incorrectly unblock interrupts (causing
all sorts of lossage).

XXX 4 platforms do not have priority-raising capability: newsmips, sparc,
XXX sparc64, and VAX.  This platforms still have this bug until their
XXX spl*() functions are fixed.

Revision 1.11.4.2 / (download) - annotate - [select for diffs], Mon Aug 2 21:52:57 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.11.4.1: +1 -7 lines
Diff to previous 1.11.4.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Update from trunk.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jul 20 21:54:05 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.15: +1 -7 lines
Diff to previous 1.15 (colored)

Move the call of cpu_wait() out of the wait4() functions, and into the
body of reaper(), right before the call to uvm_exit().  cpu_wait() must
be done before uvm_exit() because the resources it frees might be located
in the PCB.

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:08:08 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.11: +48 -35 lines
Diff to previous 1.11 (colored)

Sync w/ -current.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jun 17 15:47:23 1999 UTC (24 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +12 -2 lines
Diff to previous 1.14 (colored)

Make uvm_vslock() return the error code from uvm_fault_wire().  All places
which use uvm_vslock() should now test the return value.  If it's not
KERN_SUCCESS, wiring the pages failed, so the operation which is using
uvm_vslock() should error out.

XXX We currently just EFAULT a failed uvm_vslock().  We may want to do
more about translating error codes in the future.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 9 04:50:10 1999 UTC (24 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.13: +1 -22 lines
Diff to previous 1.13 (colored)

Propagate kern changes

Revision 1.13 / (download) - annotate - [select for diffs], Wed May 26 01:07:07 1999 UTC (24 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.12: +8 -3 lines
Diff to previous 1.12 (colored)

XXX Pass VM_PROT_NONE to uvm_vslock() as access_type.  Why are we even
vslocking here?!  copyout() on its own seems to suffice just about everwhere
else, and it's not like the process is going to exit; it's in a system
call!

Revision 1.12 / (download) - annotate - [select for diffs], Wed May 5 20:01:04 1999 UTC (24 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.11: +31 -12 lines
Diff to previous 1.11 (colored)

Add "use counting" to file entries.  When closing a file, and it's reference
count is 0, wait for use count to drain before finishing the close.

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

Revision 1.11 / (download) - annotate - [select for diffs], Thu Mar 25 16:58:40 1999 UTC (25 years ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.10: +275 -275 lines
Diff to previous 1.10 (colored)

SPARC32->NETBSD32

Revision 1.10 / (download) - annotate - [select for diffs], Thu Mar 25 16:22:49 1999 UTC (25 years ago) by mrg
Branch: MAIN
Changes since 1.9: +741 -828 lines
Diff to previous 1.9 (colored)

move sparc32 to netbsd32; split out MD part (signal handling) (mostly via repository copy, rename and perl -pi :-)

Revision 1.9 / (download) - annotate - [select for diffs], Thu Mar 25 15:34:37 1999 UTC (25 years ago) by mrg
Branch: MAIN
Changes since 1.8: +1 -4 lines
Diff to previous 1.8 (colored)

formatting nits

Revision 1.8 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:19 1999 UTC (25 years ago) by mrg
Branch: MAIN
Changes since 1.7: +1 -17 lines
Diff to previous 1.7 (colored)

completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Dec 18 13:18:43 1998 UTC (25 years, 4 months ago) by drochner
Branch: MAIN
Changes since 1.6: +10 -1 lines
Diff to previous 1.6 (colored)

solve the COMPAT_OLDSOCK/MSG_COMPAT problem differently:
The source files which need MSG_COMPAT define COMPAT_OLDSOCK.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Oct 1 14:27:57 1998 UTC (25 years, 6 months ago) by eeh
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.5: +2445 -685 lines
Diff to previous 1.5 (colored)

Overhaul.  Now will run simple things like /bin/sh and /bin/echo.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Sep 11 00:01:57 1998 UTC (25 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.4: +72 -39 lines
Diff to previous 1.4 (colored)

Add some copyin()/copyout()s.  These need to be done but there are more
annoying issues, so I'll just check in this snapshot.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 30 15:32:20 1998 UTC (25 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.3: +32 -1 lines
Diff to previous 1.3 (colored)

Some more 64-bit cleanup.  Now everything compiles.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 29 18:16:57 1998 UTC (25 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.2: +99 -3 lines
Diff to previous 1.2 (colored)

Some more 64-bit-ification.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 26 13:42:22 1998 UTC (25 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.1: +37 -4 lines
Diff to previous 1.1 (colored)

use right syscalls.  add converters for timespec and semid_ds

Revision 1.1 / (download) - annotate - [select for diffs], Wed Aug 26 10:20:36 1998 UTC (25 years, 7 months ago) by mrg
Branch: MAIN

add a 32-bit compatibility module for the sparc64 port, so it can run NetBSD/sparc binaries with a LP64 kernel.

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>