Skip to content

Commit

Permalink
Remove private methods and constants
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentisambart committed Oct 18, 2023
1 parent fcd09b7 commit c861aca
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions libc-test/build.rs
Expand Up @@ -336,9 +336,6 @@ fn test_apple(target: &str) {

// FIXME: XCode 13.1 doesn't have it.
"TIOCREMOTE" => true,

// Private value used by debuggers.
"_POSIX_SPAWN_DISABLE_ASLR" => true,
_ => false,
}
});
Expand All @@ -364,9 +361,6 @@ fn test_apple(target: &str) {
// FIXME: Once the SDK get updated to Ventura's level
"freadlink" | "mknodat" | "mkfifoat" => true,

// Private functions
"pthread_chdir_np" | "pthread_fchdir_np" => true,

_ => false,
}
});
Expand Down
3 changes: 0 additions & 3 deletions libc-test/semver/apple.txt
Expand Up @@ -1091,7 +1091,6 @@ POSIX_SPAWN_SETPGROUP
POSIX_SPAWN_SETSIGDEF
POSIX_SPAWN_SETSIGMASK
POSIX_SPAWN_START_SUSPENDED
_POSIX_SPAWN_DISABLE_ASLR
PRIO_DARWIN_BG
PRIO_DARWIN_NONUI
PRIO_DARWIN_PROCESS
Expand Down Expand Up @@ -2145,8 +2144,6 @@ pthread_rwlockattr_setpshared
pthread_setname_np
pthread_setschedparam
pthread_stack_frame_decode_np
pthread_chdir_np
pthread_fchdir_np
ptrace
pututxline
pwritev
Expand Down
3 changes: 0 additions & 3 deletions src/unix/bsd/apple/mod.rs
Expand Up @@ -5004,7 +5004,6 @@ pub const POSIX_SPAWN_SETSIGDEF: ::c_int = 0x0004;
pub const POSIX_SPAWN_SETSIGMASK: ::c_int = 0x0008;
pub const POSIX_SPAWN_SETEXEC: ::c_int = 0x0040;
pub const POSIX_SPAWN_START_SUSPENDED: ::c_int = 0x0080;
pub const _POSIX_SPAWN_DISABLE_ASLR: ::c_int = 0x0100;
pub const POSIX_SPAWN_CLOEXEC_DEFAULT: ::c_int = 0x4000;

// sys/ipc.h:
Expand Down Expand Up @@ -5746,8 +5745,6 @@ extern "C" {
policy: ::c_int,
param: *const sched_param,
) -> ::c_int;
pub fn pthread_chdir_np(path: *const ::c_char) -> ::c_int;
pub fn pthread_fchdir_np(fd: ::c_int) -> ::c_int;

// Available from Big Sur
pub fn pthread_introspection_hook_install(
Expand Down

0 comments on commit c861aca

Please sign in to comment.