     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

    //! 32-bit specific definitions for linux-like values

    pub type c_long = i32;
    pub type c_ulong = u32;
    pub type clock_t = i32;
    pub type time_t = i32;
    pub type suseconds_t = i32;
    pub type ino_t = u32;
    pub type off_t = i32;
    pub type blkcnt_t = i32;
    pub type __fsword_t = i32;

    pub type blksize_t = i32;
    pub type nlink_t = u32;

    s! {
        pub struct stat {
            pub st_dev: ::dev_t,
            __pad1: ::c_short,
            pub st_ino: ::ino_t,
            pub st_mode: ::mode_t,
            pub st_nlink: ::nlink_t,
            pub st_uid: ::uid_t,
            pub st_gid: ::gid_t,
            pub st_rdev: ::dev_t,
            __pad2: ::c_short,
            pub st_size: ::off_t,
            pub st_blksize: ::blksize_t,
            pub st_blocks: ::blkcnt_t,
            pub st_atime: ::time_t,
            pub st_atime_nsec: ::c_long,
            pub st_mtime: ::time_t,
            pub st_mtime_nsec: ::c_long,
            pub st_ctime: ::time_t,
            pub st_ctime_nsec: ::c_long,
            __unused4: ::c_long,
            __unused5: ::c_long,
        }

        pub struct pthread_attr_t {
            __size: [u32; 9]
        }

        pub struct sigset_t {
            __val: [::c_ulong; 32],
        }

        pub struct sysinfo {
            pub uptime: ::c_long,
            pub loads: [::c_ulong; 3],
            pub totalram: ::c_ulong,
            pub freeram: ::c_ulong,
            pub sharedram: ::c_ulong,
            pub bufferram: ::c_ulong,
            pub totalswap: ::c_ulong,
            pub freeswap: ::c_ulong,
            pub procs: ::c_ushort,
            pub pad: ::c_ushort,
            pub totalhigh: ::c_ulong,
            pub freehigh: ::c_ulong,
            pub mem_unit: ::c_uint,
            pub _f: [::c_char; 8],
        }
    }

    pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4;
    pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 24;
    pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 32;
    pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4;

    pub const PTRACE_GETFPREGS: ::c_uint = 14;
    pub const PTRACE_SETFPREGS: ::c_uint = 15;
    pub const PTRACE_GETREGS: ::c_uint = 12;
    pub const PTRACE_SETREGS: ::c_uint = 13;

    cfg_if! {
        if #[cfg(target_arch = "x86")] {
            mod x86;
            pub use self::x86::*;
        } else if #[cfg(target_arch = "arm")] {
            mod arm;
            pub use self::arm::*;
        } else if #[cfg(target_arch = "powerpc")] {
            mod powerpc;
            pub use self::powerpc::*;
        } else {
            // Unknown target_arch
        }
    }

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)