mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-24 19:42:47 +00:00
30 lines
1.5 KiB
Diff
30 lines
1.5 KiB
Diff
diff -u -r /home/builder/lib/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/grp.h ./usr/include/grp.h
|
|
--- /home/builder/lib/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/grp.h 2024-11-14 00:52:25.000000000 +0000
|
|
+++ ./usr/include/grp.h 2025-05-09 18:38:52.409001807 +0000
|
|
@@ -50,21 +50,15 @@
|
|
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 __BIONIC_AVAILABILITY_GUARD(26)
|
|
-struct group* _Nullable getgrent(void) __INTRODUCED_IN(26);
|
|
-
|
|
-void setgrent(void) __INTRODUCED_IN(26);
|
|
-void endgrent(void) __INTRODUCED_IN(26);
|
|
-#endif /* __BIONIC_AVAILABILITY_GUARD(26) */
|
|
-
|
|
-
|
|
#if __BIONIC_AVAILABILITY_GUARD(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 /* __BIONIC_AVAILABILITY_GUARD(24) */
|
|
|
|
+static struct group* _Nullable getgrent(void) { return 0; }
|
|
+static void setgrent(void) {}
|
|
+static void endgrent(void) {}
|
|
+
|
|
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);
|
|
|