Changeset View
Changeset View
Standalone View
Standalone View
lib/libthr/thread/thr_kill.c
Show All 34 Lines | |||||
#include "namespace.h" | #include "namespace.h" | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <signal.h> | #include <signal.h> | ||||
#include <pthread.h> | #include <pthread.h> | ||||
#include "un-namespace.h" | #include "un-namespace.h" | ||||
#include "thr_private.h" | #include "thr_private.h" | ||||
__weak_reference(_pthread_kill, pthread_kill); | __weak_reference(_thr_kill, _pthread_kill); | ||||
__weak_reference(_thr_kill, pthread_kill); | |||||
int | int | ||||
_pthread_kill(pthread_t pthread, int sig) | _thr_kill(pthread_t pthread, int sig) | ||||
{ | { | ||||
struct pthread *curthread; | struct pthread *curthread; | ||||
int ret; | int ret; | ||||
/* Check for invalid signal numbers: */ | /* Check for invalid signal numbers: */ | ||||
if (sig < 0 || sig > _SIG_MAXSIG) | if (sig < 0 || sig > _SIG_MAXSIG) | ||||
/* Invalid signal: */ | /* Invalid signal: */ | ||||
return (EINVAL); | return (EINVAL); | ||||
Show All 22 Lines |