Zephyr API Documentation
4.0.0
A Scalable Open Source RTOS
4.0.0
Toggle main menu visibility
Main Page
Related Pages
Topics
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
Enumerations
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
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
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
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
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
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
▼
Zephyr API Documentation
►
Introduction
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
doc
►
kernel
►
lib
►
subsys
▼
zephyr
►
acpi
►
app_memory
►
arch
►
audio
►
bluetooth
►
canbus
►
console
►
crypto
►
data
►
debug
►
devicetree
►
dfu
►
display
►
drivers
►
dsp
►
dt-bindings
►
fs
►
input
►
internal
►
ipc
►
kernel
►
linker
►
llext
►
logging
►
lorawan
►
math
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
posix
►
random
►
retention
►
rtio
►
sd
►
sensing
►
settings
►
shell
►
sip_svc
►
stats
►
storage
▼
sys
►
internal
►
__assert.h
►
atomic.h
►
atomic_arch.h
►
atomic_builtin.h
►
atomic_c.h
►
atomic_types.h
►
barrier.h
barrier_builtin.h
►
base64.h
►
bitarray.h
►
byteorder.h
►
cbprintf.h
cbprintf_cxx.h
►
cbprintf_enums.h
►
cbprintf_internal.h
►
check.h
►
crc.h
►
device_mmio.h
►
dlist.h
errno_private.h
►
fdtable.h
►
hash_function.h
►
hash_map.h
►
hash_map_api.h
►
hash_map_cxx.h
►
hash_map_oa_lp.h
►
hash_map_sc.h
►
heap_listener.h
►
iterable_sections.h
►
kobject.h
►
libc-hooks.h
►
linear_range.h
list_gen.h
►
math_extras.h
►
math_extras_impl.h
►
mem_blocks.h
►
mem_manage.h
►
mem_stats.h
►
mpsc_lockfree.h
►
mpsc_packet.h
►
mpsc_pbuf.h
►
multi_heap.h
►
mutex.h
►
notify.h
►
onoff.h
►
p4wq.h
►
poweroff.h
►
printk-hooks.h
►
printk.h
►
rb.h
►
reboot.h
►
ring_buffer.h
►
sem.h
►
sflist.h
►
slist.h
►
speculation.h
►
spsc_lockfree.h
►
spsc_pbuf.h
►
sys_heap.h
►
sys_io.h
►
time_units.h
►
timeutil.h
►
util.h
►
util_internal.h
util_internal_is_eq.h
util_internal_util_dec.h
util_internal_util_inc.h
util_internal_util_x2.h
util_listify.h
util_loops.h
►
util_macro.h
►
winstream.h
►
task_wdt
►
timing
►
toolchain
►
tracing
►
usb
►
usb_c
►
xen
►
zbus
►
zvfs
►
bindesc.h
►
cache.h
►
device.h
►
devicetree.h
►
fatal.h
►
fatal_types.h
►
init.h
►
irq.h
►
irq_multilevel.h
►
irq_nextlevel.h
►
irq_offload.h
►
kernel.h
kernel_includes.h
►
kernel_structs.h
►
kernel_version.h
►
net_buf.h
►
shared_irq.h
►
smf.h
►
spinlock.h
►
sw_isr_table.h
►
sys_clock.h
►
syscall.h
►
toolchain.h
types.h
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
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 <
zephyr/toolchain.h
>
11
#include <
zephyr/types.h
>
/* For Z_THREAD_LOCAL */
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
/* NOTE: located here to avoid include dependency loops between errno.h
18
* and kernel.h
19
*/
20
21
#ifdef CONFIG_LIBC_ERRNO
22
#include <
errno.h
>
23
24
static
inline
int
*z_errno(
void
)
25
{
26
return
&
errno
;
27
}
28
29
#elif defined(CONFIG_ERRNO_IN_TLS)
30
extern
Z_THREAD_LOCAL
int
z_errno_var;
31
32
static
inline
int
*z_errno(
void
)
33
{
34
return
&z_errno_var;
35
}
36
#else
45
__syscall
int
*z_errno(
void
);
46
47
#endif
/* CONFIG_ERRNO_IN_TLS */
48
49
#ifdef __cplusplus
50
}
51
#endif
52
53
#if !defined(CONFIG_ERRNO_IN_TLS) && !defined(CONFIG_LIBC_ERRNO)
54
#include <zephyr/syscalls/errno_private.h>
55
#endif
/* CONFIG_ERRNO_IN_TLS */
56
57
#endif
/* ZEPHYR_INCLUDE_SYS_ERRNO_PRIVATE_H_ */
errno.h
System error numbers.
errno
#define errno
Definition
errno.h:37
types.h
toolchain.h
Macros to abstract toolchain specific capabilities.
zephyr
sys
errno_private.h
Generated on Sat Nov 16 2024 04:55:04 for Zephyr API Documentation by
1.12.0