diff options
author | David Leonard <d@cvs.openbsd.org> | 1999-01-08 04:59:51 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 1999-01-08 04:59:51 +0000 |
commit | 0f9dc2ce88b278ac7bbaaafa02fb14c1cc58cd62 (patch) | |
tree | 4dbc8b7f14db22d5fee1b95afcdae236e2f84a68 /lib/libpthread/uthread/pthread_private.h | |
parent | d017551edb27d1739c5e829a08f7c88317af8dbb (diff) |
add poll(2). This might help get X threaded.
Diffstat (limited to 'lib/libpthread/uthread/pthread_private.h')
-rw-r--r-- | lib/libpthread/uthread/pthread_private.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/pthread_private.h b/lib/libpthread/uthread/pthread_private.h index fb6cc7a1076..9772235728e 100644 --- a/lib/libpthread/uthread/pthread_private.h +++ b/lib/libpthread/uthread/pthread_private.h @@ -31,7 +31,7 @@ * * Private thread definitions for the uthread kernel. * - * $OpenBSD: pthread_private.h,v 1.6 1998/12/23 22:49:46 d Exp $ + * $OpenBSD: pthread_private.h,v 1.7 1999/01/08 04:59:50 d Exp $ * */ @@ -461,7 +461,7 @@ struct pthread { */ /* Kernel thread structure used when there are no running threads: */ -extern struct pthread _thread_kern_thread; +extern struct pthread * volatile _thread_kern_thread; /* Ptr to the thread structure for the running thread: */ extern struct pthread * volatile _thread_run; @@ -753,6 +753,11 @@ pid_t _thread_sys_wait3(int *, int, struct rusage *); pid_t _thread_sys_wait4(pid_t, int *, int, struct rusage *); #endif +/* #include <sys/poll.h> */ +#ifdef _SYS_POLL_H_ +int _thread_sys_poll(struct pollfd[], int, int); +#endif + __END_DECLS #endif /* !_PTHREAD_PRIVATE_H */ |