summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-07-03 21:19:09 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-07-03 21:19:09 +0000
commiteb8b984055f8fb6ff8166bb0fd825d0476a2bc93 (patch)
tree3da86c45136132455aa82d11f2f95d7f4a6b812b /sys/kern
parenteb5c5be45939713345204664aa86051b24effc40 (diff)
Change all variables definitions (int foo) in sys/sys/*.h to variable
declarations (extern int foo), and compensate in the appropriate locations.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_clock.c4
-rw-r--r--sys/kern/kern_synch.c5
-rw-r--r--sys/kern/tty.c4
-rw-r--r--sys/kern/uipc_mbuf.c7
-rw-r--r--sys/kern/vfs_cache.c4
5 files changed, 19 insertions, 5 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index dd83909ea44..b4db87d8e4b 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_clock.c,v 1.37 2002/06/07 21:20:02 art Exp $ */
+/* $OpenBSD: kern_clock.c,v 1.38 2002/07/03 21:19:08 miod Exp $ */
/* $NetBSD: kern_clock.c,v 1.34 1996/06/09 04:51:03 briggs Exp $ */
/*-
@@ -287,6 +287,8 @@ int fixtick; /* used by NTP for same */
int shifthz;
#endif
+long cp_time[CPUSTATES];
+
volatile struct timeval time;
volatile struct timeval mono_time;
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 364485d7d22..aa0b4d7002b 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_synch.c,v 1.43 2002/06/11 05:04:34 art Exp $ */
+/* $OpenBSD: kern_synch.c,v 1.44 2002/07/03 21:19:08 miod Exp $ */
/* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */
/*-
@@ -61,6 +61,9 @@
u_char curpriority; /* usrpri of curproc */
int lbolt; /* once a second sleep address */
+int whichqs; /* Bit mask summary of non-empty Q's. */
+struct prochd qs[NQS];
+
void scheduler_start(void);
void roundrobin(void *);
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 40b64ae5116..4092140d961 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.52 2002/06/11 05:06:18 art Exp $ */
+/* $OpenBSD: tty.c,v 1.53 2002/07/03 21:19:08 miod Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -165,6 +165,8 @@ u_char const char_type[] = {
struct ttylist_head ttylist; /* TAILQ_HEAD */
int tty_count;
+int64_t tk_cancc, tk_nin, tk_nout, tk_rawcc;
+
/*
* Initial open of tty, or (re)entry to standard tty line discipline.
*/
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 563f4eee68c..5e945e355d6 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.57 2002/03/14 01:27:05 millert Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.58 2002/07/03 21:19:08 miod Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -97,6 +97,11 @@ struct pool mclpool; /* mbuf cluster pool */
struct vm_map *mb_map;
+int max_linkhdr; /* largest link-level header */
+int max_protohdr; /* largest protocol header */
+int max_hdr; /* largest link+protocol header */
+int max_datalen; /* MHLEN - max_hdr */
+
void *mclpool_alloc(struct pool *, int);
void mclpool_release(struct pool *, void *);
struct mbuf *m_copym0(struct mbuf *, int, int, int, int);
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 16be7656747..252dccb912f 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_cache.c,v 1.7 2002/07/02 04:23:25 ericj Exp $ */
+/* $OpenBSD: vfs_cache.c,v 1.8 2002/07/03 21:19:08 miod Exp $ */
/* $NetBSD: vfs_cache.c,v 1.13 1996/02/04 02:18:09 christos Exp $ */
/*
@@ -78,6 +78,8 @@ int doingcache = 1; /* 1 => enable the cache */
struct pool nch_pool;
+u_long nextvnodeid;
+
/*
* Look for a the name in the cache. We don't do this
* if the segment name is long, simply so the cache can avoid