summaryrefslogtreecommitdiffstats
path: root/include/pthread.h
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1997-12-25 05:07:20 +0000
committeralex <alex@FreeBSD.org>1997-12-25 05:07:20 +0000
commit370393763bf73ce9da93cd977f866919de626f2f (patch)
treeebf81a51f33cfc5ee40812b37eeecd89a145f151 /include/pthread.h
parent32ddc95d9022f09a9b44b5dec56dee6e77bb2914 (diff)
downloadFreeBSD-src-370393763bf73ce9da93cd977f866919de626f2f.zip
FreeBSD-src-370393763bf73ce9da93cd977f866919de626f2f.tar.gz
Changed pthread_detach to conform to POSIX, i.e. the single argument
provided is of type pthread_t instead of pthread_t *. PR: 4320 Return EINVAL instead of ESRCH if attempting to detach an already detached thread.
Diffstat (limited to 'include/pthread.h')
-rw-r--r--include/pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pthread.h b/include/pthread.h
index e3a344e..b196662 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -193,7 +193,7 @@ int pthread_cond_timedwait __P((pthread_cond_t *,
int pthread_cond_wait __P((pthread_cond_t *, pthread_mutex_t *));
int pthread_create __P((pthread_t *, const pthread_attr_t *,
void *(*start_routine) (void *), void *));
-int pthread_detach __P((pthread_t *));
+int pthread_detach __P((pthread_t));
int pthread_equal __P((pthread_t, pthread_t));
void pthread_exit __P((void *));
void *pthread_getspecific __P((pthread_key_t));
OpenPOWER on IntegriCloud