diff options
author | jhb <jhb@FreeBSD.org> | 2002-04-13 23:28:23 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-04-13 23:28:23 +0000 |
commit | 300593a2ccab2cee97f538018bf9d0e16c8a54d8 (patch) | |
tree | 7241c58ab0fa7ede2a6a615c14169cf4afdc5f64 /lib/libc/stdlib/tsearch.c | |
parent | e9c672efdc402dcaa17cfd89803208da905181ec (diff) | |
download | FreeBSD-src-300593a2ccab2cee97f538018bf9d0e16c8a54d8.zip FreeBSD-src-300593a2ccab2cee97f538018bf9d0e16c8a54d8.tar.gz |
- Change donice() to take a thread as the first argument instead of a
process so it can use td_ucred.
- Require the target process of donice() to be locked when donice() is
called.
- Use td_ucred.
- Lock the target process of p_cansee() and while reading the credentials
of a process.
- Change the logic of rtprio() slightly so it does it's copyin() if needed
prior to locking the target process.
- rtprio() no longer needs Giant. In theory with full KSE it would still
need Giant to protect p_ucred of curproc for the p_canfoo() functions
but p_canfoo() will be changing to using td_ucred of curthread before
full KSE hits the tree.
Diffstat (limited to 'lib/libc/stdlib/tsearch.c')
0 files changed, 0 insertions, 0 deletions