1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
//! Definitions used by this library

#[allow(unused)]
use crate::types::c_int;

#[cfg(any(target_env = "wasi", target_os = "wasi"))]
///EAGAIN
pub const EAGAIN: c_int = 6;
#[cfg(any(target_env = "wasi", target_os = "wasi"))]
///EWOULDBLOCK
pub const EWOULDBLOCK: c_int = EAGAIN;

#[cfg(windows)]
///EAGAIN
pub const EAGAIN: c_int = 11;
#[cfg(windows)]
///EWOULDBLOCK
pub const EWOULDBLOCK: c_int = 140;

#[cfg(target_os = "fuchsia")]
///EAGAIN
pub const EAGAIN: c_int = 11;
#[cfg(target_os = "fuchsia")]
///EWOULDBLOCK
pub const EWOULDBLOCK: c_int = EAGAIN;

#[cfg(target_os = "solid_asp3")]
///EAGAIN
pub const EAGAIN: c_int = 11;
#[cfg(target_os = "solid_asp3")]
///EWOULDBLOCK
pub const EWOULDBLOCK: c_int = EAGAIN;

#[cfg(target_os = "vxworks")]
///EAGAIN
pub const EAGAIN: c_int = 11;
#[cfg(target_os = "vxworks")]
///EWOULDBLOCK
pub const EWOULDBLOCK: c_int = 70;

#[cfg(target_os = "teeos")]
///EAGAIN
pub const EAGAIN: c_int = 11;
#[cfg(target_os = "teeos")]
///EWOULDBLOCK
pub const EWOULDBLOCK: c_int = EAGAIN;

//---------------------
//unix
//---------------------
#[cfg(
    any(
        target_env = "newlib",
        target_os = "solaris", target_os = "illumos", target_os = "nto",
        target_os = "aix", target_os = "android", target_os = "linux",
        target_os = "l4re"
    )
)]
///EAGAIN
pub const EAGAIN: c_int = 11;
#[cfg(
    any(
        target_os = "solaris", target_os = "illumos", target_os = "nto",
        target_os = "aix", target_os = "android", target_os = "linux",
        target_os = "l4re"
    )
)]
///EWOULDBLOCK
pub const EWOULDBLOCK: c_int = EAGAIN;
#[cfg(
    any(
        target_os = "macos", target_os = "ios", target_os = "tvos",
        target_os = "watchos", target_os = "freebsd", target_os = "dragonfly",
        target_os = "openbsd", target_os = "netbsd"
    )
)]
///EAGAIN
pub const EAGAIN: c_int = 35;
#[cfg(
    any(
        target_os = "macos", target_os = "ios", target_os = "tvos",
        target_os = "watchos", target_os = "freebsd", target_os = "dragonfly",
        target_os = "openbsd", target_os = "netbsd"
    )
)]
///EWOULDBLOCK
pub const EWOULDBLOCK: c_int = EAGAIN;

#[cfg(target_os = "redox")]
///EAGAIN
pub const EAGAIN: c_int = 11;
#[cfg(target_os = "redox")]
///EWOULDBLOCK
pub const EWOULDBLOCK: c_int = 41;

#[cfg(target_os = "haiku")]
///EAGAIN
pub const EAGAIN: c_int = -2147483637;
#[cfg(target_os = "haiku")]
///EWOULDBLOCK
pub const EWOULDBLOCK: c_int = EAGAIN;

#[cfg(target_os = "emscripten")]
///EAGAIN
pub const EAGAIN: c_int = 6;
#[cfg(target_os = "emscripten")]
///EWOULDBLOCK
pub const EWOULDBLOCK: c_int = EAGAIN;