]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - lib/libkse/support/thr_support.c
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / lib / libkse / support / thr_support.c
1 /*-
2  * Copyright 2003 Alexander Kabaev.
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
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24  *
25  * $FreeBSD$
26  */
27
28 #include <sys/cdefs.h>
29 #include <sys/types.h>
30 #include <sys/time.h>
31 #include <sys/kse.h>
32 #include <signal.h>
33 #include <string.h>
34
35 #include "thr_private.h"
36
37 __strong_reference(clock_gettime, _thr_clock_gettime);
38 __strong_reference(kse_exit, _thr_kse_exit);
39 __strong_reference(kse_wakeup, _thr_kse_wakeup);
40 __strong_reference(kse_create, _thr_kse_create);
41 __strong_reference(kse_thr_interrupt, _thr_kse_thr_interrupt);
42 __strong_reference(kse_release, _thr_kse_release);
43 __strong_reference(kse_switchin, _thr_kse_switchin);
44
45 __strong_reference(sigaction, _thr_sigaction);
46 __strong_reference(sigprocmask, _thr_sigprocmask);
47 __strong_reference(sigemptyset, _thr_sigemptyset);
48 __strong_reference(sigaddset, _thr_sigaddset);
49 __strong_reference(sigfillset, _thr_sigfillset);
50 __strong_reference(sigismember, _thr_sigismember);
51 __strong_reference(sigdelset, _thr_sigdelset);
52
53 __strong_reference(memset, _thr_memset);
54 __strong_reference(memcpy, _thr_memcpy);
55 __strong_reference(strcpy, _thr_strcpy);
56 __strong_reference(strlen, _thr_strlen);
57 __strong_reference(bzero, _thr_bzero);
58 __strong_reference(bcopy, _thr_bcopy);
59
60 __strong_reference(__sys_write, _thr__sys_write);
61 __strong_reference(__sys_sigtimedwait, _thr__sys_sigtimedwait);
62