]> git.proxmox.com Git - rustc.git/blob - vendor/libc/src/unix/solarish/illumos.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / vendor / libc / src / unix / solarish / illumos.rs
1 s! {
2 pub struct shmid_ds {
3 pub shm_perm: ::ipc_perm,
4 pub shm_segsz: ::size_t,
5 pub shm_amp: *mut ::c_void,
6 pub shm_lkcnt: ::c_ushort,
7 pub shm_lpid: ::pid_t,
8 pub shm_cpid: ::pid_t,
9 pub shm_nattch: ::shmatt_t,
10 pub shm_cnattch: ::c_ulong,
11 pub shm_atime: ::time_t,
12 pub shm_dtime: ::time_t,
13 pub shm_ctime: ::time_t,
14 pub shm_pad4: [i64; 4],
15 }
16 }
17
18 pub const AF_LOCAL: ::c_int = 1; // AF_UNIX
19 pub const AF_FILE: ::c_int = 1; // AF_UNIX
20
21 extern "C" {
22 pub fn mincore(
23 addr: ::caddr_t,
24 len: ::size_t,
25 vec: *mut ::c_char,
26 ) -> ::c_int;
27 }