Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge android changes into package branch #4994

Closed
wants to merge 10 commits into from
Closed

Conversation

hyp
Copy link

@hyp hyp commented Jun 27, 2024

No description provided.

compnerd and others added 10 commits April 29, 2024 16:39
The newer level introduces APIs with additional nullability
attribution. This causes issues as the attribution sometimes collides
with expectations. Unwrap more cases to appease the nullability
attributes. One problematic area of this change is the handling for
`Process.run()`. The posix spawn APIs are described as:

```
typedef struct __posix_spawnattr* posix_spawnattr_t;
int posix_spawnattr_init(posix_spawnattr_t _Nonnull * _Nonnull __attr);
```

As the inner `_Nonnull` appertains to `posix_spawnattr_t`, it expects a
non-null pointer to a non-null pointer. However, as
`struct __posix_spawnattr` is opaque, we cannot allocate space for it
and thus must be acceptable to take a pointer to null to permit the
allocation.
This allows us to prevent the ambiguity for various STATX defines from linux/stat.h when building for Android, as those are defined in the Android platform module
@hyp
Copy link
Author

hyp commented Jun 27, 2024

This is package-based version of the Android support PR: #4889

@hyp hyp requested a review from compnerd June 27, 2024 00:41
@hyp
Copy link
Author

hyp commented Jun 27, 2024

This is preparation for when package becomes main, CC @parkera

@parkera
Copy link
Contributor

parkera commented Jun 28, 2024

Thanks @hyp

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.

3 participants