summaryrefslogtreecommitdiff
path: root/src/unix/solarish/illumos.rs
diff options
context:
space:
mode:
authorPatrick Mooney <pmooney@pfmooney.com>2020-03-30 17:53:37 +0000
committerPatrick Mooney <pmooney@oxide.computer>2020-04-03 03:33:18 +0000
commit3d65979233617a610436323f5ff926e3ab8da75d (patch)
tree6c4f820130d0e434a991312e481c716f12798ad6 /src/unix/solarish/illumos.rs
parent08e8a3ae8f3e8dd63cd7cf28975b53d94e68f52f (diff)
downloadrust-libc-3d65979233617a610436323f5ff926e3ab8da75d.tar.gz
Split up Solaris and illumos targets
Diffstat (limited to 'src/unix/solarish/illumos.rs')
-rw-r--r--src/unix/solarish/illumos.rs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/unix/solarish/illumos.rs b/src/unix/solarish/illumos.rs
new file mode 100644
index 0000000000..42b4af39d3
--- /dev/null
+++ b/src/unix/solarish/illumos.rs
@@ -0,0 +1,27 @@
+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
+
+extern "C" {
+ pub fn mincore(
+ addr: ::caddr_t,
+ len: ::size_t,
+ vec: *mut ::c_char,
+ ) -> ::c_int;
+}