| s! { |
| pub struct shmid_ds { |
| pub shm_perm: ::ipc_perm, |
| pub shm_segsz: ::size_t, |
| pub shm_amp: *mut ::c_void, |
| pub shm_lkcnt: ::c_ushort, |
| pub shm_lpid: ::pid_t, |
| pub shm_cpid: ::pid_t, |
| pub shm_nattch: ::shmatt_t, |
| pub shm_cnattch: ::c_ulong, |
| pub shm_atime: ::time_t, |
| pub shm_dtime: ::time_t, |
| pub shm_ctime: ::time_t, |
| pub shm_pad4: [i64; 4], |
| } |
| } |
| |
| pub const AF_LOCAL: ::c_int = 1; // AF_UNIX |
| pub const AF_FILE: ::c_int = 1; // AF_UNIX |
| |
| pub const EFD_SEMAPHORE: ::c_int = 0x1; |
| pub const EFD_NONBLOCK: ::c_int = 0x800; |
| pub const EFD_CLOEXEC: ::c_int = 0x80000; |
| |
| extern "C" { |
| pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int; |
| |
| pub fn mincore( |
| addr: ::caddr_t, |
| len: ::size_t, |
| vec: *mut ::c_char, |
| ) -> ::c_int; |
| } |