kernel - adjust falloc and arguments to dupfdopen, fsetfd, fdcheckstd
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 15 Dec 2009 20:31:02 +0000 (12:31 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 15 Dec 2009 20:31:02 +0000 (12:31 -0800)
commitf3a2d8c4c82787ba09afc9a3e5e15049b5a33679
tree29bc3f4c93e471ca0179aeffa2d237fea38ceea6
parent9910d07b2f8670a44edbe17863f961ffbc6ea537
kernel - adjust falloc and arguments to dupfdopen, fsetfd, fdcheckstd

* Make changes to the pointer type passed (proc, lwp, filedesc) to
  numerous routines.

* falloc() needs access to td_ucred (it was previously using p_ucred which
  is not MPSAFE).

* Adjust fsetfd() to make it conform to the other fsetfd*() procedures.

* Related changes to fdcheckstd() and dupfdopen().
12 files changed:
sys/kern/kern_checkpoint.c
sys/kern/kern_descrip.c
sys/kern/kern_event.c
sys/kern/kern_exec.c
sys/kern/kern_syslink.c
sys/kern/sys_mqueue.c
sys/kern/sys_pipe.c
sys/kern/uipc_syscalls.c
sys/kern/uipc_usrreq.c
sys/kern/vfs_syscalls.c
sys/opencrypto/cryptodev.c
sys/sys/filedesc.h