diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2005-12-14 05:44:50 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2005-12-14 05:44:50 +0000 |
commit | 6ae4e33cbd86dce56e7209b706f25a96c5cc827c (patch) | |
tree | 17a66cf27832a8bdc6c22e53eb310016e0ad752c /lib/librthread | |
parent | 3f21ac29288c2e1a3a9285623e7ea61f2b400ee6 (diff) |
add pthread_kill (just kill(2) really)
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); |