libc_private.h (93399) | libc_private.h (106866) |
---|---|
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 93399 2002-03-29 22:43:43Z markm $ | 32 * $FreeBSD: head/lib/libc/include/libc_private.h 106866 2002-11-13 18:12:09Z 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 --- 18 unchanged lines hidden (view full) --- 59/* 60 * Macros for locking and unlocking FILEs. These test if the 61 * process is threaded to avoid locking when not required. 62 */ 63#define FLOCKFILE(fp) if (__isthreaded) _FLOCKFILE(fp) 64#define FUNLOCKFILE(fp) if (__isthreaded) _funlockfile(fp) 65 66/* | 33 * 34 * Private definitions for libc, libc_r and libpthread. 35 * 36 */ 37 38#ifndef _LIBC_PRIVATE_H_ 39#define _LIBC_PRIVATE_H_ 40 --- 18 unchanged lines hidden (view full) --- 59/* 60 * Macros for locking and unlocking FILEs. These test if the 61 * process is threaded to avoid locking when not required. 62 */ 63#define FLOCKFILE(fp) if (__isthreaded) _FLOCKFILE(fp) 64#define FUNLOCKFILE(fp) if (__isthreaded) _funlockfile(fp) 65 66/* |
67 * Indexes into the pthread jump table. 68 * 69 * Warning! If you change this type, you must also change the threads 70 * libraries that reference it (libc_r, libpthread). 71 */ 72typedef enum { 73 PJT_COND_BROADCAST, 74 PJT_COND_DESTROY, 75 PJT_COND_INIT, 76 PJT_COND_SIGNAL, 77 PJT_COND_WAIT, 78 PJT_GETSPECIFIC, 79 PJT_KEY_CREATE, 80 PJT_KEY_DELETE, 81 PJT_MAIN_NP, 82 PJT_MUTEX_DESTROY, 83 PJT_MUTEX_INIT, 84 PJT_MUTEX_LOCK, 85 PJT_MUTEX_TRYLOCK, 86 PJT_MUTEX_UNLOCK, 87 PJT_MUTEXATTR_DESTROY, 88 PJT_MUTEXATTR_INIT, 89 PJT_MUTEXATTR_SETTYPE, 90 PJT_ONCE, 91 PJT_RWLOCK_DESTROY, 92 PJT_RWLOCK_INIT, 93 PJT_RWLOCK_RDLOCK, 94 PJT_RWLOCK_TRYRDLOCK, 95 PJT_RWLOCK_TRYWRLOCK, 96 PJT_RWLOCK_UNLOCK, 97 PJT_RWLOCK_WRLOCK, 98 PJT_SELF, 99 PJT_SETSPECIFIC, 100 PJT_SIGMASK, 101 PJT_MAX 102} pjt_index_t; 103 104typedef int (*pthread_func_t)(); 105 106extern pthread_func_t __thr_jtable[][]; 107 108/* |
|
67 * This is a pointer in the C run-time startup code. It is used 68 * by getprogname() and setprogname(). 69 */ 70extern const char *__progname; 71 72#endif /* _LIBC_PRIVATE_H_ */ | 109 * This is a pointer in the C run-time startup code. It is used 110 * by getprogname() and setprogname(). 111 */ 112extern const char *__progname; 113 114#endif /* _LIBC_PRIVATE_H_ */ |