-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Update NDK 23c patches #21499
Draft
EDLLT
wants to merge
1
commit into
termux:master
Choose a base branch
from
EDLLT:update-ndk23c
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Update NDK 23c patches #21499
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
--- ./usr/include/grp.h.orig 2022-11-09 21:58:45.468821763 +0100 | ||
+++ ./usr/include/grp.h 2022-11-09 22:02:55.124538470 +0100 | ||
--- ./usr/include/grp.h.orig | ||
+++ ./usr/include/grp.h | ||
@@ -50,21 +50,15 @@ | ||
struct group* getgrgid(gid_t __gid); | ||
struct group* getgrnam(const char* __name); | ||
struct group* _Nullable getgrgid(gid_t __gid); | ||
struct group* _Nullable getgrnam(const char* _Nonnull __name); | ||
|
||
-/* Note: Android has thousands and thousands of ids to iterate through. */ | ||
- | ||
-#if __ANDROID_API__ >= 26 | ||
-struct group* getgrent(void) __INTRODUCED_IN(26); | ||
-struct group* _Nullable getgrent(void) __INTRODUCED_IN(26); | ||
- | ||
-void setgrent(void) __INTRODUCED_IN(26); | ||
-void endgrent(void) __INTRODUCED_IN(26); | ||
-#endif /* __ANDROID_API__ >= 26 */ | ||
- | ||
- | ||
#if __ANDROID_API__ >= 24 | ||
int getgrgid_r(gid_t __gid, struct group* __group, char* __buf, size_t __n, struct group** __result) __INTRODUCED_IN(24); | ||
int getgrnam_r(const char* __name, struct group* __group, char* __buf, size_t __n, struct group** __result) __INTRODUCED_IN(24); | ||
int getgrgid_r(gid_t __gid, struct group* __BIONIC_COMPLICATED_NULLNESS __group, char* _Nonnull __buf, size_t __n, struct group* _Nullable * _Nonnull __result) __INTRODUCED_IN(24); | ||
int getgrnam_r(const char* _Nonnull __name, struct group* __BIONIC_COMPLICATED_NULLNESS __group, char* _Nonnull __buf, size_t __n, struct group* _Nullable *_Nonnull __result) __INTRODUCED_IN(24); | ||
#endif /* __ANDROID_API__ >= 24 */ | ||
|
||
+static struct group* getgrent(void) { return 0; } | ||
+static struct group* _Nullable getgrent(void) { return 0; } | ||
+static void setgrent(void) {} | ||
+static void endgrent(void) {} | ||
+ | ||
int getgrouplist(const char* __user, gid_t __group, gid_t* __groups, int* __group_count); | ||
int initgroups(const char* __user, gid_t __group); | ||
int getgrouplist(const char* _Nonnull __user, gid_t __group, gid_t* __BIONIC_COMPLICATED_NULLNESS __groups, int* _Nonnull __group_count); | ||
int initgroups(const char* _Nonnull __user, gid_t __group); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
--- ./usr/include/semaphore.h.orig | ||
+++ ./usr/include/semaphore.h | ||
@@ -71,9 +71,14 @@ | ||
int sem_trywait(sem_t* __sem); | ||
int sem_wait(sem_t* __sem); | ||
int sem_trywait(sem_t* _Nonnull __sem); | ||
int sem_wait(sem_t* _Nonnull __sem); | ||
|
||
-/* These aren't actually implemented. */ | ||
+#undef sem_open | ||
+#define sem_open libandroid_sem_open | ||
sem_t* sem_open(const char* __name, int _flags, ...); | ||
sem_t* _Nullable sem_open(const char* _Nonnull __name, int _flags, ...); | ||
+#undef sem_close | ||
+#define sem_close libandroid_sem_close | ||
int sem_close(sem_t* __sem); | ||
int sem_close(sem_t* _Nonnull __sem); | ||
+#undef sem_unlink | ||
+#define sem_unlink libandroid_sem_unlink | ||
int sem_unlink(const char* __name); | ||
int sem_unlink(const char* _Nonnull __name); | ||
|
||
__END_DECLS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
--- ./usr/include/stdlib.h.orig 2021-08-16 11:50:47.432239182 +0200 | ||
+++ ./usr/include/stdlib.h 2021-08-16 11:51:31.102222894 +0200 | ||
@@ -33,6 +33,7 @@ | ||
@@ -33,6 +33,9 @@ | ||
#include <bits/wait.h> | ||
#include <malloc.h> | ||
#include <stddef.h> | ||
+#if !defined(__swift__) | ||
+#include <stdint.h> | ||
+#endif | ||
#include <sys/cdefs.h> | ||
#include <xlocale.h> | ||
|
||
@@ -224,8 +225,7 @@ | ||
size_t wcstombs(char* __dst, const wchar_t* __src, size_t __n); | ||
@@ -207,8 +207,7 @@ | ||
|
||
#if __ANDROID_API__ >= 21 | ||
-size_t __ctype_get_mb_cur_max(void) __INTRODUCED_IN(21); | ||
size_t wcstombs(char* _Nullable __dst, const wchar_t* _Nullable __src, size_t __n); | ||
|
||
-size_t __ctype_get_mb_cur_max(void); | ||
-#define MB_CUR_MAX __ctype_get_mb_cur_max() | ||
+#define MB_CUR_MAX 4 | ||
#else | ||
/* | ||
* Pre-L we didn't have any locale support and so we were always the POSIX | ||
|
||
#if defined(__BIONIC_INCLUDE_FORTIFY_HEADERS) | ||
#include <bits/fortify/stdlib.h> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed, the Swift changes are mainly for compiling Swift source on a Termux device with the
ndk-sysroot
package. If you don't use Swift or compile on-device with this 23c sysroot, you don't need it.