@@ -18,7 +18,23 @@ pub type vm_region_recurse_info_t = *mut ::libc::c_int;
18
18
pub type vm_region_recurse_info_64_t = * mut :: libc:: c_int ;
19
19
pub type vm_region_flavor_t = :: libc:: c_int ;
20
20
pub type vm_region_info_data_t = [ :: libc:: c_int ; VM_REGION_INFO_MAX as usize ] ;
21
+ #[ cfg_attr(
22
+ not( feature = "unstable" ) ,
23
+ deprecated(
24
+ since = "0.2.3" ,
25
+ note = "requires the `unstable` feature to avoid undefined behavior"
26
+ )
27
+ ) ]
28
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
21
29
pub type vm_region_basic_info_64_t = * mut vm_region_basic_info_64 ;
30
+ #[ cfg_attr(
31
+ not( feature = "unstable" ) ,
32
+ deprecated(
33
+ since = "0.2.3" ,
34
+ note = "requires the `unstable` feature to avoid undefined behavior"
35
+ )
36
+ ) ]
37
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
22
38
pub type vm_region_basic_info_data_64_t = vm_region_basic_info_64 ;
23
39
pub type vm_region_basic_info_t = * mut vm_region_basic_info ;
24
40
pub type vm_region_basic_info_data_t = vm_region_basic_info ;
@@ -28,14 +44,54 @@ pub type vm_region_top_info_t = *mut vm_region_top_info;
28
44
pub type vm_region_top_info_data_t = vm_region_top_info ;
29
45
pub type vm_region_submap_info_t = * mut vm_region_submap_info ;
30
46
pub type vm_region_submap_info_data_t = vm_region_submap_info ;
47
+ #[ cfg_attr(
48
+ not( feature = "unstable" ) ,
49
+ deprecated(
50
+ since = "0.2.3" ,
51
+ note = "requires the `unstable` feature to avoid undefined behavior"
52
+ )
53
+ ) ]
54
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
31
55
pub type vm_region_submap_info_64_t = * mut vm_region_submap_info_64 ;
56
+ #[ cfg_attr(
57
+ not( feature = "unstable" ) ,
58
+ deprecated(
59
+ since = "0.2.3" ,
60
+ note = "requires the `unstable` feature to avoid undefined behavior"
61
+ )
62
+ ) ]
63
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
32
64
pub type vm_region_submap_info_data_64_t = vm_region_submap_info_64 ;
65
+ #[ cfg_attr(
66
+ not( feature = "unstable" ) ,
67
+ deprecated(
68
+ since = "0.2.3" ,
69
+ note = "requires the `unstable` feature to avoid undefined behavior"
70
+ )
71
+ ) ]
72
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
33
73
pub type vm_region_submap_short_info_64_t = * mut vm_region_submap_short_info_64 ;
74
+ #[ cfg_attr(
75
+ not( feature = "unstable" ) ,
76
+ deprecated(
77
+ since = "0.2.3" ,
78
+ note = "requires the `unstable` feature to avoid undefined behavior"
79
+ )
80
+ ) ]
81
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
34
82
pub type vm_region_submap_short_info_data_64_t = vm_region_submap_short_info_64 ;
35
83
pub type vm_page_info_t = * mut :: libc:: c_int ;
36
84
pub type vm_page_info_flavor_t = :: libc:: c_int ;
37
85
pub type vm_page_info_basic_t = * mut vm_page_info_basic ;
38
86
pub type vm_page_info_basic_data_t = vm_page_info_basic ;
87
+ #[ cfg_attr(
88
+ not( feature = "unstable" ) ,
89
+ deprecated(
90
+ since = "0.2.3" ,
91
+ note = "requires the `unstable` feature to avoid undefined behavior"
92
+ )
93
+ ) ]
94
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
39
95
pub type mach_vm_read_entry_t = [ mach_vm_read_entry ; VM_MAP_ENTRY_MAX as usize ] ;
40
96
41
97
pub const VM_REGION_INFO_MAX : :: libc:: c_int = ( 1 << 10 ) ;
@@ -65,6 +121,7 @@ pub const SM_SHARED_ALIASED: ::libc::c_uchar = 7;
65
121
note = "requires the unstable feature to avoid undefined behavior"
66
122
)
67
123
) ]
124
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
68
125
#[ derive( Copy , Clone , Debug , Default , Hash , PartialOrd , PartialEq , Eq , Ord ) ]
69
126
pub struct vm_region_basic_info_64 {
70
127
pub protection : vm_prot_t ,
@@ -77,6 +134,14 @@ pub struct vm_region_basic_info_64 {
77
134
pub user_wired_count : :: libc:: c_ushort ,
78
135
}
79
136
137
+ #[ cfg_attr(
138
+ not( feature = "unstable" ) ,
139
+ deprecated(
140
+ since = "0.2.3" ,
141
+ note = "requires the `unstable` feature to avoid undefined behavior"
142
+ )
143
+ ) ]
144
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
80
145
impl vm_region_basic_info_64 {
81
146
pub fn count ( ) -> mach_msg_type_number_t {
82
147
( mem:: size_of :: < Self > ( ) / mem:: size_of :: < :: libc:: c_int > ( ) ) as mach_msg_type_number_t
@@ -177,6 +242,7 @@ impl vm_region_submap_info {
177
242
note = "requires the `unstable` feature to avoid undefined behavior"
178
243
)
179
244
) ]
245
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
180
246
#[ derive( Copy , Clone , Debug , Default , Hash , PartialOrd , PartialEq , Eq , Ord ) ]
181
247
pub struct vm_region_submap_info_64 {
182
248
pub protection : vm_prot_t ,
@@ -199,6 +265,14 @@ pub struct vm_region_submap_info_64 {
199
265
pub pages_reusable : :: libc:: c_uint ,
200
266
}
201
267
268
+ #[ cfg_attr(
269
+ not( feature = "unstable" ) ,
270
+ deprecated(
271
+ since = "0.2.3" ,
272
+ note = "requires the `unstable` feature to avoid undefined behavior"
273
+ )
274
+ ) ]
275
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
202
276
impl vm_region_submap_info_64 {
203
277
pub fn count ( ) -> mach_msg_type_number_t {
204
278
( mem:: size_of :: < Self > ( ) / mem:: size_of :: < :: libc:: c_int > ( ) ) as mach_msg_type_number_t
@@ -214,6 +288,7 @@ impl vm_region_submap_info_64 {
214
288
note = "requires the `unstable` feature to avoid undefined behavior"
215
289
)
216
290
) ]
291
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
217
292
#[ derive( Copy , Clone , Debug , Default , Hash , PartialOrd , PartialEq , Eq , Ord ) ]
218
293
pub struct vm_region_submap_short_info_64 {
219
294
pub protection : vm_prot_t ,
@@ -231,6 +306,14 @@ pub struct vm_region_submap_short_info_64 {
231
306
pub user_wired_count : :: libc:: c_ushort ,
232
307
}
233
308
309
+ #[ cfg_attr(
310
+ not( feature = "unstable" ) ,
311
+ deprecated(
312
+ since = "0.2.3" ,
313
+ note = "requires the `unstable` feature to avoid undefined behavior"
314
+ )
315
+ ) ]
316
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
234
317
impl vm_region_submap_short_info_64 {
235
318
pub fn count ( ) -> mach_msg_type_number_t {
236
319
( mem:: size_of :: < Self > ( ) / mem:: size_of :: < :: libc:: c_int > ( ) ) as mach_msg_type_number_t
@@ -263,6 +346,7 @@ impl vm_page_info_basic {
263
346
note = "requires the `unstable` feature to avoid undefined behavior"
264
347
)
265
348
) ]
349
+ #[ cfg_attr( not( feature = "unstable" ) , allow( deprecated) ) ]
266
350
#[ derive( Copy , Clone , Debug , Default , Hash , PartialOrd , PartialEq , Eq , Ord ) ]
267
351
pub struct mach_vm_read_entry {
268
352
pub address : mach_vm_address_t ,
0 commit comments