1/*- 2 * Copyright (c) 1982, 1986, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_resource.c 8.5 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/kern_resource.c 130344 2004-06-11 11:16:26Z phk $"); |
39 40#include "opt_compat.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/sysproto.h> 45#include <sys/file.h> 46#include <sys/kernel.h> --- 422 unchanged lines hidden (view full) --- 469 rtp->prio = kg->kg_user_pri - PRI_MIN_IDLE; 470 break; 471 default: 472 break; 473 } 474 rtp->type = kg->kg_pri_class; 475} 476 |
477#if defined(COMPAT_43) |
478#ifndef _SYS_SYSPROTO_H_ 479struct osetrlimit_args { 480 u_int which; 481 struct orlimit *rlp; 482}; 483#endif 484/* 485 * MPSAFE --- 50 unchanged lines hidden (view full) --- 536 * here since we have little experience with EOVERFLOW yet. 537 * Elsewhere, getuid() can't fail... 538 */ 539 olim.rlim_cur = rl.rlim_cur > 0x7fffffff ? 0x7fffffff : rl.rlim_cur; 540 olim.rlim_max = rl.rlim_max > 0x7fffffff ? 0x7fffffff : rl.rlim_max; 541 error = copyout(&olim, uap->rlp, sizeof(olim)); 542 return (error); 543} |
544#endif /* COMPAT_43 */ |
545 546#ifndef _SYS_SYSPROTO_H_ 547struct __setrlimit_args { 548 u_int which; 549 struct rlimit *rlp; 550}; 551#endif 552/* --- 604 unchanged lines hidden --- |