libc_private.h (213153) | libc_private.h (228843) |
---|---|
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 --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 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 --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/lib/libc/include/libc_private.h 213153 2010-09-25 01:57:47Z davidxu $ | 29 * $FreeBSD: head/lib/libc/include/libc_private.h 228843 2011-12-23 15:00:37Z cperciva $ |
30 * 31 * Private definitions for libc, libc_r and libpthread. 32 * 33 */ 34 35#ifndef _LIBC_PRIVATE_H_ 36#define _LIBC_PRIVATE_H_ 37#include <sys/_pthreadtypes.h> 38 39/* 40 * This global flag is non-zero when a process has created one 41 * or more threads. It is used to avoid calling locking functions 42 * when they are not required. 43 */ 44extern int __isthreaded; 45 46/* | 30 * 31 * Private definitions for libc, libc_r and libpthread. 32 * 33 */ 34 35#ifndef _LIBC_PRIVATE_H_ 36#define _LIBC_PRIVATE_H_ 37#include <sys/_pthreadtypes.h> 38 39/* 40 * This global flag is non-zero when a process has created one 41 * or more threads. It is used to avoid calling locking functions 42 * when they are not required. 43 */ 44extern int __isthreaded; 45 46/* |
47 * libc should use libc_dlopen internally, which respects a global 48 * flag where loading of new shared objects can be restricted. 49 */ 50void *libc_dlopen(const char *, int); 51 52/* 53 * For dynamic linker. 54 */ 55void _rtld_error(const char *fmt, ...); 56 57/* |
|
47 * File lock contention is difficult to diagnose without knowing 48 * where locks were set. Allow a debug library to be built which 49 * records the source file and line number of each lock call. 50 */ 51#ifdef _FLOCK_DEBUG 52#define _FLOCKFILE(x) _flockfile_debug(x, __FILE__, __LINE__) 53#else 54#define _FLOCKFILE(x) _flockfile(x) --- 171 unchanged lines hidden --- | 58 * File lock contention is difficult to diagnose without knowing 59 * where locks were set. Allow a debug library to be built which 60 * records the source file and line number of each lock call. 61 */ 62#ifdef _FLOCK_DEBUG 63#define _FLOCKFILE(x) _flockfile_debug(x, __FILE__, __LINE__) 64#else 65#define _FLOCKFILE(x) _flockfile(x) --- 171 unchanged lines hidden --- |