Skip to content

Commit c861aca

Browse files
Remove private methods and constants
1 parent fcd09b7 commit c861aca

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

libc-test/build.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,6 @@ fn test_apple(target: &str) {
336336

337337
// FIXME: XCode 13.1 doesn't have it.
338338
"TIOCREMOTE" => true,
339-
340-
// Private value used by debuggers.
341-
"_POSIX_SPAWN_DISABLE_ASLR" => true,
342339
_ => false,
343340
}
344341
});
@@ -364,9 +361,6 @@ fn test_apple(target: &str) {
364361
// FIXME: Once the SDK get updated to Ventura's level
365362
"freadlink" | "mknodat" | "mkfifoat" => true,
366363

367-
// Private functions
368-
"pthread_chdir_np" | "pthread_fchdir_np" => true,
369-
370364
_ => false,
371365
}
372366
});

libc-test/semver/apple.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,6 @@ POSIX_SPAWN_SETPGROUP
10911091
POSIX_SPAWN_SETSIGDEF
10921092
POSIX_SPAWN_SETSIGMASK
10931093
POSIX_SPAWN_START_SUSPENDED
1094-
_POSIX_SPAWN_DISABLE_ASLR
10951094
PRIO_DARWIN_BG
10961095
PRIO_DARWIN_NONUI
10971096
PRIO_DARWIN_PROCESS
@@ -2145,8 +2144,6 @@ pthread_rwlockattr_setpshared
21452144
pthread_setname_np
21462145
pthread_setschedparam
21472146
pthread_stack_frame_decode_np
2148-
pthread_chdir_np
2149-
pthread_fchdir_np
21502147
ptrace
21512148
pututxline
21522149
pwritev

src/unix/bsd/apple/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5004,7 +5004,6 @@ pub const POSIX_SPAWN_SETSIGDEF: ::c_int = 0x0004;
50045004
pub const POSIX_SPAWN_SETSIGMASK: ::c_int = 0x0008;
50055005
pub const POSIX_SPAWN_SETEXEC: ::c_int = 0x0040;
50065006
pub const POSIX_SPAWN_START_SUSPENDED: ::c_int = 0x0080;
5007-
pub const _POSIX_SPAWN_DISABLE_ASLR: ::c_int = 0x0100;
50085007
pub const POSIX_SPAWN_CLOEXEC_DEFAULT: ::c_int = 0x4000;
50095008

50105009
// sys/ipc.h:
@@ -5746,8 +5745,6 @@ extern "C" {
57465745
policy: ::c_int,
57475746
param: *const sched_param,
57485747
) -> ::c_int;
5749-
pub fn pthread_chdir_np(path: *const ::c_char) -> ::c_int;
5750-
pub fn pthread_fchdir_np(fd: ::c_int) -> ::c_int;
57515748

57525749
// Available from Big Sur
57535750
pub fn pthread_introspection_hook_install(

0 commit comments

Comments
 (0)