diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 2004-01-26 20:50:03 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 2004-01-26 20:50:03 +0000 |
commit | 0af4082840f7323ba99c64e82ca3c21264b4fcd1 (patch) | |
tree | ab9d006d0c7641a0d79e6124774104a4020e769e /lib/libpthread/uthread | |
parent | 6fcd23c3fb1f229e074ed244419f9fbcacd32de6 (diff) |
Change read_stackseg_np to work with any thread, not just the current
thread. Requested by truk at optonline dot net and OK-ed by
tedu @.
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r-- | lib/libpthread/uthread/uthread_stackseg_np.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libpthread/uthread/uthread_stackseg_np.c b/lib/libpthread/uthread/uthread_stackseg_np.c index 2e168a0d531..9a7eeca5ee8 100644 --- a/lib/libpthread/uthread/uthread_stackseg_np.c +++ b/lib/libpthread/uthread/uthread_stackseg_np.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_stackseg_np.c,v 1.2 2004/01/16 20:46:20 otto Exp $ */ +/* $OpenBSD: uthread_stackseg_np.c,v 1.3 2004/01/26 20:50:02 marc Exp $ */ /* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> */ @@ -21,9 +21,8 @@ */ int -pthread_stackseg_np(stack_t *sinfo) +pthread_stackseg_np(pthread_t thread, stack_t *sinfo) { - struct pthread *thread = pthread_self(); char *base; size_t pgsz; int ret; |