Skip to content

Commit 8356615

Browse files
committed
Auto merge of #3322 - shyouhei:feature/shyouhei/RTLD_MAIN_ONLY, r=JohnTitor
add RTLD_MAIN_ONLY Apple's dynamic linker has this special handle called `RTLD_MAIN_ONLY` which you can feed to `dlsym(3)`. Their `dlfcn.h` says it has been around since Mac OS X 10.5.
2 parents 10e0724 + ff6a0c6 commit 8356615

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/unix/bsd/apple/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4189,6 +4189,7 @@ pub const RTLD_FIRST: ::c_int = 0x100;
41894189
pub const RTLD_NODELETE: ::c_int = 0x80;
41904190
pub const RTLD_NOLOAD: ::c_int = 0x10;
41914191
pub const RTLD_GLOBAL: ::c_int = 0x8;
4192+
pub const RTLD_MAIN_ONLY: *mut ::c_void = -5isize as *mut ::c_void;
41924193

41934194
pub const _WSTOPPED: ::c_int = 0o177;
41944195

0 commit comments

Comments
 (0)