NetBSD/sys/compat/netbsd32
dsl 2e20a70dbf 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.
2007-09-29 12:22:30 +00:00
..
Makefile
files.netbsd32
netbsd32.h Use netbsd32_uint64 instead of fsblkcnt_t and fsfilcnt_t in order to get 2007-09-29 10:47:45 +00:00
netbsd32_compat_09.c
netbsd32_compat_10.c
netbsd32_compat_12.c
netbsd32_compat_13.c
netbsd32_compat_14.c
netbsd32_compat_20.c Fix typo: mnfromname -> mntfromname. 2007-07-18 13:53:34 +00:00
netbsd32_compat_30.c
netbsd32_compat_43.c Changes to sompat socket function to avoid the dreaded stackgap. 2007-06-30 15:31:49 +00:00
netbsd32_conv.h
netbsd32_core.c
netbsd32_event.c Remove 3rd clause and my name from all the licences which were only in my 2007-09-10 10:35:51 +00:00
netbsd32_exec.h
netbsd32_exec_aout.c
netbsd32_exec_elf32.c
netbsd32_execve.c
netbsd32_fs.c Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed 2007-08-15 12:07:23 +00:00
netbsd32_ioctl.c Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed 2007-08-15 12:07:23 +00:00
netbsd32_ioctl.h
netbsd32_ipc.c
netbsd32_lwp.c Some more licence clean up. 2007-09-10 10:54:20 +00:00
netbsd32_netbsd.c Change the way p->p_limit (and hence p->p_rlimit) is locked. 2007-09-29 12:22:30 +00:00
netbsd32_select.c
netbsd32_sem.c Remove 3rd clause and my name from all the licences which were only in my 2007-09-10 10:35:51 +00:00
netbsd32_signal.c
netbsd32_socket.c Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed 2007-08-15 12:07:23 +00:00
netbsd32_syscall.h Regen. 2007-08-15 12:09:12 +00:00
netbsd32_syscallargs.h Regen. 2007-08-15 12:09:12 +00:00
netbsd32_syscalls.c Regen. 2007-08-15 12:09:12 +00:00
netbsd32_sysctl.c Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed 2007-08-15 12:07:23 +00:00
netbsd32_sysent.c Regen. 2007-08-15 12:09:12 +00:00
netbsd32_time.c
netbsd32_wait.c
syscalls.conf
syscalls.master Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed 2007-08-15 12:07:23 +00:00