diff options
author | David Leonard <d@cvs.openbsd.org> | 2000-01-06 07:18:27 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 2000-01-06 07:18:27 +0000 |
commit | 119c84333926d9ff71fcc88a11331402226ccf63 (patch) | |
tree | c1d0be9165749770737f3d98b0a1953f572b23ae /lib | |
parent | aa43ad22c0bccf2c75f4f4e1d4079be983333236 (diff) |
volatile
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc_r/uthread/uthread_init.c | 7 | ||||
-rw-r--r-- | lib/libpthread/uthread/uthread_init.c | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/lib/libc_r/uthread/uthread_init.c b/lib/libc_r/uthread/uthread_init.c index cbcb33083ac..6b35532164b 100644 --- a/lib/libc_r/uthread/uthread_init.c +++ b/lib/libc_r/uthread/uthread_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_init.c,v 1.10 1999/11/25 07:01:37 d Exp $ */ +/* $OpenBSD: uthread_init.c,v 1.11 2000/01/06 07:18:26 d Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -40,6 +40,7 @@ #include <paths.h> #include <poll.h> #include <unistd.h> +#include <sys/ioctl.h> #include <sys/param.h> #include <sys/sysctl.h> #include <sys/time.h> @@ -59,8 +60,8 @@ struct pthread *volatile _last_user_thread = &_thread_kern_thread; struct pthread *volatile _thread_single = NULL; _thread_list_t _thread_list = TAILQ_HEAD_INITIALIZER(_thread_list); int _thread_kern_pipe[2] = { -1, -1 }; -int volatile _queue_signals = 0; -int _thread_kern_in_sched = 0; +volatile int _queue_signals = 0; +volatile int _thread_kern_in_sched = 0; struct timeval kern_inc_prio_time = { 0, 0 }; _thread_list_t _dead_list = TAILQ_HEAD_INITIALIZER(_dead_list); struct pthread *_thread_initial = NULL; diff --git a/lib/libpthread/uthread/uthread_init.c b/lib/libpthread/uthread/uthread_init.c index cbcb33083ac..6b35532164b 100644 --- a/lib/libpthread/uthread/uthread_init.c +++ b/lib/libpthread/uthread/uthread_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_init.c,v 1.10 1999/11/25 07:01:37 d Exp $ */ +/* $OpenBSD: uthread_init.c,v 1.11 2000/01/06 07:18:26 d Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -40,6 +40,7 @@ #include <paths.h> #include <poll.h> #include <unistd.h> +#include <sys/ioctl.h> #include <sys/param.h> #include <sys/sysctl.h> #include <sys/time.h> @@ -59,8 +60,8 @@ struct pthread *volatile _last_user_thread = &_thread_kern_thread; struct pthread *volatile _thread_single = NULL; _thread_list_t _thread_list = TAILQ_HEAD_INITIALIZER(_thread_list); int _thread_kern_pipe[2] = { -1, -1 }; -int volatile _queue_signals = 0; -int _thread_kern_in_sched = 0; +volatile int _queue_signals = 0; +volatile int _thread_kern_in_sched = 0; struct timeval kern_inc_prio_time = { 0, 0 }; _thread_list_t _dead_list = TAILQ_HEAD_INITIALIZER(_dead_list); struct pthread *_thread_initial = NULL; |