Deleted Added
full compact
_pthread_stubs.c (199614) _pthread_stubs.c (201546)
1/*
2 * Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org>.
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org>.
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/lib/libc/gen/_pthread_stubs.c 199614 2009-11-20 20:43:34Z jhb $");
28__FBSDID("$FreeBSD: head/lib/libc/gen/_pthread_stubs.c 201546 2010-01-05 02:37:59Z davidxu $");
29
30#include <signal.h>
31#include <pthread.h>
32#include <stdlib.h>
33
34#include "libc_private.h"
35
36/*

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

114 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_RWLOCK_UNLOCK */
115 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_RWLOCK_WRLOCK */
116 {PJT_DUAL_ENTRY(stub_self)}, /* PJT_SELF */
117 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_SETCANCELSTATE */
118 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_SETCANCELTYPE */
119 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_SETSPECIFIC */
120 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_SIGMASK */
121 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_TESTCANCEL */
29
30#include <signal.h>
31#include <pthread.h>
32#include <stdlib.h>
33
34#include "libc_private.h"
35
36/*

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

114 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_RWLOCK_UNLOCK */
115 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_RWLOCK_WRLOCK */
116 {PJT_DUAL_ENTRY(stub_self)}, /* PJT_SELF */
117 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_SETCANCELSTATE */
118 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_SETCANCELTYPE */
119 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_SETSPECIFIC */
120 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_SIGMASK */
121 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_TESTCANCEL */
122 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_CLEANUP_POP_IMP */
123 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_CLEANUP_PUSH_IMP */
122};
123
124/*
125 * Weak aliases for exported (pthread_*) and internal (_pthread_*) routines.
126 */
127#define WEAK_REF(sym, alias) __weak_reference(sym, alias)
128
129#define FUNC_TYPE(name) __CONCAT(name, _func_t)

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

260STUB_FUNC1(pthread_detach, PJT_DETACH, int, void *)
261STUB_FUNC2(pthread_equal, PJT_EQUAL, int, void *, void *)
262STUB_FUNC1(pthread_exit, PJT_EXIT, void, void *)
263STUB_FUNC2(pthread_join, PJT_JOIN, int, void *, void *)
264STUB_FUNC2(pthread_kill, PJT_KILL, int, void *, int)
265STUB_FUNC2(pthread_setcancelstate, PJT_SETCANCELSTATE, int, int, void *)
266STUB_FUNC2(pthread_setcanceltype, PJT_SETCANCELTYPE, int, int, void *)
267STUB_FUNC(pthread_testcancel, PJT_TESTCANCEL, void)
124};
125
126/*
127 * Weak aliases for exported (pthread_*) and internal (_pthread_*) routines.
128 */
129#define WEAK_REF(sym, alias) __weak_reference(sym, alias)
130
131#define FUNC_TYPE(name) __CONCAT(name, _func_t)

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

262STUB_FUNC1(pthread_detach, PJT_DETACH, int, void *)
263STUB_FUNC2(pthread_equal, PJT_EQUAL, int, void *, void *)
264STUB_FUNC1(pthread_exit, PJT_EXIT, void, void *)
265STUB_FUNC2(pthread_join, PJT_JOIN, int, void *, void *)
266STUB_FUNC2(pthread_kill, PJT_KILL, int, void *, int)
267STUB_FUNC2(pthread_setcancelstate, PJT_SETCANCELSTATE, int, int, void *)
268STUB_FUNC2(pthread_setcanceltype, PJT_SETCANCELTYPE, int, int, void *)
269STUB_FUNC(pthread_testcancel, PJT_TESTCANCEL, void)
270STUB_FUNC1(__pthread_cleanup_pop_imp, PJT_CLEANUP_POP_IMP, int, int)
271STUB_FUNC2(__pthread_cleanup_push_imp, PJT_CLEANUP_PUSH_IMP, void, void*, void *);
268
269static int
270stub_zero(void)
271{
272 return (0);
273}
274
275static void *

--- 28 unchanged lines hidden ---
272
273static int
274stub_zero(void)
275{
276 return (0);
277}
278
279static void *

--- 28 unchanged lines hidden ---