resource.h (83045) | resource.h (83366) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)resource.h 8.4 (Berkeley) 1/9/95 | 1/* 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)resource.h 8.4 (Berkeley) 1/9/95 |
34 * $FreeBSD: head/sys/sys/resource.h 83045 2001-09-05 01:22:14Z obrien $ | 34 * $FreeBSD: head/sys/sys/resource.h 83366 2001-09-12 08:38:13Z julian $ |
35 */ 36 37#ifndef _SYS_RESOURCE_H_ 38#define _SYS_RESOURCE_H_ 39 40/* 41 * Process priority specifications to get/setpriority. 42 */ --- 87 unchanged lines hidden (view full) --- 130struct loadavg { 131 fixpt_t ldavg[3]; 132 long fscale; 133}; 134 135#ifdef _KERNEL 136extern struct loadavg averunnable; 137 | 35 */ 36 37#ifndef _SYS_RESOURCE_H_ 38#define _SYS_RESOURCE_H_ 39 40/* 41 * Process priority specifications to get/setpriority. 42 */ --- 87 unchanged lines hidden (view full) --- 130struct loadavg { 131 fixpt_t ldavg[3]; 132 long fscale; 133}; 134 135#ifdef _KERNEL 136extern struct loadavg averunnable; 137 |
138int dosetrlimit __P((struct proc *, u_int, struct rlimit *)); | 138int dosetrlimit __P((struct thread *, u_int, struct rlimit *)); |
139 140#else 141#include <sys/cdefs.h> 142 143__BEGIN_DECLS 144int getpriority __P((int, int)); 145int getrlimit __P((int, struct rlimit *)); 146int getrusage __P((int, struct rusage *)); 147int setpriority __P((int, int, int)); 148int setrlimit __P((int, const struct rlimit *)); 149__END_DECLS 150 151#endif /* _KERNEL */ 152#endif /* !_SYS_RESOURCE_H_ */ | 139 140#else 141#include <sys/cdefs.h> 142 143__BEGIN_DECLS 144int getpriority __P((int, int)); 145int getrlimit __P((int, struct rlimit *)); 146int getrusage __P((int, struct rusage *)); 147int setpriority __P((int, int, int)); 148int setrlimit __P((int, const struct rlimit *)); 149__END_DECLS 150 151#endif /* _KERNEL */ 152#endif /* !_SYS_RESOURCE_H_ */ |