From a6eecc8e2a7fa3e463ff672b48dbcf0e9ded93c9 Mon Sep 17 00:00:00 2001 From: cgd Date: Mon, 20 Dec 1993 12:42:34 +0000 Subject: [PATCH] load average changes from magnum --- sys/kern/kern_synch.c | 2 +- sys/kern/tty.c | 2 +- sys/sys/kernel.h | 2 +- sys/sys/resource.h | 15 ++++++++++++++- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 35e79b1287b4..651b58d70f4f 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -1 +1 @@ -revision 1.12 intentionally removed +revision 1.13 intentionally removed diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 29015be4ed34..ddc176122094 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1 +1 @@ -revision 1.26 intentionally removed +revision 1.27 intentionally removed diff --git a/sys/sys/kernel.h b/sys/sys/kernel.h index 0130e1a55e5f..b513f38ec239 100644 --- a/sys/sys/kernel.h +++ b/sys/sys/kernel.h @@ -1 +1 @@ -revision 1.5 intentionally removed +revision 1.6 intentionally removed diff --git a/sys/sys/resource.h b/sys/sys/resource.h index 64b04199e246..d745e70897a7 100644 --- a/sys/sys/resource.h +++ b/sys/sys/resource.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)resource.h 7.5 (Berkeley) 3/17/91 - * $Id: resource.h,v 1.4 1993/08/23 16:01:56 mycroft Exp $ + * $Id: resource.h,v 1.5 1993/12/20 12:43:27 cgd Exp $ */ #ifndef _SYS_RESOURCE_H_ @@ -97,6 +97,12 @@ struct rlimit { long rlim_max; /* maximum value for rlim_cur */ }; +/* Load average structure. */ +struct loadavg { + fixpt_t ldavg[3]; + long fscale; +}; + #ifndef KERNEL #include @@ -108,6 +114,13 @@ int setpriority __P((int, int, int)); int setrlimit __P((int, const struct rlimit *)); __END_DECLS +#else /* !KERNEL */ + +extern struct loadavg averunnable; +#if defined(COMPAT_43) && (defined(vax) || defined(tahoe)) +extern double avenrun[3]; +#endif /* COMPAT_43 */ + #endif /* !KERNEL */ #endif /* !_SYS_RESOURCE_H_ */