Skip to content

Commit

Permalink
add RTLD_MAIN_ONLY
Browse files Browse the repository at this point in the history
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
shyouhei authored Aug 21, 2023
1 parent 9447d17 commit 837159c
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 837159c

Please sign in to comment.