diff options
Diffstat (limited to 'lib/librthread')
-rw-r--r-- | lib/librthread/rthread.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/librthread/rthread.c b/lib/librthread/rthread.c index eaff373ae5d..6ec7af49af0 100644 --- a/lib/librthread/rthread.c +++ b/lib/librthread/rthread.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread.c,v 1.5 2005/12/14 04:43:04 tedu Exp $ */ +/* $OpenBSD: rthread.c,v 1.6 2005/12/14 05:44:49 tedu Exp $ */ /* * Copyright (c) 2004 Ted Unangst <tedu@openbsd.org> * All Rights Reserved. @@ -214,6 +214,12 @@ pthread_create(pthread_t *threadp, const pthread_attr_t *attr, } int +pthread_kill(pthread_t thread, int sig) +{ + return (kill(thread->tid, sig)); +} + +int pthread_equal(pthread_t t1, pthread_t t2) { return (t1 == t2); |