File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
linux_like/linux/uclibc/x86_64 Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 4
4
#![ allow(
5
5
renamed_and_removed_lints, // Keep this order.
6
6
unknown_lints, // Keep this order.
7
- bad_style ,
7
+ nonstandard_style ,
8
8
overflowing_literals,
9
- improper_ctypes,
10
9
unused_macros,
11
10
unused_macro_rules,
12
11
) ]
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ pub type image_id = i32;
48
48
49
49
e ! {
50
50
// kernel/OS.h
51
+ #[ repr( C ) ]
51
52
pub enum thread_state {
52
53
B_THREAD_RUNNING = 1 ,
53
54
B_THREAD_READY ,
58
59
}
59
60
60
61
// kernel/image.h
62
+ #[ repr( C ) ]
61
63
pub enum image_type {
62
64
B_APP_IMAGE = 1 ,
63
65
B_LIBRARY_IMAGE ,
67
69
68
70
// kernel/scheduler.h
69
71
72
+ #[ repr( C ) ]
70
73
pub enum be_task_flags {
71
74
B_DEFAULT_MEDIA_PRIORITY = 0x000 ,
72
75
B_OFFLINE_PROCESSING = 0x001 ,
83
86
B_MIDI_PROCESSING = 0x800 ,
84
87
}
85
88
89
+ #[ repr( C ) ]
86
90
pub enum schduler_mode {
87
91
SCHEDULER_MODE_LOW_LATENCY ,
88
92
SCHEDULER_MODE_POWER_SAVING ,
89
93
}
90
94
91
95
// FindDirectory.h
96
+ #[ repr( C ) ]
92
97
pub enum path_base_directory {
93
98
B_FIND_PATH_INSTALLATION_LOCATION_DIRECTORY ,
94
99
B_FIND_PATH_ADD_ONS_DIRECTORY ,
118
123
B_FIND_PATH_PACKAGE_PATH ,
119
124
}
120
125
126
+ #[ repr( C ) ]
121
127
pub enum directory_which {
122
128
B_DESKTOP_DIRECTORY = 0 ,
123
129
B_TRASH_DIRECTORY ,
203
209
204
210
// kernel/OS.h
205
211
212
+ #[ repr( C ) ]
206
213
pub enum topology_level_type {
207
214
B_TOPOLOGY_UNKNOWN ,
208
215
B_TOPOLOGY_ROOT ,
211
218
B_TOPOLOGY_PACKAGE ,
212
219
}
213
220
221
+ #[ repr( C ) ]
214
222
pub enum cpu_platform {
215
223
B_CPU_UNKNOWN ,
216
224
B_CPU_x86 ,
227
235
B_CPU_RISC_V ,
228
236
}
229
237
238
+ #[ repr( C ) ]
230
239
pub enum cpu_vendor {
231
240
B_CPU_VENDOR_UNKNOWN ,
232
241
B_CPU_VENDOR_AMD ,
Original file line number Diff line number Diff line change @@ -334,6 +334,7 @@ pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4;
334
334
335
335
cfg_if ! {
336
336
if #[ cfg( target_os = "l4re" ) ] {
337
+ #[ allow( improper_ctypes) ] // FIXME(l4re): this shouldn't be needed
337
338
mod l4re;
338
339
pub use self :: l4re:: * ;
339
340
} else {
You can’t perform that action at this time.
0 commit comments