resource.h (121870) | resource.h (125454) |
---|---|
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 121870 2003-11-02 03:50:16Z jeff $ | 34 * $FreeBSD: head/sys/sys/resource.h 125454 2004-02-04 21:52:57Z jhb $ |
35 */ 36 37#ifndef _SYS_RESOURCE_H_ 38#define _SYS_RESOURCE_H_ 39 40/* 41 * Process priority specifications to get/setpriority. 42 */ --- 94 unchanged lines hidden (view full) --- 137#define CP_INTR 3 138#define CP_IDLE 4 139#define CPUSTATES 5 140 141#ifdef _KERNEL 142extern struct loadavg averunnable; 143extern long cp_time[CPUSTATES]; 144 | 35 */ 36 37#ifndef _SYS_RESOURCE_H_ 38#define _SYS_RESOURCE_H_ 39 40/* 41 * Process priority specifications to get/setpriority. 42 */ --- 94 unchanged lines hidden (view full) --- 137#define CP_INTR 3 138#define CP_IDLE 4 139#define CPUSTATES 5 140 141#ifdef _KERNEL 142extern struct loadavg averunnable; 143extern long cp_time[CPUSTATES]; 144 |
145int dosetrlimit(struct thread *, u_int, struct rlimit *); | 145int kern_setrlimit(struct thread *, u_int, struct rlimit *); |
146 147#else 148#include <sys/cdefs.h> 149 150__BEGIN_DECLS 151int getpriority(int, int); 152int getrlimit(int, struct rlimit *); 153int getrusage(int, struct rusage *); 154int setpriority(int, int, int); 155int setrlimit(int, const struct rlimit *); 156__END_DECLS 157 158#endif /* _KERNEL */ 159#endif /* !_SYS_RESOURCE_H_ */ | 146 147#else 148#include <sys/cdefs.h> 149 150__BEGIN_DECLS 151int getpriority(int, int); 152int getrlimit(int, struct rlimit *); 153int getrusage(int, struct rusage *); 154int setpriority(int, int, int); 155int setrlimit(int, const struct rlimit *); 156__END_DECLS 157 158#endif /* _KERNEL */ 159#endif /* !_SYS_RESOURCE_H_ */ |