@@ -19,7 +19,8 @@ pub struct KEvent {
19
19
}
20
20
21
21
#[ cfg( any( target_os = "openbsd" , target_os = "freebsd" ,
22
- target_os = "dragonfly" , target_os = "macos" ) ) ]
22
+ target_os = "dragonfly" , target_os = "macos" ,
23
+ target_os = "ios" ) ) ]
23
24
type type_of_udata = * mut :: c_void ;
24
25
#[ cfg( any( target_os = "netbsd" ) ) ]
25
26
type type_of_udata = intptr_t ;
@@ -33,23 +34,24 @@ pub enum EventFilter {
33
34
EVFILT_AIO = libc:: EVFILT_AIO ,
34
35
#[ cfg( target_os = "dragonfly" ) ]
35
36
EVFILT_EXCEPT = libc:: EVFILT_EXCEPT ,
36
- #[ cfg( any( target_os = "macos" ,
37
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ,
37
38
target_os = "dragonfly" ,
38
39
target_os = "freebsd" ) ) ]
39
40
EVFILT_FS = libc:: EVFILT_FS ,
40
41
#[ cfg( target_os = "freebsd" ) ]
41
42
EVFILT_LIO = libc:: EVFILT_LIO ,
42
- #[ cfg( target_os = "macos" ) ]
43
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
43
44
EVFILT_MACHPORT = libc:: EVFILT_MACHPORT ,
44
45
EVFILT_PROC = libc:: EVFILT_PROC ,
45
46
EVFILT_READ = libc:: EVFILT_READ ,
46
47
EVFILT_SIGNAL = libc:: EVFILT_SIGNAL ,
47
48
EVFILT_TIMER = libc:: EVFILT_TIMER ,
48
49
#[ cfg( any( target_os = "macos" ,
50
+ target_os = "ios" ,
49
51
target_os = "dragonfly" ,
50
52
target_os = "freebsd" ) ) ]
51
53
EVFILT_USER = libc:: EVFILT_USER ,
52
- #[ cfg( target_os = "macos" ) ]
54
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
53
55
EVFILT_VM = libc:: EVFILT_VM ,
54
56
EVFILT_VNODE = libc:: EVFILT_VNODE ,
55
57
EVFILT_WRITE = libc:: EVFILT_WRITE ,
@@ -70,7 +72,8 @@ pub enum EventFilter {
70
72
EVFILT_TIMER = libc:: EVFILT_TIMER ,
71
73
}
72
74
73
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" ) ) ]
75
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ,
76
+ target_os = "freebsd" , target_os = "dragonfly" ) ) ]
74
77
pub type type_of_event_flag = u16 ;
75
78
#[ cfg( any( target_os = "netbsd" , target_os = "openbsd" ) ) ]
76
79
pub type type_of_event_flag = u32 ;
@@ -86,15 +89,15 @@ libc_bitflags!{
86
89
EV_ENABLE ,
87
90
EV_EOF ,
88
91
EV_ERROR ,
89
- #[ cfg( target_os = "macos" ) ]
92
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
90
93
EV_FLAG0 ,
91
94
EV_FLAG1 ,
92
95
#[ cfg( target_os = "dragonfly" ) ]
93
96
EV_NODATA ,
94
97
EV_ONESHOT ,
95
- #[ cfg( target_os = "macos" ) ]
98
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
96
99
EV_OOBAND ,
97
- #[ cfg( target_os = "macos" ) ]
100
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
98
101
EV_POLL ,
99
102
#[ cfg( not( target_os = "openbsd" ) ) ]
100
103
EV_RECEIPT ,
@@ -104,7 +107,7 @@ libc_bitflags!{
104
107
105
108
bitflags ! (
106
109
flags FilterFlag : u32 {
107
- #[ cfg( target_os = "macos" ) ]
110
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
108
111
const NOTE_ABSOLUTE = libc:: NOTE_ABSOLUTE ,
109
112
const NOTE_ATTRIB = libc:: NOTE_ATTRIB ,
110
113
const NOTE_CHILD = libc:: NOTE_CHILD ,
@@ -113,32 +116,38 @@ bitflags!(
113
116
const NOTE_EOF = libc:: NOTE_EOF ,
114
117
const NOTE_EXEC = libc:: NOTE_EXEC ,
115
118
const NOTE_EXIT = libc:: NOTE_EXIT ,
116
- #[ cfg( target_os = "macos" ) ]
119
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
117
120
const NOTE_EXIT_REPARENTED = libc:: NOTE_EXIT_REPARENTED ,
118
- #[ cfg( target_os = "macos" ) ]
121
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
119
122
const NOTE_EXITSTATUS = libc:: NOTE_EXITSTATUS ,
120
123
const NOTE_EXTEND = libc:: NOTE_EXTEND ,
121
- #[ cfg( any( target_os = "macos" ,
124
+ #[ cfg( any( target_os = "macos" ,
125
+ target_os = "ios" ,
122
126
target_os = "freebsd" ,
123
127
target_os = "dragonfly" ) ) ]
124
128
const NOTE_FFAND = libc:: NOTE_FFAND ,
125
129
#[ cfg( any( target_os = "macos" ,
130
+ target_os = "ios" ,
126
131
target_os = "freebsd" ,
127
132
target_os = "dragonfly" ) ) ]
128
133
const NOTE_FFCOPY = libc:: NOTE_FFCOPY ,
129
134
#[ cfg( any( target_os = "macos" ,
135
+ target_os = "ios" ,
130
136
target_os = "freebsd" ,
131
137
target_os = "dragonfly" ) ) ]
132
138
const NOTE_FFCTRLMASK = libc:: NOTE_FFCTRLMASK ,
133
139
#[ cfg( any( target_os = "macos" ,
140
+ target_os = "ios" ,
134
141
target_os = "freebsd" ,
135
142
target_os = "dragonfly" ) ) ]
136
143
const NOTE_FFLAGSMASK = libc:: NOTE_FFLAGSMASK ,
137
144
#[ cfg( any( target_os = "macos" ,
145
+ target_os = "ios" ,
138
146
target_os = "freebsd" ,
139
147
target_os = "dragonfly" ) ) ]
140
148
const NOTE_FFNOP = libc:: NOTE_FFNOP ,
141
149
#[ cfg( any( target_os = "macos" ,
150
+ target_os = "ios" ,
142
151
target_os = "freebsd" ,
143
152
target_os = "dragonfly" ) ) ]
144
153
const NOTE_FFOR = libc:: NOTE_FFOR ,
@@ -147,39 +156,40 @@ bitflags!(
147
156
const NOTE_LOWAT = libc:: NOTE_LOWAT ,
148
157
#[ cfg( target_os = "freebsd" ) ]
149
158
const NOTE_MSECONDS = libc:: NOTE_MSECONDS ,
150
- #[ cfg( target_os = "macos" ) ]
159
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
151
160
const NOTE_NONE = libc:: NOTE_NONE ,
152
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" ) ) ]
161
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = " freebsd") ) ]
153
162
const NOTE_NSECONDS = libc:: NOTE_NSECONDS ,
154
163
#[ cfg( target_os = "dragonfly" ) ]
155
164
const NOTE_OOB = libc:: NOTE_OOB ,
156
165
const NOTE_PCTRLMASK = libc:: NOTE_PCTRLMASK ,
157
166
const NOTE_PDATAMASK = libc:: NOTE_PDATAMASK ,
158
- #[ cfg( target_os = "macos" ) ]
167
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
159
168
const NOTE_REAP = libc:: NOTE_REAP ,
160
169
const NOTE_RENAME = libc:: NOTE_RENAME ,
161
170
const NOTE_REVOKE = libc:: NOTE_REVOKE ,
162
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" ) ) ]
171
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = " freebsd") ) ]
163
172
const NOTE_SECONDS = libc:: NOTE_SECONDS ,
164
- #[ cfg( target_os = "macos" ) ]
173
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
165
174
const NOTE_SIGNAL = libc:: NOTE_SIGNAL ,
166
175
const NOTE_TRACK = libc:: NOTE_TRACK ,
167
176
const NOTE_TRACKERR = libc:: NOTE_TRACKERR ,
168
177
#[ cfg( any( target_os = "macos" ,
178
+ target_os = "ios" ,
169
179
target_os = "freebsd" ,
170
180
target_os = "dragonfly" ) ) ]
171
181
const NOTE_TRIGGER = libc:: NOTE_TRIGGER ,
172
182
#[ cfg( target_os = "openbsd" ) ]
173
183
const NOTE_TRUNCATE = libc:: NOTE_TRUNCATE ,
174
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" ) ) ]
184
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = " freebsd") ) ]
175
185
const NOTE_USECONDS = libc:: NOTE_USECONDS ,
176
- #[ cfg( target_os = "macos" ) ]
186
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
177
187
const NOTE_VM_ERROR = libc:: NOTE_VM_ERROR ,
178
- #[ cfg( target_os = "macos" ) ]
188
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
179
189
const NOTE_VM_PRESSURE = libc:: NOTE_VM_PRESSURE ,
180
- #[ cfg( target_os = "macos" ) ]
190
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
181
191
const NOTE_VM_PRESSURE_SUDDEN_TERMINATE = libc:: NOTE_VM_PRESSURE_SUDDEN_TERMINATE ,
182
- #[ cfg( target_os = "macos" ) ]
192
+ #[ cfg( any ( target_os = "macos" , target_os = "ios" ) ) ]
183
193
const NOTE_VM_PRESSURE_TERMINATE = libc:: NOTE_VM_PRESSURE_TERMINATE ,
184
194
const NOTE_WRITE = libc:: NOTE_WRITE ,
185
195
}
@@ -251,6 +261,7 @@ pub fn kevent(kq: RawFd,
251
261
}
252
262
253
263
#[ cfg( any( target_os = "macos" ,
264
+ target_os = "ios" ,
254
265
target_os = "freebsd" ,
255
266
target_os = "dragonfly" ,
256
267
target_os = "openbsd" ) ) ]
0 commit comments