Deleted Added
full compact
thr_private.h (303708) thr_private.h (315282)
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: stable/11/lib/libthr/thread/thr_private.h 303708 2016-08-03 10:18:52Z kib $
29 * $FreeBSD: stable/11/lib/libthr/thread/thr_private.h 315282 2017-03-14 20:14:57Z pfg $
30 */
31
32#ifndef _THR_PRIVATE_H
33#define _THR_PRIVATE_H
34
35/*
36 * Include files.
37 */

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

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

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

48#include <stdbool.h>
49#include <stddef.h>
50#include <stdio.h>
51#include <unistd.h>
52#include <ucontext.h>
53#include <sys/thr.h>
54#include <pthread.h>
55
56__NULLABILITY_PRAGMA_PUSH
57
56#define SYM_FB10(sym) __CONCAT(sym, _fb10)
57#define SYM_FBP10(sym) __CONCAT(sym, _fbp10)
58#define WEAK_REF(sym, alias) __weak_reference(sym, alias)
59#define SYM_COMPAT(sym, impl, ver) __sym_compat(sym, impl, ver)
60#define SYM_DEFAULT(sym, impl, ver) __sym_default(sym, impl, ver)
61
62#define FB10_COMPAT(func, sym) \
63 WEAK_REF(func, SYM_FB10(sym)); \

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

830void _thread_bp_death(void);
831int _sched_yield(void);
832
833void _pthread_cleanup_push(void (*)(void *), void *);
834void _pthread_cleanup_pop(int);
835void _pthread_exit_mask(void *status, sigset_t *mask) __dead2 __hidden;
836void _pthread_cancel_enter(int maycancel);
837void _pthread_cancel_leave(int maycancel);
58#define SYM_FB10(sym) __CONCAT(sym, _fb10)
59#define SYM_FBP10(sym) __CONCAT(sym, _fbp10)
60#define WEAK_REF(sym, alias) __weak_reference(sym, alias)
61#define SYM_COMPAT(sym, impl, ver) __sym_compat(sym, impl, ver)
62#define SYM_DEFAULT(sym, impl, ver) __sym_default(sym, impl, ver)
63
64#define FB10_COMPAT(func, sym) \
65 WEAK_REF(func, SYM_FB10(sym)); \

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

832void _thread_bp_death(void);
833int _sched_yield(void);
834
835void _pthread_cleanup_push(void (*)(void *), void *);
836void _pthread_cleanup_pop(int);
837void _pthread_exit_mask(void *status, sigset_t *mask) __dead2 __hidden;
838void _pthread_cancel_enter(int maycancel);
839void _pthread_cancel_leave(int maycancel);
838int _pthread_mutex_consistent(pthread_mutex_t *) __nonnull(1);
839int _pthread_mutexattr_getrobust(pthread_mutexattr_t *__restrict,
840 int *__restrict) __nonnull_all;
841int _pthread_mutexattr_setrobust(pthread_mutexattr_t *, int)
842 __nonnull(1);
840int _pthread_mutex_consistent(pthread_mutex_t * _Nonnull);
841int _pthread_mutexattr_getrobust(pthread_mutexattr_t * _Nonnull __restrict,
842 int * _Nonnull __restrict);
843int _pthread_mutexattr_setrobust(pthread_mutexattr_t * _Nonnull, int);
843
844/* #include <fcntl.h> */
845#ifdef _SYS_FCNTL_H_
846int __sys_fcntl(int, int, ...);
847int __sys_openat(int, const char *, int, ...);
848#endif
849
850/* #include <signal.h> */

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

979
980void __thr_pshared_init(void) __hidden;
981void *__thr_pshared_offpage(void *key, int doalloc) __hidden;
982void __thr_pshared_destroy(void *key) __hidden;
983void __thr_pshared_atfork_pre(void) __hidden;
984void __thr_pshared_atfork_post(void) __hidden;
985
986__END_DECLS
844
845/* #include <fcntl.h> */
846#ifdef _SYS_FCNTL_H_
847int __sys_fcntl(int, int, ...);
848int __sys_openat(int, const char *, int, ...);
849#endif
850
851/* #include <signal.h> */

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

980
981void __thr_pshared_init(void) __hidden;
982void *__thr_pshared_offpage(void *key, int doalloc) __hidden;
983void __thr_pshared_destroy(void *key) __hidden;
984void __thr_pshared_atfork_pre(void) __hidden;
985void __thr_pshared_atfork_post(void) __hidden;
986
987__END_DECLS
988__NULLABILITY_PRAGMA_POP
987
988#endif /* !_THR_PRIVATE_H */
989
990#endif /* !_THR_PRIVATE_H */