thr_detach.c (26f52e2f8b92ffea807005dc15866b2cf79ed3ac) thr_detach.c (7d9d7ca2ed3e3d630e63482c41f2d26194129c2c)
1/*
2 * Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 19 unchanged lines hidden (view full) ---

28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $FreeBSD$
33 */
34#include <errno.h>
35#include <pthread.h>
1/*
2 * Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 19 unchanged lines hidden (view full) ---

28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $FreeBSD$
33 */
34#include <errno.h>
35#include <pthread.h>
36#include <stdlib.h>
36#include "thr_private.h"
37
38__weak_reference(_pthread_detach, pthread_detach);
39
40int
41_pthread_detach(pthread_t pthread)
42{
43 if (pthread == NULL || pthread->magic != PTHREAD_MAGIC)

--- 35 unchanged lines hidden ---
37#include "thr_private.h"
38
39__weak_reference(_pthread_detach, pthread_detach);
40
41int
42_pthread_detach(pthread_t pthread)
43{
44 if (pthread == NULL || pthread->magic != PTHREAD_MAGIC)

--- 35 unchanged lines hidden ---