Loading...
  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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
module Darwin.Mach [system] {
  header "mach/mach.h"
  export *

  // declares string_t which sometimes conflicts with other declarations
  explicit module audit_triggers_types {
    header "mach/audit_triggers_types.h"
    export *
  }

  module boolean {
    header "mach/boolean.h"
    export *
  }

  module bootstrap {
    header "mach/bootstrap.h"
    export *
  }

  module clock {
    header "mach/clock.h"
    export *
  }

  module clock_priv {
    header "mach/clock_priv.h"
    export *
  }

  module clock_reply {
    header "mach/clock_reply.h"
    export *
  }

  module clock_types {
    header "mach/clock_types.h"
    export *
  }

  module dyld_kernel {
    header "mach/dyld_kernel.h"
    export *
  }

  module error {
    header "mach/error.h"
    export *
  }

  module exc {
    header "mach/exc.h"
    export *
  }

  module exception {
    header "mach/exception.h"
    export *
  }

  module exception_types {
    header "mach/exception_types.h"
    export *
  }

  module host_info {
    header "mach/host_info.h"
    export *
  }

  module host_notify {
    header "mach/host_notify.h"
    export *
  }

  module host_priv {
    header "mach/host_priv.h"
    export *
  }

  module host_reboot {
    header "mach/host_reboot.h"
    export *
  }

  module host_security {
    header "mach/host_security.h"
    export *
  }

  module host_special_ports {
    header "mach/host_special_ports.h"
    export *
  }

  #ifndef XNU_PLATFORM_MacOSX
  module hv {
    header "arm64/hv/hv_kern_types.h"
    export *
  }

  #endif
  module kern_return {
    header "mach/kern_return.h"
    export *
  }

  module kmod {
    header "mach/kmod.h"
    export *
  }

  module mach_error {
    header "mach/mach_error.h"
    export *
  }

  module mach_host {
    header "mach/mach_host.h"
    export *
  }

  module mach_init {
    header "mach/mach_init.h"
    export *
  }

  module mach_interface {
    header "mach/mach_interface.h"
    export *
  }

  module mach_param {
    header "mach/mach_param.h"
    export *
  }

  module mach_port {
    header "mach/mach_port.h"
    export *
  }

  module mach_right {
    header "mach/mach_right.h"
    export *
  }

  module mach_syscalls {
    header "mach/mach_syscalls.h"
    export *
  }

  module mach_time {
    header "mach/mach_time.h"
    export *
  }

  module mach_traps {
    header "mach/mach_traps.h"
    export *
  }

  module mach_types {
    header "mach/mach_types.h"
    export *
  }

  #ifdef XNU_KERNEL_PRIVATE
  // usr/include/mach/mach_vm.h is public on macOS, but an #error
  // on the other platforms. Its actual contents are installed
  // to usr/local/include/mach/mach_vm.h on other platforms.
  #endif
  #ifdef XNU_PLATFORM_MacOSX
  module mach_vm {
    header "mach/mach_vm.h"
    export *
  }

  #endif
  module mach_voucher {
    header "mach/mach_voucher.h"
    export *
  }

  module mach_voucher_types {
    header "mach/mach_voucher_types.h"
    export *
  }

  module memory_entry {
    header "mach/memory_entry.h"
    export *
  }

  module memory_object_types {
    header "mach/memory_object_types.h"
    export *
  }

  module message {
    header "mach/message.h"
    export *
  }

  module mig {
    header "mach/mig.h"
    export *
  }

  module mig_errors {
    header "mach/mig_errors.h"
    export *
  }

  module mig_strncpy_zerofill_support {
    header "mach/mig_strncpy_zerofill_support.h"
    export *
  }

  module mig_voucher_support {
    header "mach/mig_voucher_support.h"
    export *
  }

  module ndr {
    header "mach/ndr.h"
    export *
  }

  module notify {
    header "mach/notify.h"
    export *
  }

  module policy {
    header "mach/policy.h"
    export *
  }

  module port {
    header "mach/port.h"
    export *
  }

  module port_obj {
    header "mach/port_obj.h"
    export *
  }

  module processor {
    header "mach/processor.h"
    export *
  }

  module processor_info {
    header "mach/processor_info.h"
    export *
  }

  module processor_set {
    header "mach/processor_set.h"
    export *
  }

  module rpc {
    header "mach/rpc.h"
    export *
  }

  #ifdef XNU_KERNEL_PRIVATE
  // The XNU_PLATFORM_MacOSX headers are in the public SDK for macOS,
  // but mastered out of the public SDK for the other OSes.
  #endif
  #ifdef XNU_PLATFORM_MacOSX
  module sdt {
    header "mach/sdt.h"
    header "sys/sdt.h"
    export *
  }

  #endif
  module semaphore {
    header "mach/semaphore.h"
    export *
  }

  #ifdef XNU_PLATFORM_MacOSX
  module shared_region {
    header "mach/shared_region.h"
    export *
  }

  #endif
  module std_types {
    header "mach/std_types.h"
    export *
  }

  module sync {
    header "mach/sync.h"
    export *
  }

  module sync_policy {
    header "mach/sync_policy.h"
    export *
  }
  #ifdef XNU_KERNEL_PRIVATE
  // usr/include/mach/syscall_sw.h is mastered out of all SDKs.
  #endif

  module task {
    header "mach/task.h"
    export *
  }

  module task_info {
    header "mach/task_info.h"
    export *
  }

  module task_inspect {
    header "mach/task_inspect.h"
    export *
  }

  module task_policy {
    header "mach/task_policy.h"
    export *
  }

  module task_special_ports {
    header "mach/task_special_ports.h"
    export *
  }

  module thread_act {
    header "mach/thread_act.h"
    export *
  }

  module thread_info {
    header "mach/thread_info.h"
    export *
  }

  module thread_policy {
    header "mach/thread_policy.h"
    export *
  }

  module thread_special_ports {
    header "mach/thread_special_ports.h"
    export *
  }

  module thread_state {
    header "mach/thread_state.h"
    export *
  }

  module thread_status {
    header "mach/thread_status.h"
    export *
  }

  module thread_switch {
    header "mach/thread_switch.h"
    export *
  }

  module time_value {
    header "mach/time_value.h"
    export *
  }

  module vm_attributes {
    header "mach/vm_attributes.h"
    export *
  }

  module vm_behavior {
    header "mach/vm_behavior.h"
    export *
  }

  module vm_inherit {
    header "mach/vm_inherit.h"
    export *
  }

  module vm_map {
    header "mach/vm_map.h"
    export *
  }

  module vm_page_size {
    header "mach/vm_page_size.h"
    export *
  }

  module vm_param {
    header "mach/vm_param.h"
    export *
  }

  module vm_prot {
    header "mach/vm_prot.h"
    export *
  }

  module vm_purgable {
    header "mach/vm_purgable.h"
    export *
  }

  module vm_region {
    header "mach/vm_region.h"
    export *
  }

  module vm_statistics {
    header "mach/vm_statistics.h"
    export *
  }

  module vm_sync {
    header "mach/vm_sync.h"
    export *
  }

  module vm_task {
    header "mach/vm_task.h"
    export *
  }

  module vm_types {
    header "mach/vm_types.h"
    export *
  }

  #ifdef XNU_KERNEL_PRIVATE
  // mach_eventlink.h doesn't compile because it depends on
  // mach_eventlink_types.h which is private.
  #endif
  exclude header "mach/mach_eventlink.h"

  #ifdef XNU_PLATFORM_MacOSX
  exclude header "mach/shared_memory_server.h" // deprecated

  #endif
  extern module machine "mach_machine.modulemap"

  extern module debug "mach_debug.modulemap"
}