remoteprocess 0.5.2

cross platform api for getting information on a running processes
Documentation
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
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
// automatically generated with:
// bindgen  /usr/local/include/libunwind-ptrace.h --allowlist-type unw_.*

#![allow(dead_code)]
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(improper_ctypes)]
#![allow(clippy::useless_transmute)]
#![allow(clippy::default_trait_access)]
#![allow(clippy::cast_lossless)]
#![allow(clippy::trivially_copy_pass_by_ref)]

/* automatically generated by rust-bindgen 0.72.0 */

pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __uint64_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sigset_t {
    pub __val: [::std::os::raw::c_ulong; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __sigset_t"][::std::mem::size_of::<__sigset_t>() - 128usize];
    ["Alignment of __sigset_t"][::std::mem::align_of::<__sigset_t>() - 8usize];
    ["Offset of field: __sigset_t::__val"][::std::mem::offset_of!(__sigset_t, __val) - 0usize];
};
pub type sigset_t = __sigset_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct stack_t {
    pub ss_sp: *mut ::std::os::raw::c_void,
    pub ss_flags: ::std::os::raw::c_int,
    pub ss_size: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of stack_t"][::std::mem::size_of::<stack_t>() - 24usize];
    ["Alignment of stack_t"][::std::mem::align_of::<stack_t>() - 8usize];
    ["Offset of field: stack_t::ss_sp"][::std::mem::offset_of!(stack_t, ss_sp) - 0usize];
    ["Offset of field: stack_t::ss_flags"][::std::mem::offset_of!(stack_t, ss_flags) - 8usize];
    ["Offset of field: stack_t::ss_size"][::std::mem::offset_of!(stack_t, ss_size) - 16usize];
};
pub type greg_t = ::std::os::raw::c_longlong;
pub type gregset_t = [greg_t; 23usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _libc_fpxreg {
    pub significand: [::std::os::raw::c_ushort; 4usize],
    pub exponent: ::std::os::raw::c_ushort,
    pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _libc_fpxreg"][::std::mem::size_of::<_libc_fpxreg>() - 16usize];
    ["Alignment of _libc_fpxreg"][::std::mem::align_of::<_libc_fpxreg>() - 2usize];
    ["Offset of field: _libc_fpxreg::significand"]
        [::std::mem::offset_of!(_libc_fpxreg, significand) - 0usize];
    ["Offset of field: _libc_fpxreg::exponent"]
        [::std::mem::offset_of!(_libc_fpxreg, exponent) - 8usize];
    ["Offset of field: _libc_fpxreg::__glibc_reserved1"]
        [::std::mem::offset_of!(_libc_fpxreg, __glibc_reserved1) - 10usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _libc_xmmreg {
    pub element: [__uint32_t; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _libc_xmmreg"][::std::mem::size_of::<_libc_xmmreg>() - 16usize];
    ["Alignment of _libc_xmmreg"][::std::mem::align_of::<_libc_xmmreg>() - 4usize];
    ["Offset of field: _libc_xmmreg::element"]
        [::std::mem::offset_of!(_libc_xmmreg, element) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _libc_fpstate {
    pub cwd: __uint16_t,
    pub swd: __uint16_t,
    pub ftw: __uint16_t,
    pub fop: __uint16_t,
    pub rip: __uint64_t,
    pub rdp: __uint64_t,
    pub mxcsr: __uint32_t,
    pub mxcr_mask: __uint32_t,
    pub _st: [_libc_fpxreg; 8usize],
    pub _xmm: [_libc_xmmreg; 16usize],
    pub __glibc_reserved1: [__uint32_t; 24usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _libc_fpstate"][::std::mem::size_of::<_libc_fpstate>() - 512usize];
    ["Alignment of _libc_fpstate"][::std::mem::align_of::<_libc_fpstate>() - 8usize];
    ["Offset of field: _libc_fpstate::cwd"][::std::mem::offset_of!(_libc_fpstate, cwd) - 0usize];
    ["Offset of field: _libc_fpstate::swd"][::std::mem::offset_of!(_libc_fpstate, swd) - 2usize];
    ["Offset of field: _libc_fpstate::ftw"][::std::mem::offset_of!(_libc_fpstate, ftw) - 4usize];
    ["Offset of field: _libc_fpstate::fop"][::std::mem::offset_of!(_libc_fpstate, fop) - 6usize];
    ["Offset of field: _libc_fpstate::rip"][::std::mem::offset_of!(_libc_fpstate, rip) - 8usize];
    ["Offset of field: _libc_fpstate::rdp"][::std::mem::offset_of!(_libc_fpstate, rdp) - 16usize];
    ["Offset of field: _libc_fpstate::mxcsr"]
        [::std::mem::offset_of!(_libc_fpstate, mxcsr) - 24usize];
    ["Offset of field: _libc_fpstate::mxcr_mask"]
        [::std::mem::offset_of!(_libc_fpstate, mxcr_mask) - 28usize];
    ["Offset of field: _libc_fpstate::_st"][::std::mem::offset_of!(_libc_fpstate, _st) - 32usize];
    ["Offset of field: _libc_fpstate::_xmm"]
        [::std::mem::offset_of!(_libc_fpstate, _xmm) - 160usize];
    ["Offset of field: _libc_fpstate::__glibc_reserved1"]
        [::std::mem::offset_of!(_libc_fpstate, __glibc_reserved1) - 416usize];
};
pub type fpregset_t = *mut _libc_fpstate;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mcontext_t {
    pub gregs: gregset_t,
    pub fpregs: fpregset_t,
    pub __reserved1: [::std::os::raw::c_ulonglong; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of mcontext_t"][::std::mem::size_of::<mcontext_t>() - 256usize];
    ["Alignment of mcontext_t"][::std::mem::align_of::<mcontext_t>() - 8usize];
    ["Offset of field: mcontext_t::gregs"][::std::mem::offset_of!(mcontext_t, gregs) - 0usize];
    ["Offset of field: mcontext_t::fpregs"][::std::mem::offset_of!(mcontext_t, fpregs) - 184usize];
    ["Offset of field: mcontext_t::__reserved1"]
        [::std::mem::offset_of!(mcontext_t, __reserved1) - 192usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ucontext_t {
    pub uc_flags: ::std::os::raw::c_ulong,
    pub uc_link: *mut ucontext_t,
    pub uc_stack: stack_t,
    pub uc_mcontext: mcontext_t,
    pub uc_sigmask: sigset_t,
    pub __fpregs_mem: _libc_fpstate,
    pub __ssp: [::std::os::raw::c_ulonglong; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ucontext_t"][::std::mem::size_of::<ucontext_t>() - 968usize];
    ["Alignment of ucontext_t"][::std::mem::align_of::<ucontext_t>() - 8usize];
    ["Offset of field: ucontext_t::uc_flags"]
        [::std::mem::offset_of!(ucontext_t, uc_flags) - 0usize];
    ["Offset of field: ucontext_t::uc_link"][::std::mem::offset_of!(ucontext_t, uc_link) - 8usize];
    ["Offset of field: ucontext_t::uc_stack"]
        [::std::mem::offset_of!(ucontext_t, uc_stack) - 16usize];
    ["Offset of field: ucontext_t::uc_mcontext"]
        [::std::mem::offset_of!(ucontext_t, uc_mcontext) - 40usize];
    ["Offset of field: ucontext_t::uc_sigmask"]
        [::std::mem::offset_of!(ucontext_t, uc_sigmask) - 296usize];
    ["Offset of field: ucontext_t::__fpregs_mem"]
        [::std::mem::offset_of!(ucontext_t, __fpregs_mem) - 424usize];
    ["Offset of field: ucontext_t::__ssp"][::std::mem::offset_of!(ucontext_t, __ssp) - 936usize];
};
pub type unw_word_t = u64;
pub type unw_sword_t = i64;
pub type unw_tdep_fpreg_t = u128;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct unw_tdep_save_loc {
    pub unused: ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_tdep_save_loc"][::std::mem::size_of::<unw_tdep_save_loc>() - 1usize];
    ["Alignment of unw_tdep_save_loc"][::std::mem::align_of::<unw_tdep_save_loc>() - 1usize];
    ["Offset of field: unw_tdep_save_loc::unused"]
        [::std::mem::offset_of!(unw_tdep_save_loc, unused) - 0usize];
};
pub type unw_tdep_save_loc_t = unw_tdep_save_loc;
pub type unw_tdep_context_t = ucontext_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct unw_tdep_proc_info_t {
    pub unused: ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_tdep_proc_info_t"][::std::mem::size_of::<unw_tdep_proc_info_t>() - 1usize];
    ["Alignment of unw_tdep_proc_info_t"][::std::mem::align_of::<unw_tdep_proc_info_t>() - 1usize];
    ["Offset of field: unw_tdep_proc_info_t::unused"]
        [::std::mem::offset_of!(unw_tdep_proc_info_t, unused) - 0usize];
};
pub const unw_dyn_operation_t_UNW_DYN_STOP: unw_dyn_operation_t = 0;
pub const unw_dyn_operation_t_UNW_DYN_SAVE_REG: unw_dyn_operation_t = 1;
pub const unw_dyn_operation_t_UNW_DYN_SPILL_FP_REL: unw_dyn_operation_t = 2;
pub const unw_dyn_operation_t_UNW_DYN_SPILL_SP_REL: unw_dyn_operation_t = 3;
pub const unw_dyn_operation_t_UNW_DYN_ADD: unw_dyn_operation_t = 4;
pub const unw_dyn_operation_t_UNW_DYN_POP_FRAMES: unw_dyn_operation_t = 5;
pub const unw_dyn_operation_t_UNW_DYN_LABEL_STATE: unw_dyn_operation_t = 6;
pub const unw_dyn_operation_t_UNW_DYN_COPY_STATE: unw_dyn_operation_t = 7;
pub const unw_dyn_operation_t_UNW_DYN_ALIAS: unw_dyn_operation_t = 8;
pub type unw_dyn_operation_t = ::std::os::raw::c_uint;
pub const unw_dyn_info_format_t_UNW_INFO_FORMAT_DYNAMIC: unw_dyn_info_format_t = 0;
pub const unw_dyn_info_format_t_UNW_INFO_FORMAT_TABLE: unw_dyn_info_format_t = 1;
pub const unw_dyn_info_format_t_UNW_INFO_FORMAT_REMOTE_TABLE: unw_dyn_info_format_t = 2;
pub const unw_dyn_info_format_t_UNW_INFO_FORMAT_ARM_EXIDX: unw_dyn_info_format_t = 3;
pub const unw_dyn_info_format_t_UNW_INFO_FORMAT_IP_OFFSET: unw_dyn_info_format_t = 4;
pub type unw_dyn_info_format_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct unw_dyn_op {
    pub tag: i8,
    pub qp: i8,
    pub reg: i16,
    pub when: i32,
    pub val: unw_word_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_dyn_op"][::std::mem::size_of::<unw_dyn_op>() - 16usize];
    ["Alignment of unw_dyn_op"][::std::mem::align_of::<unw_dyn_op>() - 8usize];
    ["Offset of field: unw_dyn_op::tag"][::std::mem::offset_of!(unw_dyn_op, tag) - 0usize];
    ["Offset of field: unw_dyn_op::qp"][::std::mem::offset_of!(unw_dyn_op, qp) - 1usize];
    ["Offset of field: unw_dyn_op::reg"][::std::mem::offset_of!(unw_dyn_op, reg) - 2usize];
    ["Offset of field: unw_dyn_op::when"][::std::mem::offset_of!(unw_dyn_op, when) - 4usize];
    ["Offset of field: unw_dyn_op::val"][::std::mem::offset_of!(unw_dyn_op, val) - 8usize];
};
pub type unw_dyn_op_t = unw_dyn_op;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct unw_dyn_region_info {
    pub next: *mut unw_dyn_region_info,
    pub insn_count: i32,
    pub op_count: u32,
    pub op: [unw_dyn_op_t; 1usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_dyn_region_info"][::std::mem::size_of::<unw_dyn_region_info>() - 32usize];
    ["Alignment of unw_dyn_region_info"][::std::mem::align_of::<unw_dyn_region_info>() - 8usize];
    ["Offset of field: unw_dyn_region_info::next"]
        [::std::mem::offset_of!(unw_dyn_region_info, next) - 0usize];
    ["Offset of field: unw_dyn_region_info::insn_count"]
        [::std::mem::offset_of!(unw_dyn_region_info, insn_count) - 8usize];
    ["Offset of field: unw_dyn_region_info::op_count"]
        [::std::mem::offset_of!(unw_dyn_region_info, op_count) - 12usize];
    ["Offset of field: unw_dyn_region_info::op"]
        [::std::mem::offset_of!(unw_dyn_region_info, op) - 16usize];
};
pub type unw_dyn_region_info_t = unw_dyn_region_info;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct unw_dyn_proc_info {
    pub name_ptr: unw_word_t,
    pub handler: unw_word_t,
    pub flags: u32,
    pub pad0: i32,
    pub regions: *mut unw_dyn_region_info_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_dyn_proc_info"][::std::mem::size_of::<unw_dyn_proc_info>() - 32usize];
    ["Alignment of unw_dyn_proc_info"][::std::mem::align_of::<unw_dyn_proc_info>() - 8usize];
    ["Offset of field: unw_dyn_proc_info::name_ptr"]
        [::std::mem::offset_of!(unw_dyn_proc_info, name_ptr) - 0usize];
    ["Offset of field: unw_dyn_proc_info::handler"]
        [::std::mem::offset_of!(unw_dyn_proc_info, handler) - 8usize];
    ["Offset of field: unw_dyn_proc_info::flags"]
        [::std::mem::offset_of!(unw_dyn_proc_info, flags) - 16usize];
    ["Offset of field: unw_dyn_proc_info::pad0"]
        [::std::mem::offset_of!(unw_dyn_proc_info, pad0) - 20usize];
    ["Offset of field: unw_dyn_proc_info::regions"]
        [::std::mem::offset_of!(unw_dyn_proc_info, regions) - 24usize];
};
pub type unw_dyn_proc_info_t = unw_dyn_proc_info;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct unw_dyn_table_info {
    pub name_ptr: unw_word_t,
    pub segbase: unw_word_t,
    pub table_len: unw_word_t,
    pub table_data: *mut unw_word_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_dyn_table_info"][::std::mem::size_of::<unw_dyn_table_info>() - 32usize];
    ["Alignment of unw_dyn_table_info"][::std::mem::align_of::<unw_dyn_table_info>() - 8usize];
    ["Offset of field: unw_dyn_table_info::name_ptr"]
        [::std::mem::offset_of!(unw_dyn_table_info, name_ptr) - 0usize];
    ["Offset of field: unw_dyn_table_info::segbase"]
        [::std::mem::offset_of!(unw_dyn_table_info, segbase) - 8usize];
    ["Offset of field: unw_dyn_table_info::table_len"]
        [::std::mem::offset_of!(unw_dyn_table_info, table_len) - 16usize];
    ["Offset of field: unw_dyn_table_info::table_data"]
        [::std::mem::offset_of!(unw_dyn_table_info, table_data) - 24usize];
};
pub type unw_dyn_table_info_t = unw_dyn_table_info;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct unw_dyn_remote_table_info {
    pub name_ptr: unw_word_t,
    pub segbase: unw_word_t,
    pub table_len: unw_word_t,
    pub table_data: unw_word_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_dyn_remote_table_info"]
        [::std::mem::size_of::<unw_dyn_remote_table_info>() - 32usize];
    ["Alignment of unw_dyn_remote_table_info"]
        [::std::mem::align_of::<unw_dyn_remote_table_info>() - 8usize];
    ["Offset of field: unw_dyn_remote_table_info::name_ptr"]
        [::std::mem::offset_of!(unw_dyn_remote_table_info, name_ptr) - 0usize];
    ["Offset of field: unw_dyn_remote_table_info::segbase"]
        [::std::mem::offset_of!(unw_dyn_remote_table_info, segbase) - 8usize];
    ["Offset of field: unw_dyn_remote_table_info::table_len"]
        [::std::mem::offset_of!(unw_dyn_remote_table_info, table_len) - 16usize];
    ["Offset of field: unw_dyn_remote_table_info::table_data"]
        [::std::mem::offset_of!(unw_dyn_remote_table_info, table_data) - 24usize];
};
pub type unw_dyn_remote_table_info_t = unw_dyn_remote_table_info;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct unw_dyn_info {
    pub next: *mut unw_dyn_info,
    pub prev: *mut unw_dyn_info,
    pub start_ip: unw_word_t,
    pub end_ip: unw_word_t,
    pub gp: unw_word_t,
    pub format: i32,
    pub pad: i32,
    pub load_offset: unw_word_t,
    pub u: unw_dyn_info__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union unw_dyn_info__bindgen_ty_1 {
    pub pi: unw_dyn_proc_info_t,
    pub ti: unw_dyn_table_info_t,
    pub rti: unw_dyn_remote_table_info_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_dyn_info__bindgen_ty_1"]
        [::std::mem::size_of::<unw_dyn_info__bindgen_ty_1>() - 32usize];
    ["Alignment of unw_dyn_info__bindgen_ty_1"]
        [::std::mem::align_of::<unw_dyn_info__bindgen_ty_1>() - 8usize];
    ["Offset of field: unw_dyn_info__bindgen_ty_1::pi"]
        [::std::mem::offset_of!(unw_dyn_info__bindgen_ty_1, pi) - 0usize];
    ["Offset of field: unw_dyn_info__bindgen_ty_1::ti"]
        [::std::mem::offset_of!(unw_dyn_info__bindgen_ty_1, ti) - 0usize];
    ["Offset of field: unw_dyn_info__bindgen_ty_1::rti"]
        [::std::mem::offset_of!(unw_dyn_info__bindgen_ty_1, rti) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_dyn_info"][::std::mem::size_of::<unw_dyn_info>() - 88usize];
    ["Alignment of unw_dyn_info"][::std::mem::align_of::<unw_dyn_info>() - 8usize];
    ["Offset of field: unw_dyn_info::next"][::std::mem::offset_of!(unw_dyn_info, next) - 0usize];
    ["Offset of field: unw_dyn_info::prev"][::std::mem::offset_of!(unw_dyn_info, prev) - 8usize];
    ["Offset of field: unw_dyn_info::start_ip"]
        [::std::mem::offset_of!(unw_dyn_info, start_ip) - 16usize];
    ["Offset of field: unw_dyn_info::end_ip"]
        [::std::mem::offset_of!(unw_dyn_info, end_ip) - 24usize];
    ["Offset of field: unw_dyn_info::gp"][::std::mem::offset_of!(unw_dyn_info, gp) - 32usize];
    ["Offset of field: unw_dyn_info::format"]
        [::std::mem::offset_of!(unw_dyn_info, format) - 40usize];
    ["Offset of field: unw_dyn_info::pad"][::std::mem::offset_of!(unw_dyn_info, pad) - 44usize];
    ["Offset of field: unw_dyn_info::load_offset"]
        [::std::mem::offset_of!(unw_dyn_info, load_offset) - 48usize];
    ["Offset of field: unw_dyn_info::u"][::std::mem::offset_of!(unw_dyn_info, u) - 56usize];
};
pub type unw_dyn_info_t = unw_dyn_info;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct unw_dyn_info_list {
    pub version: u32,
    pub generation: u32,
    pub first: *mut unw_dyn_info_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_dyn_info_list"][::std::mem::size_of::<unw_dyn_info_list>() - 16usize];
    ["Alignment of unw_dyn_info_list"][::std::mem::align_of::<unw_dyn_info_list>() - 8usize];
    ["Offset of field: unw_dyn_info_list::version"]
        [::std::mem::offset_of!(unw_dyn_info_list, version) - 0usize];
    ["Offset of field: unw_dyn_info_list::generation"]
        [::std::mem::offset_of!(unw_dyn_info_list, generation) - 4usize];
    ["Offset of field: unw_dyn_info_list::first"]
        [::std::mem::offset_of!(unw_dyn_info_list, first) - 8usize];
};
pub type unw_dyn_info_list_t = unw_dyn_info_list;
pub const unw_error_t_UNW_ESUCCESS: unw_error_t = 0;
pub const unw_error_t_UNW_EUNSPEC: unw_error_t = 1;
pub const unw_error_t_UNW_ENOMEM: unw_error_t = 2;
pub const unw_error_t_UNW_EBADREG: unw_error_t = 3;
pub const unw_error_t_UNW_EREADONLYREG: unw_error_t = 4;
pub const unw_error_t_UNW_ESTOPUNWIND: unw_error_t = 5;
pub const unw_error_t_UNW_EINVALIDIP: unw_error_t = 6;
pub const unw_error_t_UNW_EBADFRAME: unw_error_t = 7;
pub const unw_error_t_UNW_EINVAL: unw_error_t = 8;
pub const unw_error_t_UNW_EBADVERSION: unw_error_t = 9;
pub const unw_error_t_UNW_ENOINFO: unw_error_t = 10;
pub type unw_error_t = ::std::os::raw::c_uint;
pub const unw_frame_regnum_t_UNW_REG_IP: unw_frame_regnum_t = 16;
pub const unw_frame_regnum_t_UNW_REG_SP: unw_frame_regnum_t = 7;
pub const unw_frame_regnum_t_UNW_REG_EH: unw_frame_regnum_t = 0;
pub const unw_frame_regnum_t_UNW_REG_LAST: unw_frame_regnum_t = 16;
pub type unw_frame_regnum_t = ::std::os::raw::c_uint;
pub const unw_caching_policy_t_UNW_CACHE_NONE: unw_caching_policy_t = 0;
pub const unw_caching_policy_t_UNW_CACHE_GLOBAL: unw_caching_policy_t = 1;
pub const unw_caching_policy_t_UNW_CACHE_PER_THREAD: unw_caching_policy_t = 2;
pub type unw_caching_policy_t = ::std::os::raw::c_uint;
pub const unw_init_local2_flags_t_UNW_INIT_SIGNAL_FRAME: unw_init_local2_flags_t = 1;
pub type unw_init_local2_flags_t = ::std::os::raw::c_uint;
pub type unw_regnum_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct unw_cursor {
    pub opaque: [unw_word_t; 127usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_cursor"][::std::mem::size_of::<unw_cursor>() - 1016usize];
    ["Alignment of unw_cursor"][::std::mem::align_of::<unw_cursor>() - 8usize];
    ["Offset of field: unw_cursor::opaque"][::std::mem::offset_of!(unw_cursor, opaque) - 0usize];
};
pub type unw_cursor_t = unw_cursor;
pub type unw_context_t = unw_tdep_context_t;
pub type unw_fpreg_t = unw_tdep_fpreg_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct unw_addr_space {
    _unused: [u8; 0],
}
pub type unw_addr_space_t = *mut unw_addr_space;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct unw_proc_info {
    pub start_ip: unw_word_t,
    pub end_ip: unw_word_t,
    pub lsda: unw_word_t,
    pub handler: unw_word_t,
    pub gp: unw_word_t,
    pub flags: unw_word_t,
    pub format: ::std::os::raw::c_int,
    pub unwind_info_size: ::std::os::raw::c_int,
    pub unwind_info: *mut ::std::os::raw::c_void,
    pub extra: unw_tdep_proc_info_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_proc_info"][::std::mem::size_of::<unw_proc_info>() - 72usize];
    ["Alignment of unw_proc_info"][::std::mem::align_of::<unw_proc_info>() - 8usize];
    ["Offset of field: unw_proc_info::start_ip"]
        [::std::mem::offset_of!(unw_proc_info, start_ip) - 0usize];
    ["Offset of field: unw_proc_info::end_ip"]
        [::std::mem::offset_of!(unw_proc_info, end_ip) - 8usize];
    ["Offset of field: unw_proc_info::lsda"][::std::mem::offset_of!(unw_proc_info, lsda) - 16usize];
    ["Offset of field: unw_proc_info::handler"]
        [::std::mem::offset_of!(unw_proc_info, handler) - 24usize];
    ["Offset of field: unw_proc_info::gp"][::std::mem::offset_of!(unw_proc_info, gp) - 32usize];
    ["Offset of field: unw_proc_info::flags"]
        [::std::mem::offset_of!(unw_proc_info, flags) - 40usize];
    ["Offset of field: unw_proc_info::format"]
        [::std::mem::offset_of!(unw_proc_info, format) - 48usize];
    ["Offset of field: unw_proc_info::unwind_info_size"]
        [::std::mem::offset_of!(unw_proc_info, unwind_info_size) - 52usize];
    ["Offset of field: unw_proc_info::unwind_info"]
        [::std::mem::offset_of!(unw_proc_info, unwind_info) - 56usize];
    ["Offset of field: unw_proc_info::extra"]
        [::std::mem::offset_of!(unw_proc_info, extra) - 64usize];
};
pub type unw_proc_info_t = unw_proc_info;
pub type unw_reg_states_callback = ::std::option::Option<
    unsafe extern "C" fn(
        token: *mut ::std::os::raw::c_void,
        reg_states_data: *mut ::std::os::raw::c_void,
        reg_states_data_size: usize,
        start_ip: unw_word_t,
        end_ip: unw_word_t,
    ) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct unw_accessors {
    pub find_proc_info: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: unw_addr_space_t,
            arg2: unw_word_t,
            arg3: *mut unw_proc_info_t,
            arg4: ::std::os::raw::c_int,
            arg5: *mut ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_int,
    >,
    pub put_unwind_info: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: unw_addr_space_t,
            arg2: *mut unw_proc_info_t,
            arg3: *mut ::std::os::raw::c_void,
        ),
    >,
    pub get_dyn_info_list_addr: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: unw_addr_space_t,
            arg2: *mut unw_word_t,
            arg3: *mut ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_int,
    >,
    pub access_mem: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: unw_addr_space_t,
            arg2: unw_word_t,
            arg3: *mut unw_word_t,
            arg4: ::std::os::raw::c_int,
            arg5: *mut ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_int,
    >,
    pub access_reg: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: unw_addr_space_t,
            arg2: unw_regnum_t,
            arg3: *mut unw_word_t,
            arg4: ::std::os::raw::c_int,
            arg5: *mut ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_int,
    >,
    pub access_fpreg: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: unw_addr_space_t,
            arg2: unw_regnum_t,
            arg3: *mut unw_fpreg_t,
            arg4: ::std::os::raw::c_int,
            arg5: *mut ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_int,
    >,
    pub resume: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: unw_addr_space_t,
            arg2: *mut unw_cursor_t,
            arg3: *mut ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_int,
    >,
    pub get_proc_name: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: unw_addr_space_t,
            arg2: unw_word_t,
            arg3: *mut ::std::os::raw::c_char,
            arg4: usize,
            arg5: *mut unw_word_t,
            arg6: *mut ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_int,
    >,
    pub ptrauth_insn_mask: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: unw_addr_space_t,
            arg2: *mut ::std::os::raw::c_void,
        ) -> unw_word_t,
    >,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_accessors"][::std::mem::size_of::<unw_accessors>() - 72usize];
    ["Alignment of unw_accessors"][::std::mem::align_of::<unw_accessors>() - 8usize];
    ["Offset of field: unw_accessors::find_proc_info"]
        [::std::mem::offset_of!(unw_accessors, find_proc_info) - 0usize];
    ["Offset of field: unw_accessors::put_unwind_info"]
        [::std::mem::offset_of!(unw_accessors, put_unwind_info) - 8usize];
    ["Offset of field: unw_accessors::get_dyn_info_list_addr"]
        [::std::mem::offset_of!(unw_accessors, get_dyn_info_list_addr) - 16usize];
    ["Offset of field: unw_accessors::access_mem"]
        [::std::mem::offset_of!(unw_accessors, access_mem) - 24usize];
    ["Offset of field: unw_accessors::access_reg"]
        [::std::mem::offset_of!(unw_accessors, access_reg) - 32usize];
    ["Offset of field: unw_accessors::access_fpreg"]
        [::std::mem::offset_of!(unw_accessors, access_fpreg) - 40usize];
    ["Offset of field: unw_accessors::resume"]
        [::std::mem::offset_of!(unw_accessors, resume) - 48usize];
    ["Offset of field: unw_accessors::get_proc_name"]
        [::std::mem::offset_of!(unw_accessors, get_proc_name) - 56usize];
    ["Offset of field: unw_accessors::ptrauth_insn_mask"]
        [::std::mem::offset_of!(unw_accessors, ptrauth_insn_mask) - 64usize];
};
pub type unw_accessors_t = unw_accessors;
pub const unw_save_loc_type_UNW_SLT_NONE: unw_save_loc_type = 0;
pub const unw_save_loc_type_UNW_SLT_MEMORY: unw_save_loc_type = 1;
pub const unw_save_loc_type_UNW_SLT_REG: unw_save_loc_type = 2;
pub type unw_save_loc_type = ::std::os::raw::c_uint;
pub use self::unw_save_loc_type as unw_save_loc_type_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct unw_save_loc {
    pub type_: unw_save_loc_type_t,
    pub u: unw_save_loc__bindgen_ty_1,
    pub extra: unw_tdep_save_loc_t,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union unw_save_loc__bindgen_ty_1 {
    pub addr: unw_word_t,
    pub regnum: unw_regnum_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_save_loc__bindgen_ty_1"]
        [::std::mem::size_of::<unw_save_loc__bindgen_ty_1>() - 8usize];
    ["Alignment of unw_save_loc__bindgen_ty_1"]
        [::std::mem::align_of::<unw_save_loc__bindgen_ty_1>() - 8usize];
    ["Offset of field: unw_save_loc__bindgen_ty_1::addr"]
        [::std::mem::offset_of!(unw_save_loc__bindgen_ty_1, addr) - 0usize];
    ["Offset of field: unw_save_loc__bindgen_ty_1::regnum"]
        [::std::mem::offset_of!(unw_save_loc__bindgen_ty_1, regnum) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of unw_save_loc"][::std::mem::size_of::<unw_save_loc>() - 24usize];
    ["Alignment of unw_save_loc"][::std::mem::align_of::<unw_save_loc>() - 8usize];
    ["Offset of field: unw_save_loc::type_"][::std::mem::offset_of!(unw_save_loc, type_) - 0usize];
    ["Offset of field: unw_save_loc::u"][::std::mem::offset_of!(unw_save_loc, u) - 8usize];
    ["Offset of field: unw_save_loc::extra"][::std::mem::offset_of!(unw_save_loc, extra) - 16usize];
};
pub type unw_save_loc_t = unw_save_loc;