Deleted Added
full compact
libc_private.h (111618) libc_private.h (122069)
1/*
2 * Copyright (c) 1998 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

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

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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 *
1/*
2 * Copyright (c) 1998 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

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

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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: head/lib/libc/include/libc_private.h 111618 2003-02-27 13:40:01Z nectar $
32 * $FreeBSD: head/lib/libc/include/libc_private.h 122069 2003-11-04 19:49:56Z deischen $
33 *
34 * Private definitions for libc, libc_r and libpthread.
35 *
36 */
37
38#ifndef _LIBC_PRIVATE_H_
39#define _LIBC_PRIVATE_H_
40
33 *
34 * Private definitions for libc, libc_r and libpthread.
35 *
36 */
37
38#ifndef _LIBC_PRIVATE_H_
39#define _LIBC_PRIVATE_H_
40
41#include <spinlock.h>
42
41/*
42 * This global flag is non-zero when a process has created one
43 * or more threads. It is used to avoid calling locking functions
44 * when they are not required.
45 */
46extern int __isthreaded;
47
48/*

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

115
116
117/*
118 * This is a pointer in the C run-time startup code. It is used
119 * by getprogname() and setprogname().
120 */
121extern const char *__progname;
122
43/*
44 * This global flag is non-zero when a process has created one
45 * or more threads. It is used to avoid calling locking functions
46 * when they are not required.
47 */
48extern int __isthreaded;
49
50/*

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

117
118
119/*
120 * This is a pointer in the C run-time startup code. It is used
121 * by getprogname() and setprogname().
122 */
123extern const char *__progname;
124
125/*
126 * This is the lock to make malloc() thread-safe. It is externalized
127 * so that thread libraries can protect malloc across fork().
128 */
129extern spinlock_t *__malloc_lock;
130
123#endif /* _LIBC_PRIVATE_H_ */
131#endif /* _LIBC_PRIVATE_H_ */