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
►
conn_mgr
►
http
►
prometheus
buf.h
►
canbus.h
►
capture.h
►
coap.h
►
coap_client.h
►
coap_link_format.h
►
coap_mgmt.h
►
coap_service.h
►
conn_mgr_connectivity.h
►
conn_mgr_connectivity_impl.h
►
conn_mgr_monitor.h
►
dhcpv4.h
►
dhcpv4_server.h
►
dhcpv6.h
►
dns_resolve.h
►
dns_sd.h
►
dsa.h
dummy.h
►
ethernet.h
►
ethernet_bridge.h
►
ethernet_mgmt.h
►
ethernet_vlan.h
►
gptp.h
►
hostname.h
►
icmp.h
►
ieee802154.h
►
ieee802154_ie.h
►
ieee802154_mgmt.h
ieee802154_pkt.h
►
ieee802154_radio.h
►
ieee802154_radio_openthread.h
►
igmp.h
►
ipv4_autoconf.h
►
lldp.h
loopback.h
►
lwm2m.h
►
lwm2m_path.h
►
mdio.h
►
mdns_responder.h
►
mii.h
►
mld.h
►
mqtt.h
►
mqtt_sn.h
►
net_config.h
►
net_context.h
►
net_core.h
►
net_event.h
►
net_if.h
►
net_ip.h
►
net_l2.h
►
net_linkaddr.h
►
net_mgmt.h
net_offload.h
►
net_pkt.h
►
net_pkt_filter.h
►
net_stats.h
►
net_time.h
►
net_timeout.h
►
offloaded_netdev.h
►
openthread.h
►
phy.h
►
ppp.h
►
promiscuous.h
►
ptp.h
►
ptp_time.h
►
sntp.h
►
socket.h
►
socket_net_mgmt.h
►
socket_offload.h
socket_poll.h
►
socket_select.h
►
socket_service.h
socket_types.h
►
socketcan.h
►
socketcan_utils.h
►
socketutils.h
►
tftp.h
►
tls_credentials.h
►
trickle.h
udp.h
►
virtual.h
virtual_mgmt.h
►
websocket.h
►
wifi.h
►
wifi_credentials.h
►
wifi_mgmt.h
►
wifi_nm.h
►
wifi_utils.h
►
zperf.h
►
platform
►
pm
►
posix
►
random
►
retention
►
rtio
►
sd
►
sensing
►
settings
►
shell
►
sip_svc
►
stats
►
storage
►
sys
►
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
socket_types.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Nordic Semiconductor
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
12
#ifndef ZEPHYR_INCLUDE_NET_SOCKET_TYPES_H_
13
#define ZEPHYR_INCLUDE_NET_SOCKET_TYPES_H_
14
22
#include <
zephyr/types.h
>
23
26
#ifdef CONFIG_NEWLIB_LIBC
27
28
#include <newlib.h>
29
30
#ifdef __NEWLIB__
31
#include <
sys/_timeval.h
>
32
#else
/* __NEWLIB__ */
33
#include <
sys/types.h
>
34
/* workaround for older Newlib 2.x, as it lacks sys/_timeval.h */
35
struct
timeval
{
36
time_t
tv_sec
;
37
suseconds_t
tv_usec
;
38
};
39
#endif
/* __NEWLIB__ */
40
41
#else
/* CONFIG_NEWLIB_LIBC */
42
43
#if defined(CONFIG_ARCH_POSIX) && defined(CONFIG_EXTERNAL_LIBC)
44
#include <bits/types/struct_timeval.h>
45
#else
46
#include <
sys/_timeval.h
>
47
#endif
48
49
#endif
/* CONFIG_NEWLIB_LIBC */
50
51
#ifdef __cplusplus
52
extern
"C"
{
53
#endif
54
55
#define zsock_timeval timeval
56
57
#ifdef __cplusplus
58
}
59
#endif
60
67
#endif
/* ZEPHYR_INCLUDE_NET_SOCKET_TYPES_H_ */
time_t
_TIME_T_ time_t
Definition
_timespec.h:14
suseconds_t
_SUSECONDS_T_ suseconds_t
Definition
_timespec.h:19
_timeval.h
types.h
types.h
timeval
Definition
_timeval.h:22
timeval::tv_usec
suseconds_t tv_usec
Definition
_timeval.h:24
timeval::tv_sec
time_t tv_sec
Definition
_timeval.h:23
zephyr
net
socket_types.h
Generated on Sat Nov 16 2024 04:55:04 for Zephyr API Documentation by
1.12.0