diff --git a/third_party/musl/ndk_musl_include/stdio.h b/third_party/musl/ndk_musl_include/stdio.h index e71ae4f8f49fc943fdd780f496092be604411d2a..31e9ca11bbc85911bd0840808883b2d7aeee118b 100644 --- a/third_party/musl/ndk_musl_include/stdio.h +++ b/third_party/musl/ndk_musl_include/stdio.h @@ -153,6 +153,7 @@ int putchar_unlocked(int); ssize_t getdelim(char **__restrict, size_t *__restrict, int, FILE *__restrict); ssize_t getline(char **__restrict, size_t *__restrict, FILE *__restrict); int renameat(int, const char *, int, const char *); +int renameat2(int, const char *, int, const char *, unsigned int); char *ctermid(char *); #define L_ctermid 20 #endif @@ -198,7 +199,7 @@ typedef struct _IO_cookie_io_functions_t { cookie_seek_function_t *seek; cookie_close_function_t *close; } cookie_io_functions_t; - +FILE *fopencookie(void *, const char *, cookie_io_functions_t); #endif #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) diff --git a/third_party/musl/ndk_script/adapter/libc.ndk.json b/third_party/musl/ndk_script/adapter/libc.ndk.json index 41070eecda4bb977a650b3b593d7d405d468a4ec..048a13499e69c2b0798fb765e2ba5030590c3ef1 100644 --- a/third_party/musl/ndk_script/adapter/libc.ndk.json +++ b/third_party/musl/ndk_script/adapter/libc.ndk.json @@ -430,6 +430,7 @@ { "name": "fnmatch" }, { "name": "fopen" }, { "name": "fopen64" }, + { "name": "fopencookie" }, { "name": "fork" }, { "name": "forkpty" }, { "name": "fpathconf" }, @@ -1061,6 +1062,7 @@ { "name": "remquol" }, { "name": "rename" }, { "name": "renameat" }, + { "name": "renameat2" }, { "name": "res_init" }, { "name": "res_mkquery" }, { "name": "res_query" },