Skip to content

Remove usage of proc_pidinfo on iOS#1679

Merged
GuillaumeGomez merged 1 commit into
GuillaumeGomez:mainfrom
madsmtm:ios-proc_pidinfo
Jun 18, 2026
Merged

Remove usage of proc_pidinfo on iOS#1679
GuillaumeGomez merged 1 commit into
GuillaumeGomez:mainfrom
madsmtm:ios-proc_pidinfo

Conversation

@madsmtm

@madsmtm madsmtm commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

This is not present in the headers in the iOS SDK, so using it is disallowed by Apple's App Store review guidelines.

(And yes, they do tend to read that sentence to the letter, even if they may sometimes grant apps exceptions to it).

I have also filed FB23247918 to ask them for clarification, because the symbols are marked __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0) in the macOS SDK's header, though I don't think we should block on this, there are other places in sysinfo where we use proc_pidinfo that could benefit from being usable on iOS but that can be re-introduced later once we know more.


This should make sysinfo compile on iOS with rust-lang/libc#5158.

I did also take a look, it seems that #424 removed usage of proc_pidinfo in the past, so doing this for PROC_PIDLISTFDS as well is consistent with that.

@madsmtm madsmtm mentioned this pull request Jun 18, 2026
3 tasks
This is not present in the headers in the iOS SDK, so using it is
disallowed by Apple's App Store review guidelines:
https://developer.apple.com/app-store/review/guidelines/#software-requirements:~:text=Apps%20may%20only%20use%20public%20APIs

(And yes, they do tend to read that sentence to the letter, even if they
may sometimes grant apps exceptions to it).

(I have also filed FB23247918 to ask them for clarification, because the
symbols are marked `__OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0)`
in the macOS SDK's header).
@madsmtm madsmtm force-pushed the ios-proc_pidinfo branch from 50445c6 to 680e14b Compare June 18, 2026 17:04
@GuillaumeGomez

Copy link
Copy Markdown
Owner

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit 6e46940 into GuillaumeGomez:main Jun 18, 2026
66 checks passed
@madsmtm madsmtm deleted the ios-proc_pidinfo branch June 18, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants