Skip to content

Commit e3148d9

Browse files
committed
Auto merge of #2267 - devnexen:macos_getexec, r=JohnTitor
apple add _NSGetExecutablePath
2 parents 996cfdc + 2317a64 commit e3148d9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,6 +1425,7 @@ YESSTR
14251425
_IOFBF
14261426
_IOLBF
14271427
_IONBF
1428+
_NSGetExecutablePath
14281429
_POSIX_VDISABLE
14291430
_PTHREAD_COND_SIG_init
14301431
_PTHREAD_MUTEX_SIG_init

src/unix/bsd/apple/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4186,6 +4186,8 @@ extern "C" {
41864186
pub fn gethostuuid(id: *mut u8, timeout: *const ::timespec) -> ::c_int;
41874187

41884188
pub fn CCRandomGenerateBytes(bytes: *mut ::c_void, size: ::size_t) -> ::CCRNGStatus;
4189+
4190+
pub fn _NSGetExecutablePath(buf: *mut ::c_char, bufsize: *mut u32) -> ::c_int;
41894191
}
41904192

41914193
cfg_if! {

0 commit comments

Comments
 (0)