Deleted Added
full compact
_pthread_stubs.c (201546) _pthread_stubs.c (213153)
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 201546 2010-01-05 02:37:59Z davidxu $");
28__FBSDID("$FreeBSD: head/lib/libc/gen/_pthread_stubs.c 213153 2010-09-25 01:57:47Z davidxu $");
29
30#include <signal.h>
31#include <pthread.h>
32#include <stdlib.h>
33
34#include "libc_private.h"
35
36/*

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

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 */
29
30#include <signal.h>
31#include <pthread.h>
32#include <stdlib.h>
33
34#include "libc_private.h"
35
36/*

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

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 */
124 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_CANCEL_ENTER */
125 {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_CANCEL_LEAVE */
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)

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

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 *);
126};
127
128/*
129 * Weak aliases for exported (pthread_*) and internal (_pthread_*) routines.
130 */
131#define WEAK_REF(sym, alias) __weak_reference(sym, alias)
132
133#define FUNC_TYPE(name) __CONCAT(name, _func_t)

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

266STUB_FUNC1(pthread_exit, PJT_EXIT, void, void *)
267STUB_FUNC2(pthread_join, PJT_JOIN, int, void *, void *)
268STUB_FUNC2(pthread_kill, PJT_KILL, int, void *, int)
269STUB_FUNC2(pthread_setcancelstate, PJT_SETCANCELSTATE, int, int, void *)
270STUB_FUNC2(pthread_setcanceltype, PJT_SETCANCELTYPE, int, int, void *)
271STUB_FUNC(pthread_testcancel, PJT_TESTCANCEL, void)
272STUB_FUNC1(__pthread_cleanup_pop_imp, PJT_CLEANUP_POP_IMP, int, int)
273STUB_FUNC2(__pthread_cleanup_push_imp, PJT_CLEANUP_PUSH_IMP, void, void*, void *);
274STUB_FUNC1(_pthread_cancel_enter, PJT_CANCEL_ENTER, int, int)
275STUB_FUNC1(_pthread_cancel_leave, PJT_CANCEL_LEAVE, int, int)
272
273static int
274stub_zero(void)
275{
276 return (0);
277}
278
279static void *

--- 28 unchanged lines hidden ---
276
277static int
278stub_zero(void)
279{
280 return (0);
281}
282
283static void *

--- 28 unchanged lines hidden ---