Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
3.0.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
errno_private.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018 Intel Corporation.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_SYS_ERRNO_PRIVATE_H_
8
#define ZEPHYR_INCLUDE_SYS_ERRNO_PRIVATE_H_
9
10
#include <
toolchain.h
>
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
/* NOTE: located here to avoid include dependency loops between errno.h
17
* and kernel.h
18
*/
19
20
#ifdef CONFIG_ERRNO_IN_TLS
21
extern
__thread
int
z_errno_var;
22
23
static
inline
int
*z_errno(
void
)
24
{
25
return
&z_errno_var;
26
}
27
#else
36
__syscall
int
*z_errno(
void
);
37
38
#endif
/* CONFIG_ERRNO_IN_TLS */
39
40
#ifdef __cplusplus
41
}
42
#endif
43
44
#ifndef CONFIG_ERRNO_IN_TLS
45
#include <syscalls/errno_private.h>
46
#endif
/* CONFIG_ERRNO_IN_TLS */
47
48
#endif
/* ZEPHYR_INCLUDE_SYS_ERRNO_PRIVATE_H_ */
toolchain.h
Macros to abstract toolchain specific capabilities.
include
sys
errno_private.h
Generated on Mon Feb 21 2022 22:43:02 for Zephyr API Documentation by
1.9.2