diff options
author | Alex Crichton <alex@alexcrichton.com> | 2016-07-11 19:09:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-11 19:09:44 -0700 |
commit | b0d62534d48b711c8978d1bbe8cca0558ae7b1cb (patch) | |
tree | bde3f33759e1555cd7348ccf3cc020100ffbdf2a | |
parent | caa8081c5858a66ffe8ea65f62c45578563d423d (diff) | |
parent | f0d3ebd0c62508deb2a295a0c24eaf01278af668 (diff) | |
download | rust-libc-b0d62534d48b711c8978d1bbe8cca0558ae7b1cb.tar.gz |
Merge pull request #332 from cuviper/solaris-rtld
solaris: add dlsym/dlopen RTLD constants
-rw-r--r-- | src/unix/solaris/mod.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/unix/solaris/mod.rs b/src/unix/solaris/mod.rs index 85600a85fe..7c31c35d17 100644 --- a/src/unix/solaris/mod.rs +++ b/src/unix/solaris/mod.rs @@ -886,6 +886,22 @@ pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 2; pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 4; pub const PTHREAD_MUTEX_DEFAULT: ::c_int = PTHREAD_MUTEX_NORMAL; +pub const RTLD_NEXT: *mut ::c_void = -1isize as *mut ::c_void; +pub const RTLD_DEFAULT: *mut ::c_void = -2isize as *mut ::c_void; +pub const RTLD_SELF: *mut ::c_void = -3isize as *mut ::c_void; +pub const RTLD_PROBE: *mut ::c_void = -4isize as *mut ::c_void; + +pub const RTLD_NOW: ::c_int = 0x2; +pub const RTLD_NOLOAD: ::c_int = 0x4; +pub const RTLD_GLOBAL: ::c_int = 0x100; +pub const RTLD_LOCAL: ::c_int = 0x0; +pub const RTLD_PARENT: ::c_int = 0x200; +pub const RTLD_GROUP: ::c_int = 0x400; +pub const RTLD_WORLD: ::c_int = 0x800; +pub const RTLD_NODELETE: ::c_int = 0x1000; +pub const RTLD_FIRST: ::c_int = 0x2000; +pub const RTLD_CONFGEN: ::c_int = 0x10000; + f! { pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () { let fd = fd as usize; |