thr_create.c (127523) | thr_create.c (129484) |
---|---|
1/* 2 * Copyright (c) 1995-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) 1995-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/libthr/thread/thr_create.c 127523 2004-03-28 14:05:28Z mtm $ | 32 * $FreeBSD: head/lib/libthr/thread/thr_create.c 129484 2004-05-20 12:06:16Z mtm $ |
33 */ 34#include <errno.h> 35#include <stdlib.h> 36#include <string.h> 37#include <fcntl.h> 38#include <unistd.h> 39#include <stddef.h> 40#include <sys/time.h> 41#include <machine/reg.h> 42#include <pthread.h> 43#include "thr_private.h" 44#include "libc_private.h" 45 46static u_int64_t next_uniqueid = 1; 47 48#define OFF(f) offsetof(struct pthread, f) 49int _thread_next_offset = OFF(tle.tqe_next); 50int _thread_uniqueid_offset = OFF(uniqueid); | 33 */ 34#include <errno.h> 35#include <stdlib.h> 36#include <string.h> 37#include <fcntl.h> 38#include <unistd.h> 39#include <stddef.h> 40#include <sys/time.h> 41#include <machine/reg.h> 42#include <pthread.h> 43#include "thr_private.h" 44#include "libc_private.h" 45 46static u_int64_t next_uniqueid = 1; 47 48#define OFF(f) offsetof(struct pthread, f) 49int _thread_next_offset = OFF(tle.tqe_next); 50int _thread_uniqueid_offset = OFF(uniqueid); |
51int _thread_state_offset = OFF(state); | |
52int _thread_name_offset = OFF(name); 53int _thread_ctx_offset = OFF(ctx); 54#undef OFF 55 56int _thread_PS_RUNNING_value = PS_RUNNING; 57int _thread_PS_DEAD_value = PS_DEAD; 58 59__weak_reference(_pthread_create, pthread_create); --- 128 unchanged lines hidden --- | 51int _thread_name_offset = OFF(name); 52int _thread_ctx_offset = OFF(ctx); 53#undef OFF 54 55int _thread_PS_RUNNING_value = PS_RUNNING; 56int _thread_PS_DEAD_value = PS_DEAD; 57 58__weak_reference(_pthread_create, pthread_create); --- 128 unchanged lines hidden --- |