Deleted Added
full compact
thr_init.c (213153) thr_init.c (213241)
1/*
2 * Copyright (c) 2003 Daniel M. Eischen <deischen@freebsd.org>
3 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
1/*
2 * Copyright (c) 2003 Daniel M. Eischen <deischen@freebsd.org>
3 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * $FreeBSD: head/lib/libthr/thread/thr_init.c 213153 2010-09-25 01:57:47Z davidxu $
33 * $FreeBSD: head/lib/libthr/thread/thr_init.c 213241 2010-09-28 04:57:56Z davidxu $
34 */
35
36#include "namespace.h"
37#include <sys/types.h>
38#include <sys/signalvar.h>
39#include <sys/ioctl.h>
40#include <sys/sysctl.h>
41#include <sys/ttycom.h>

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

87};
88
89struct pthread_mutex_attr _pthread_mutexattr_default = {
90 .m_type = PTHREAD_MUTEX_DEFAULT,
91 .m_protocol = PTHREAD_PRIO_NONE,
92 .m_ceiling = 0
93};
94
34 */
35
36#include "namespace.h"
37#include <sys/types.h>
38#include <sys/signalvar.h>
39#include <sys/ioctl.h>
40#include <sys/sysctl.h>
41#include <sys/ttycom.h>

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

87};
88
89struct pthread_mutex_attr _pthread_mutexattr_default = {
90 .m_type = PTHREAD_MUTEX_DEFAULT,
91 .m_protocol = PTHREAD_PRIO_NONE,
92 .m_ceiling = 0
93};
94
95struct pthread_mutex_attr _pthread_mutexattr_adaptive_default = {
96 .m_type = PTHREAD_MUTEX_ADAPTIVE_NP,
97 .m_protocol = PTHREAD_PRIO_NONE,
98 .m_ceiling = 0
99};
100
95/* Default condition variable attributes: */
96struct pthread_cond_attr _pthread_condattr_default = {
97 .c_pshared = PTHREAD_PROCESS_PRIVATE,
98 .c_clockid = CLOCK_REALTIME
99};
100
101pid_t _thr_pid;
102int _thr_is_smp = 0;

--- 367 unchanged lines hidden ---
101/* Default condition variable attributes: */
102struct pthread_cond_attr _pthread_condattr_default = {
103 .c_pshared = PTHREAD_PROCESS_PRIVATE,
104 .c_clockid = CLOCK_REALTIME
105};
106
107pid_t _thr_pid;
108int _thr_is_smp = 0;

--- 367 unchanged lines hidden ---