1#![allow(unexpected_cfgs)]
4#[allow(unused)]
5use crate::types::c_int;
6
7#[cfg(any(target_env = "wasi", target_os = "wasi"))]
8pub const EAGAIN: c_int = 6;
10#[cfg(any(target_env = "wasi", target_os = "wasi"))]
11pub const EWOULDBLOCK: c_int = EAGAIN;
13
14#[cfg(windows)]
15pub const EAGAIN: c_int = 11;
17#[cfg(windows)]
18pub const EWOULDBLOCK: c_int = 140;
20
21#[cfg(target_os = "fuchsia")]
22pub const EAGAIN: c_int = 11;
24#[cfg(target_os = "fuchsia")]
25pub const EWOULDBLOCK: c_int = EAGAIN;
27
28#[cfg(target_os = "solid_asp3")]
29pub const EAGAIN: c_int = 11;
31#[cfg(target_os = "solid_asp3")]
32pub const EWOULDBLOCK: c_int = EAGAIN;
34
35#[cfg(target_os = "vxworks")]
36pub const EAGAIN: c_int = 11;
38#[cfg(target_os = "vxworks")]
39pub const EWOULDBLOCK: c_int = 70;
41
42#[cfg(target_os = "teeos")]
43pub const EAGAIN: c_int = 11;
45#[cfg(target_os = "teeos")]
46pub const EWOULDBLOCK: c_int = EAGAIN;
48
49#[cfg(
53 any(
54 target_env = "newlib",
55 target_os = "solaris", target_os = "illumos", target_os = "nto",
56 target_os = "aix", target_os = "android", target_os = "linux",
57 target_os = "l4re"
58 )
59)]
60pub const EAGAIN: c_int = 11;
62#[cfg(
63 any(
64 target_os = "solaris", target_os = "illumos", target_os = "nto",
65 target_os = "aix", target_os = "android", target_os = "linux",
66 target_os = "l4re"
67 )
68)]
69pub const EWOULDBLOCK: c_int = EAGAIN;
71#[cfg(
72 any(
73 target_os = "macos", target_os = "ios", target_os = "tvos",
74 target_os = "watchos", target_os = "freebsd", target_os = "dragonfly",
75 target_os = "openbsd", target_os = "netbsd"
76 )
77)]
78pub const EAGAIN: c_int = 35;
80#[cfg(
81 any(
82 target_os = "macos", target_os = "ios", target_os = "tvos",
83 target_os = "watchos", target_os = "freebsd", target_os = "dragonfly",
84 target_os = "openbsd", target_os = "netbsd"
85 )
86)]
87pub const EWOULDBLOCK: c_int = EAGAIN;
89
90#[cfg(target_os = "redox")]
91pub const EAGAIN: c_int = 11;
93#[cfg(target_os = "redox")]
94pub const EWOULDBLOCK: c_int = 41;
96
97#[cfg(target_os = "haiku")]
98pub const EAGAIN: c_int = -2147483637;
100#[cfg(target_os = "haiku")]
101pub const EWOULDBLOCK: c_int = EAGAIN;
103
104#[cfg(target_os = "emscripten")]
105pub const EAGAIN: c_int = 6;
107#[cfg(target_os = "emscripten")]
108pub const EWOULDBLOCK: c_int = EAGAIN;