Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libc-test/build/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,7 @@ fn test_solarish(t: &Target) {
"netinet/tcp.h",
"netinet/udp.h",
"netinet/icmp6.h",
"paths.h",
"poll.h",
"port.h",
"pthread.h",
Expand Down
2 changes: 2 additions & 0 deletions libc-test/semver/illumos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ TFD_NONBLOCK
TFD_TIMER_ABSTIME
TFD_TIMER_CANCEL_ON_SET
_CS_PATH
_PATH_BSHELL
_PATH_DEFPATH
execl
execle
execlp
Expand Down
2 changes: 2 additions & 0 deletions libc-test/semver/solarish.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ POSIX_SPAWN_WAITPID_NP
SIGEV_PORT
SIGRTMAX
SIGRTMIN
_CS_PATH
_PATH_BSHELL
_POSIX_VDISABLE
_ST_FSTYPSZ
aio_cancel
Expand Down
5 changes: 3 additions & 2 deletions src/unix/solarish/illumos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ pub const LOCK_UN: c_int = 8;
/// for details.
pub const _PC_LAST: c_int = 101;

pub const _CS_PATH: c_int = 65;

pub const VSTATUS: usize = 16;
pub const VERASE2: usize = 17;

Expand Down Expand Up @@ -235,6 +233,9 @@ pub const TFD_NONBLOCK: i32 = 0o4000;
pub const TFD_TIMER_ABSTIME: i32 = 1 << 0;
pub const TFD_TIMER_CANCEL_ON_SET: i32 = 1 << 1;

// paths.h
pub const _PATH_DEFPATH: *const c_char = cstr!("/usr/ccs/bin:/usr/bin:/bin");

extern "C" {
pub fn eventfd(initval: c_uint, flags: c_int) -> c_int;

Expand Down
5 changes: 5 additions & 0 deletions src/unix/solarish/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2197,6 +2197,11 @@ pub const P_FORCED: c_int = 0x10000000;
pub const PI_TYPELEN: c_int = 16;
pub const PI_FPUTYPE: c_int = 32;

pub const _CS_PATH: c_int = 65;

// paths.h
pub const _PATH_BSHELL: *const c_char = cstr!("/usr/bin/sh");

// sys/auxv.h
pub const AT_SUN_HWCAP: c_uint = 2009;

Expand Down
Loading