Skip to content

Commit b0d6253

Browse files
authored
Merge pull request rust-lang#332 from cuviper/solaris-rtld
solaris: add dlsym/dlopen RTLD constants
2 parents caa8081 + f0d3ebd commit b0d6253

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/unix/solaris/mod.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,22 @@ pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 2;
886886
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 4;
887887
pub const PTHREAD_MUTEX_DEFAULT: ::c_int = PTHREAD_MUTEX_NORMAL;
888888

889+
pub const RTLD_NEXT: *mut ::c_void = -1isize as *mut ::c_void;
890+
pub const RTLD_DEFAULT: *mut ::c_void = -2isize as *mut ::c_void;
891+
pub const RTLD_SELF: *mut ::c_void = -3isize as *mut ::c_void;
892+
pub const RTLD_PROBE: *mut ::c_void = -4isize as *mut ::c_void;
893+
894+
pub const RTLD_NOW: ::c_int = 0x2;
895+
pub const RTLD_NOLOAD: ::c_int = 0x4;
896+
pub const RTLD_GLOBAL: ::c_int = 0x100;
897+
pub const RTLD_LOCAL: ::c_int = 0x0;
898+
pub const RTLD_PARENT: ::c_int = 0x200;
899+
pub const RTLD_GROUP: ::c_int = 0x400;
900+
pub const RTLD_WORLD: ::c_int = 0x800;
901+
pub const RTLD_NODELETE: ::c_int = 0x1000;
902+
pub const RTLD_FIRST: ::c_int = 0x2000;
903+
pub const RTLD_CONFGEN: ::c_int = 0x10000;
904+
889905
f! {
890906
pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () {
891907
let fd = fd as usize;

0 commit comments

Comments
 (0)