annotate libcilkrts/runtime/sslib/safe_types.h @ 143:76e1cf5455ef

add cbc_gc test
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:24:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /*------------------------------------------------------------------
kono
parents:
diff changeset
2 * safe_types.h - C99 std types & defs or Linux kernel equivalents
kono
parents:
diff changeset
3 *
kono
parents:
diff changeset
4 * March 2007, Bo Berry
kono
parents:
diff changeset
5 * Modified 2012, Jonathan Toppins <jtoppins@users.sourceforge.net>
kono
parents:
diff changeset
6 *
kono
parents:
diff changeset
7 * Copyright (c) 2007-2013 by Cisco Systems, Inc
kono
parents:
diff changeset
8 * All rights reserved.
kono
parents:
diff changeset
9 *
kono
parents:
diff changeset
10 * Permission is hereby granted, free of charge, to any person
kono
parents:
diff changeset
11 * obtaining a copy of this software and associated documentation
kono
parents:
diff changeset
12 * files (the "Software"), to deal in the Software without
kono
parents:
diff changeset
13 * restriction, including without limitation the rights to use,
kono
parents:
diff changeset
14 * copy, modify, merge, publish, distribute, sublicense, and/or
kono
parents:
diff changeset
15 * sell copies of the Software, and to permit persons to whom the
kono
parents:
diff changeset
16 * Software is furnished to do so, subject to the following
kono
parents:
diff changeset
17 * conditions:
kono
parents:
diff changeset
18 *
kono
parents:
diff changeset
19 * The above copyright notice and this permission notice shall be
kono
parents:
diff changeset
20 * included in all copies or substantial portions of the Software.
kono
parents:
diff changeset
21 *
kono
parents:
diff changeset
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
kono
parents:
diff changeset
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
kono
parents:
diff changeset
24 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
kono
parents:
diff changeset
25 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
kono
parents:
diff changeset
26 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
kono
parents:
diff changeset
27 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
kono
parents:
diff changeset
28 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
kono
parents:
diff changeset
29 * OTHER DEALINGS IN THE SOFTWARE.
kono
parents:
diff changeset
30 *------------------------------------------------------------------
kono
parents:
diff changeset
31 */
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 #ifndef __SAFE_TYPES_H__
kono
parents:
diff changeset
34 #define __SAFE_TYPES_H__
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 #ifdef __KERNEL__
kono
parents:
diff changeset
37 /* linux kernel environment */
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 #include <linux/stddef.h>
kono
parents:
diff changeset
40 #include <linux/types.h>
kono
parents:
diff changeset
41 #include <linux/errno.h>
kono
parents:
diff changeset
42
kono
parents:
diff changeset
43 /* errno_t isn't defined in the kernel */
kono
parents:
diff changeset
44 typedef int errno_t;
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 #else
kono
parents:
diff changeset
47
kono
parents:
diff changeset
48 #include <stdio.h>
kono
parents:
diff changeset
49 #include <sys/types.h>
kono
parents:
diff changeset
50 #ifndef _WRS_KERNEL
kono
parents:
diff changeset
51 #include <inttypes.h>
kono
parents:
diff changeset
52 #endif
kono
parents:
diff changeset
53 #include <stdint.h>
kono
parents:
diff changeset
54 #include <errno.h>
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 typedef int errno_t;
kono
parents:
diff changeset
57
kono
parents:
diff changeset
58 #include <stdbool.h>
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 #endif /* __KERNEL__ */
kono
parents:
diff changeset
61 #endif /* __SAFE_TYPES_H__ */