Deleted Added
full compact
thr_private.h (197968) thr_private.h (201546)
1/*
2 * Copyright (C) 2005 Daniel M. Eischen <deischen@freebsd.org>
3 * Copyright (c) 2005 David Xu <davidxu@freebsd.org>
4 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>.
5 *
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
1/*
2 * Copyright (C) 2005 Daniel M. Eischen <deischen@freebsd.org>
3 * Copyright (c) 2005 David Xu <davidxu@freebsd.org>
4 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>.
5 *
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
29 * $FreeBSD: head/lib/libthr/thread/thr_private.h 197968 2009-10-11 20:19:45Z jilles $
29 * $FreeBSD: head/lib/libthr/thread/thr_private.h 201546 2010-01-05 02:37:59Z davidxu $
30 */
31
32#ifndef _THR_PRIVATE_H
33#define _THR_PRIVATE_H
34
35/*
36 * Include files.
37 */

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

47#include <signal.h>
48#include <stddef.h>
49#include <stdio.h>
50#include <unistd.h>
51#include <ucontext.h>
52#include <sys/thr.h>
53#include <pthread.h>
54
30 */
31
32#ifndef _THR_PRIVATE_H
33#define _THR_PRIVATE_H
34
35/*
36 * Include files.
37 */

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

47#include <signal.h>
48#include <stddef.h>
49#include <stdio.h>
50#include <unistd.h>
51#include <ucontext.h>
52#include <sys/thr.h>
53#include <pthread.h>
54
55#define SYM_FB10(sym) __CONCAT(sym, _fb10)
56#define SYM_FBP10(sym) __CONCAT(sym, _fbp10)
57#define WEAK_REF(sym, alias) __weak_reference(sym, alias)
58#define SYM_COMPAT(sym, impl, ver) __sym_compat(sym, impl, ver)
59#define SYM_DEFAULT(sym, impl, ver) __sym_default(sym, impl, ver)
60
61#define FB10_COMPAT(func, sym) \
62 WEAK_REF(func, SYM_FB10(sym)); \
63 SYM_COMPAT(sym, SYM_FB10(sym), FBSD_1.0)
64
65#define FB10_COMPAT_PRIVATE(func, sym) \
66 WEAK_REF(func, SYM_FBP10(sym)); \
67 SYM_DEFAULT(sym, SYM_FBP10(sym), FBSDprivate_1.0)
68
55#ifndef __hidden
56#define __hidden __attribute__((visibility("hidden")))
57#endif
58
59#include "pthread_md.h"
60#include "thr_umtx.h"
61#include "thread_db.h"
62

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

655int _thr_setscheduler(lwpid_t, int, const struct sched_param *) __hidden;
656int _rtp_to_schedparam(const struct rtprio *rtp, int *policy,
657 struct sched_param *param) __hidden;
658int _schedparam_to_rtp(int policy, const struct sched_param *param,
659 struct rtprio *rtp) __hidden;
660void _thread_bp_create(void);
661void _thread_bp_death(void);
662int _sched_yield(void);
69#ifndef __hidden
70#define __hidden __attribute__((visibility("hidden")))
71#endif
72
73#include "pthread_md.h"
74#include "thr_umtx.h"
75#include "thread_db.h"
76

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

669int _thr_setscheduler(lwpid_t, int, const struct sched_param *) __hidden;
670int _rtp_to_schedparam(const struct rtprio *rtp, int *policy,
671 struct sched_param *param) __hidden;
672int _schedparam_to_rtp(int policy, const struct sched_param *param,
673 struct rtprio *rtp) __hidden;
674void _thread_bp_create(void);
675void _thread_bp_death(void);
676int _sched_yield(void);
677void _thr_sem_prefork(void);
678void _thr_sem_postfork(void);
679void _thr_sem_child_postfork(void);
663
664void _pthread_cleanup_push(void (*)(void *), void *);
665void _pthread_cleanup_pop(int);
666
667/* #include <fcntl.h> */
668#ifdef _SYS_FCNTL_H_
669int __sys_fcntl(int, int, ...);
670int __sys_open(const char *, int, ...);

--- 57 unchanged lines hidden ---
680
681void _pthread_cleanup_push(void (*)(void *), void *);
682void _pthread_cleanup_pop(int);
683
684/* #include <fcntl.h> */
685#ifdef _SYS_FCNTL_H_
686int __sys_fcntl(int, int, ...);
687int __sys_open(const char *, int, ...);

--- 57 unchanged lines hidden ---