Deleted Added
full compact
thr_create.c (145436) thr_create.c (149691)
1/*
2 * Copyright (c) 2003 Daniel M. Eischen <deischen@gdeb.com>
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@gdeb.com>
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_create.c 145436 2005-04-23 02:48:59Z davidxu $
33 * $FreeBSD: head/lib/libthr/thread/thr_create.c 149691 2005-09-01 15:21:23Z stefanf $
34 */
35
34 */
35
36#include <sys/types.h>
37#include <sys/signalvar.h>
36#include <errno.h>
37#include <stdlib.h>
38#include <string.h>
39#include <stddef.h>
40#include <pthread.h>
38#include <errno.h>
39#include <stdlib.h>
40#include <string.h>
41#include <stddef.h>
42#include <pthread.h>
41#include <sys/signalvar.h>
42
43#include "thr_private.h"
44
45static void free_thread(struct pthread *curthread, struct pthread *thread);
46static int create_stack(struct pthread_attr *pattr);
47static void free_stack(struct pthread *curthread, struct pthread_attr *pattr);
48static void thread_start(struct pthread *curthread);
49

--- 181 unchanged lines hidden ---
43
44#include "thr_private.h"
45
46static void free_thread(struct pthread *curthread, struct pthread *thread);
47static int create_stack(struct pthread_attr *pattr);
48static void free_stack(struct pthread *curthread, struct pthread_attr *pattr);
49static void thread_start(struct pthread *curthread);
50

--- 181 unchanged lines hidden ---