Skip to content

Commit

Permalink
Auto merge of #3322 - shyouhei:feature/shyouhei/RTLD_MAIN_ONLY, r=Joh…
Browse files Browse the repository at this point in the history
…nTitor

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.
  • Loading branch information
bors committed Aug 22, 2023
2 parents 10e0724 + ff6a0c6 commit 8356615
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4189,6 +4189,7 @@ pub const RTLD_FIRST: ::c_int = 0x100;
pub const RTLD_NODELETE: ::c_int = 0x80;
pub const RTLD_NOLOAD: ::c_int = 0x10;
pub const RTLD_GLOBAL: ::c_int = 0x8;
pub const RTLD_MAIN_ONLY: *mut ::c_void = -5isize as *mut ::c_void;

pub const _WSTOPPED: ::c_int = 0o177;

Expand Down

0 comments on commit 8356615

Please sign in to comment.