Skip to content

Merge android changes into package branch#4994

Closed
hyp wants to merge 10 commits into
packagefrom
eng/android-package-merge
Closed

Merge android changes into package branch#4994
hyp wants to merge 10 commits into
packagefrom
eng/android-package-merge

Conversation

@hyp

@hyp hyp commented Jun 27, 2024

Copy link
Copy Markdown
Contributor

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

hyp commented Jun 27, 2024

Copy link
Copy Markdown
Contributor Author

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

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

hyp commented Jun 27, 2024

Copy link
Copy Markdown
Contributor Author

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

@parkera

parkera commented Jun 28, 2024

Copy link
Copy Markdown
Contributor

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