NetBSD/sys/compat
jonathan 230fb9b8ab Eliminate several uses of `curproc' from the socket-layer code and from NFS.
Add a new explicit `struct proc *p' argument to socreate(), sosend().
Use that argument instead of curproc. Follow-on changes to pass that
argument to socreate(), sosend(), and (*so->so_send)() calls.
These changes reviewed and independently recoded  by Matt Thomas.

Changes to soreceive() and (*dom->dom_exernalize() from Matt Thomas:
pass soreceive()'s struct uio* uio->uio_procp to unp_externalize().
Eliminate curproc from unp_externalize.   Also, now soreceive() uses
its uio->uio_procp value, pass that same value downward to
((pr->pru_usrreq)() calls for consistency, instead of (struct proc * )0.

Similar changes in sys/nfs to eliminate (most) uses of curproc,
either via the req-> r_procp field of a struct nfsreq *req argument,
or by passing down new explicit struct proc * arguments.

Reviewed by: Matt Thomas, posted to tech-kern.
NB: The (*pr->pru_usrreq)() change should be tested on more (all!) protocols.
2004-05-22 22:52:13 +00:00
..
aout Replace the statfs() family of system calls with statvfs(). 2004-04-21 01:05:31 +00:00
aoutm68k Regen for statvfs changes. 2004-04-22 05:44:30 +00:00
common grr, forgot to take out the & 2004-05-22 20:53:26 +00:00
darwin Use crdup(), instead of crget()+memcpy(). 2004-05-02 12:32:22 +00:00
freebsd regen 2004-05-11 10:55:29 +00:00
hpux Constify an array. 2004-04-25 06:04:54 +00:00
ibcs2 Replace the statfs() family of system calls with statvfs(). 2004-04-21 01:05:31 +00:00
irix Tweak sysctl setup functions (the macros, actually) for use in lkms, 2004-05-20 06:34:24 +00:00
linux Tweak sysctl setup functions (the macros, actually) for use in lkms, 2004-05-20 06:34:24 +00:00
m68k4k - GC all the setup_stack functions 2003-08-08 18:57:01 +00:00
mach all ports define __HAVE_SIGINFO now, so remove the CPP conditionals 2004-03-26 17:34:18 +00:00
netbsd32 Tweak sysctl setup functions (the macros, actually) for use in lkms, 2004-05-20 06:34:24 +00:00
osf1 Line 175 VFS_STAVTFS -> STATVFS (tyop) 2004-04-27 21:37:49 +00:00
ossaudio Back out the lwp/ktrace changes. They contained a lot of colateral damage, 2003-06-29 22:28:00 +00:00
pecoff regenerate for fsync_range, uuidgen, getvfsstat, statvfs1, fstatvfs1, and fhstatvfs1 2004-05-08 14:33:12 +00:00
sunos Constify sreq2breq 2004-04-25 06:25:52 +00:00
sunos32 Constify the speedtab arrays 2004-04-25 06:23:40 +00:00
svr4 Eliminate several uses of `curproc' from the socket-layer code and from NFS. 2004-05-22 22:52:13 +00:00
svr4_32 Fix statfs->statvfs fallout. 2004-04-22 14:32:09 +00:00
ultrix Constify the speedtab arrays 2004-04-25 06:23:40 +00:00
vax1k Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
Makefile Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more. 2002-11-26 23:30:07 +00:00