19.1: aura and beryllium + some fixes

Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
Tad 2022-04-25 21:27:29 -04:00
parent fe816c691e
commit 13a9997a0c
17 changed files with 167 additions and 24 deletions

View file

@ -59,10 +59,9 @@ index d0c11d2b0..cc94b21e2 100644
cur = &sentinel;
diff --git a/libc/dns/net/hosts_cache.c b/libc/dns/net/hosts_cache.c
new file mode 100644
index 000000000..deafb78b7
--- /dev/null
+++ b/libc/dns/net/hosts_cache.c
@@ -0,0 +1,524 @@
@@ -0,0 +1,520 @@
+/*
+ * Copyright (C) 2016 The CyanogenMod Project
+ *
@ -107,10 +106,6 @@ index 000000000..deafb78b7
+#define ESTIMATED_LINELEN 32
+#define HCFILE_ALLOC_SIZE 256
+
+/* From sethostent.c */
+#define ALIGNBYTES (sizeof(uintptr_t) - 1)
+#define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES)
+
+/*
+ * Host cache entry for hcfile.c_data.
+ * Offsets are into hcfile.h_data.
@ -617,7 +612,6 @@ index 000000000..fa5488f51
+
+int hc_gethtbyname(const char *host, int af, struct getnamaddr *info);
diff --git a/libc/dns/net/sethostent.c b/libc/dns/net/sethostent.c
index 483105a95..1399378cd 100644
--- a/libc/dns/net/sethostent.c
+++ b/libc/dns/net/sethostent.c
@@ -55,6 +55,8 @@ __RCSID("$NetBSD: sethostent.c,v 1.20 2014/03/17 13:24:23 christos Exp $");

View file

@ -13,7 +13,7 @@ Change-Id: If891bfbcc144c9336ba013260bad2b7c7a59c054
4 files changed, 46 insertions(+)
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 01e369779e1e..52103c3a3f99 100644
index dd5776a51f94..87ed442b0f79 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -16378,6 +16378,13 @@ public final class Settings {

View file

@ -9,7 +9,7 @@ Subject: [PATCH] Bluetooth auto turn off
2 files changed, 82 insertions(+)
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 52103c3a3f99..580f9745eea7 100644
index 87ed442b0f79..069ad604024b 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -16385,6 +16385,12 @@ public final class Settings {

View file

@ -9,7 +9,7 @@ Subject: [PATCH] Wi-Fi auto turn off
2 files changed, 75 insertions(+)
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 580f9745eea7..1d8745501553 100644
index 069ad604024b..88bf06c5a1b2 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -16379,6 +16379,12 @@ public final class Settings {

View file

@ -170,6 +170,3 @@ index a940165bed..dbb9987f0c 100644
controllers.add(new PreferenceCategoryController(context, SECURITY_CATEGORY)
.setChildren(securityPreferenceControllers));
controllers.addAll(securityPreferenceControllers);
--
2.36.0

View file

@ -10,7 +10,7 @@ Change-Id: Iea165003474e1107dc77980985bf9928c369dbb5
1 file changed, 4 insertions(+)
diff --git a/getaddrinfo.cpp b/getaddrinfo.cpp
index 071f6ac..955b5c2 100644
index f0c0ba8..8548b1a 100644
--- a/getaddrinfo.cpp
+++ b/getaddrinfo.cpp
@@ -57,6 +57,7 @@
@ -21,7 +21,7 @@ index 071f6ac..955b5c2 100644
#include "Experiments.h"
#include "netd_resolv/resolv.h"
@@ -1556,6 +1557,9 @@ static struct addrinfo* getCustomHosts(const size_t netid, const char* _Nonnull
@@ -1554,6 +1555,9 @@ static struct addrinfo* getCustomHosts(const size_t netid, const char* _Nonnull
static bool files_getaddrinfo(const size_t netid, const char* name, const addrinfo* pai,
addrinfo** res) {