Skip to content

Commit 400a7df

Browse files
committed
Merge pull request #161 from nbaksalyar/illumos
Renames "sunos" to "solaris" (as a part of PR to add Illumos support to Rust)
2 parents 91ff43c + 702814f commit 400a7df

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/unix/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -693,9 +693,9 @@ cfg_if! {
693693
target_os = "bitrig"))] {
694694
mod bsd;
695695
pub use self::bsd::*;
696-
} else if #[cfg(target_os = "sunos")] {
697-
mod sunos;
698-
pub use self::sunos::*;
696+
} else if #[cfg(target_os = "solaris")] {
697+
mod solaris;
698+
pub use self::solaris::*;
699699
} else {
700700
// ...
701701
}

src/unix/sunos/mod.rs src/unix/solaris/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ pub const O_EXCL: ::c_int = 1024;
322322
pub const O_NOCTTY: ::c_int = 2048;
323323
pub const O_TRUNC: ::c_int = 512;
324324
pub const O_CLOEXEC: ::c_int = 0x800000;
325+
pub const O_ACCMODE: ::c_int = 0x600003;
325326
pub const S_IFIFO: mode_t = 4096;
326327
pub const S_IFCHR: mode_t = 8192;
327328
pub const S_IFBLK: mode_t = 24576;

0 commit comments

Comments
 (0)