Skip to content

Commit 4351675

Browse files
authored
Merge pull request #3702 from madsmtm/apple-crt-externs
Add `_NSGetArgv`, `_NSGetArgc` and `_NSGetProgname` from `crt_externs.h`
2 parents 617b489 + 4333c2f commit 4351675

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

libc-test/semver/apple.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,10 @@ _CS_PATH
15991599
_IOFBF
16001600
_IOLBF
16011601
_IONBF
1602+
_NSGetArgc
1603+
_NSGetArgv
16021604
_NSGetEnviron
1605+
_NSGetProgname
16031606
_POSIX_VDISABLE
16041607
_PTHREAD_COND_SIG_init
16051608
_PTHREAD_MUTEX_SIG_init

src/unix/bsd/apple/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -6266,7 +6266,11 @@ extern "C" {
62666266
pub fn CCRandomGenerateBytes(bytes: *mut ::c_void, size: ::size_t) -> ::CCRNGStatus;
62676267
pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int;
62686268

6269+
// crt_externs.h
6270+
pub fn _NSGetArgv() -> *mut *mut *mut ::c_char;
6271+
pub fn _NSGetArgc() -> *mut ::c_int;
62696272
pub fn _NSGetEnviron() -> *mut *mut *mut ::c_char;
6273+
pub fn _NSGetProgname() -> *mut *mut ::c_char;
62706274

62716275
pub fn vm_allocate(
62726276
target_task: vm_map_t,

0 commit comments

Comments
 (0)