Add missing symbols to android-17 libc

This affects libc.so for android-17 and 19

Symbols missing from NDK libc but present in the
platform version of libc:

__fgets_chk
__memcpy_chk
__memmove_chk
__memset_chk
__open_2
__openat_2
__snprintf_chk
__sprintf_chk
__strcat_chk
__strcpy_chk
__strlcat_chk
__strlcpy_chk
__strlen_chk
__strncat_chk
__strncpy_chk
__vsnprintf_chk
__vsprintf_chk
clone # x86 only
ftw
getsid
malloc_usable_size
mlockall
munlockall
nftw
psiginfo
psignal
pvalloc
unshare

Bug: http://b/28864994
Change-Id: I31ddaf44e2ae685d45de5ca217ba3096a3f6e5ec
diff --git a/ndk/platforms/android-17/arch-arm/symbols/libc.so.functions.txt b/ndk/platforms/android-17/arch-arm/symbols/libc.so.functions.txt
index 0cf47b2..86dd695 100644
--- a/ndk/platforms/android-17/arch-arm/symbols/libc.so.functions.txt
+++ b/ndk/platforms/android-17/arch-arm/symbols/libc.so.functions.txt
@@ -27,6 +27,7 @@
 __dn_skipname
 __errno
 __fcntl64
+__fgets_chk
 __fp_nquery
 __fp_query
 __fpclassifyd
@@ -54,6 +55,9 @@
 __llseek
 __loc_aton
 __loc_ntoa
+__memcpy_chk
+__memmove_chk
+__memset_chk
 __mmap2
 __ns_format_ttl
 __ns_get16
@@ -77,7 +81,9 @@
 __ns_skiprr
 __ns_sprintrr
 __ns_sprintrrf
+__open_2
 __openat
+__openat_2
 __p_cdname
 __p_cdnname
 __p_class
@@ -123,8 +129,17 @@
 __sched_cpufree
 __sched_getaffinity
 __set_tls
+__snprintf_chk
+__sprintf_chk
 __stack_chk_fail
 __statfs64
+__strcat_chk
+__strcpy_chk
+__strlcat_chk
+__strlcpy_chk
+__strlen_chk
+__strncat_chk
+__strncpy_chk
 __sym_ntop
 __sym_ntos
 __sym_ston
@@ -139,6 +154,8 @@
 __timer_getoverrun
 __timer_gettime
 __timer_settime
+__vsnprintf_chk
+__vsprintf_chk
 __waitid
 _exit
 _getlong
@@ -289,6 +306,7 @@
 fts_open
 fts_read
 fts_set
+ftw
 funlockfile
 funopen
 fwide
@@ -346,6 +364,7 @@
 getservbyname
 getservbyport
 getservent
+getsid
 getsockname
 getsockopt
 gettid
@@ -431,6 +450,7 @@
 madvise
 mallinfo
 malloc
+malloc_usable_size
 mbrlen
 mbrtowc
 mbsinit
@@ -456,6 +476,7 @@
 mktime
 mktime64
 mlock
+mlockall
 mmap
 mount
 mprotect
@@ -463,8 +484,10 @@
 mremap
 msync
 munlock
+munlockall
 munmap
 nanosleep
+nftw
 nice
 nrand48
 nsdispatch
@@ -487,6 +510,8 @@
 pread64
 printf
 pselect
+psiginfo
+psignal
 pthread_atfork
 pthread_attr_destroy
 pthread_attr_getdetachstate
@@ -574,6 +599,7 @@
 putw
 putwc
 putwchar
+pvalloc
 pwrite
 pwrite64
 qsort
@@ -771,6 +797,7 @@
 unlinkat
 unlockpt
 unsetenv
+unshare
 usleep
 utime
 utimensat
diff --git a/ndk/platforms/android-17/arch-arm/symbols/libc.so.versions.txt b/ndk/platforms/android-17/arch-arm/symbols/libc.so.versions.txt
index 78979f2..cc308a1 100644
--- a/ndk/platforms/android-17/arch-arm/symbols/libc.so.versions.txt
+++ b/ndk/platforms/android-17/arch-arm/symbols/libc.so.versions.txt
@@ -17,6 +17,7 @@
     __dn_skipname;
     __errno;
     __fcntl64; # arm x86 mips
+    __fgets_chk;
     __fp_nquery;
     __fp_query;
     __fpclassifyd;
@@ -44,6 +45,9 @@
     __llseek; # arm x86 mips
     __loc_aton;
     __loc_ntoa;
+    __memcpy_chk;
+    __memmove_chk;
+    __memset_chk;
     __mmap2; # arm x86 mips
     __ns_format_ttl; # arm x86 mips
     __ns_get16; # arm x86 mips
@@ -67,7 +71,9 @@
     __ns_skiprr; # arm x86 mips
     __ns_sprintrr; # arm x86 mips
     __ns_sprintrrf; # arm x86 mips
+    __open_2;
     __openat; # arm x86 mips
+    __openat_2;
     __p_cdname;
     __p_cdnname;
     __p_class;
@@ -117,9 +123,18 @@
     __sched_getaffinity; # arm x86 mips
     __set_tls; # arm mips
     __sF;
+    __snprintf_chk;
+    __sprintf_chk;
     __stack_chk_fail;
     __stack_chk_guard;
     __statfs64; # arm x86 mips
+    __strcat_chk;
+    __strcpy_chk;
+    __strlcat_chk;
+    __strlcpy_chk;
+    __strlen_chk;
+    __strncat_chk;
+    __strncpy_chk;
     __sym_ntop;
     __sym_ntos;
     __sym_ston;
@@ -135,6 +150,8 @@
     __timer_getoverrun; # arm x86 mips
     __timer_gettime; # arm x86 mips
     __timer_settime; # arm x86 mips
+    __vsnprintf_chk;
+    __vsprintf_chk;
     __waitid; # arm x86 mips
     _ctype_;
     _exit;
@@ -289,6 +306,7 @@
     fts_open;
     fts_read;
     fts_set;
+    ftw;
     funlockfile;
     funopen;
     fwide;
@@ -346,6 +364,7 @@
     getservbyname;
     getservbyport;
     getservent;
+    getsid;
     getsockname;
     getsockopt;
     gettid;
@@ -431,6 +450,7 @@
     madvise;
     mallinfo;
     malloc;
+    malloc_usable_size;
     mbrlen;
     mbrtowc;
     mbsinit;
@@ -456,6 +476,7 @@
     mktime;
     mktime64; # arm x86 mips
     mlock;
+    mlockall;
     mmap;
     mount;
     mprotect;
@@ -463,8 +484,10 @@
     mremap;
     msync;
     munlock;
+    munlockall;
     munmap;
     nanosleep;
+    nftw;
     nice;
     nrand48;
     nsdispatch;
@@ -492,6 +515,8 @@
     pread64;
     printf;
     pselect;
+    psiginfo;
+    psignal;
     pthread_atfork;
     pthread_attr_destroy;
     pthread_attr_getdetachstate;
@@ -579,6 +604,7 @@
     putw; # arm x86 mips
     putwc;
     putwchar;
+    pvalloc; # arm x86 mips
     pwrite;
     pwrite64;
     qsort;
@@ -780,6 +806,7 @@
     unlinkat;
     unlockpt;
     unsetenv;
+    unshare;
     usleep;
     utime;
     utimensat;
diff --git a/ndk/platforms/android-17/arch-mips/symbols/libc.so.functions.txt b/ndk/platforms/android-17/arch-mips/symbols/libc.so.functions.txt
index 7295836..36e5b0e 100644
--- a/ndk/platforms/android-17/arch-mips/symbols/libc.so.functions.txt
+++ b/ndk/platforms/android-17/arch-mips/symbols/libc.so.functions.txt
@@ -10,6 +10,7 @@
 __dn_skipname
 __errno
 __fcntl64
+__fgets_chk
 __fp_nquery
 __fp_query
 __fpclassifyd
@@ -36,6 +37,9 @@
 __llseek
 __loc_aton
 __loc_ntoa
+__memcpy_chk
+__memmove_chk
+__memset_chk
 __mmap2
 __ns_format_ttl
 __ns_get16
@@ -59,7 +63,9 @@
 __ns_skiprr
 __ns_sprintrr
 __ns_sprintrrf
+__open_2
 __openat
+__openat_2
 __p_cdname
 __p_cdnname
 __p_class
@@ -105,8 +111,17 @@
 __sched_cpufree
 __sched_getaffinity
 __set_tls
+__snprintf_chk
+__sprintf_chk
 __stack_chk_fail
 __statfs64
+__strcat_chk
+__strcpy_chk
+__strlcat_chk
+__strlcpy_chk
+__strlen_chk
+__strncat_chk
+__strncpy_chk
 __sym_ntop
 __sym_ntos
 __sym_ston
@@ -121,6 +136,8 @@
 __timer_getoverrun
 __timer_gettime
 __timer_settime
+__vsnprintf_chk
+__vsprintf_chk
 __waitid
 _exit
 _flush_cache
@@ -272,6 +289,7 @@
 fts_open
 fts_read
 fts_set
+ftw
 funlockfile
 funopen
 fwide
@@ -329,6 +347,7 @@
 getservbyname
 getservbyport
 getservent
+getsid
 getsockname
 getsockopt
 gettid
@@ -414,6 +433,7 @@
 madvise
 mallinfo
 malloc
+malloc_usable_size
 mbrlen
 mbrtowc
 mbsinit
@@ -439,6 +459,7 @@
 mktime
 mktime64
 mlock
+mlockall
 mmap
 mount
 mprotect
@@ -446,8 +467,10 @@
 mremap
 msync
 munlock
+munlockall
 munmap
 nanosleep
+nftw
 nice
 nrand48
 nsdispatch
@@ -470,6 +493,8 @@
 pread64
 printf
 pselect
+psiginfo
+psignal
 pthread_atfork
 pthread_attr_destroy
 pthread_attr_getdetachstate
@@ -557,6 +582,7 @@
 putw
 putwc
 putwchar
+pvalloc
 pwrite
 pwrite64
 qsort
@@ -754,6 +780,7 @@
 unlinkat
 unlockpt
 unsetenv
+unshare
 usleep
 utime
 utimensat
diff --git a/ndk/platforms/android-17/arch-mips/symbols/libc.so.versions.txt b/ndk/platforms/android-17/arch-mips/symbols/libc.so.versions.txt
index 77e2564..20e019b 100644
--- a/ndk/platforms/android-17/arch-mips/symbols/libc.so.versions.txt
+++ b/ndk/platforms/android-17/arch-mips/symbols/libc.so.versions.txt
@@ -13,6 +13,7 @@
     __dn_skipname;
     __errno;
     __fcntl64; # arm x86 mips
+    __fgets_chk;
     __fp_nquery;
     __fp_query;
     __fpclassifyd;
@@ -40,6 +41,9 @@
     __llseek; # arm x86 mips
     __loc_aton;
     __loc_ntoa;
+    __memcpy_chk;
+    __memmove_chk;
+    __memset_chk;
     __mmap2; # arm x86 mips
     __ns_format_ttl; # arm x86 mips
     __ns_get16; # arm x86 mips
@@ -63,7 +67,9 @@
     __ns_skiprr; # arm x86 mips
     __ns_sprintrr; # arm x86 mips
     __ns_sprintrrf; # arm x86 mips
+    __open_2;
     __openat; # arm x86 mips
+    __openat_2;
     __p_cdname;
     __p_cdnname;
     __p_class;
@@ -113,9 +119,18 @@
     __sched_getaffinity; # arm x86 mips
     __set_tls; # arm mips
     __sF;
+    __snprintf_chk;
+    __sprintf_chk;
     __stack_chk_fail;
     __stack_chk_guard;
     __statfs64; # arm x86 mips
+    __strcat_chk;
+    __strcpy_chk;
+    __strlcat_chk;
+    __strlcpy_chk;
+    __strlen_chk;
+    __strncat_chk;
+    __strncpy_chk;
     __sym_ntop;
     __sym_ntos;
     __sym_ston;
@@ -131,6 +146,8 @@
     __timer_getoverrun; # arm x86 mips
     __timer_gettime; # arm x86 mips
     __timer_settime; # arm x86 mips
+    __vsnprintf_chk;
+    __vsprintf_chk;
     __waitid; # arm x86 mips
     _ctype_;
     _exit;
@@ -286,6 +303,7 @@
     fts_open;
     fts_read;
     fts_set;
+    ftw;
     funlockfile;
     funopen;
     fwide;
@@ -343,6 +361,7 @@
     getservbyname;
     getservbyport;
     getservent;
+    getsid;
     getsockname;
     getsockopt;
     gettid;
@@ -428,6 +447,7 @@
     madvise;
     mallinfo;
     malloc;
+    malloc_usable_size;
     mbrlen;
     mbrtowc;
     mbsinit;
@@ -453,6 +473,7 @@
     mktime;
     mktime64; # arm x86 mips
     mlock;
+    mlockall;
     mmap;
     mount;
     mprotect;
@@ -460,8 +481,10 @@
     mremap;
     msync;
     munlock;
+    munlockall;
     munmap;
     nanosleep;
+    nftw;
     nice;
     nrand48;
     nsdispatch;
@@ -489,6 +512,8 @@
     pread64;
     printf;
     pselect;
+    psiginfo;
+    psignal;
     pthread_atfork;
     pthread_attr_destroy;
     pthread_attr_getdetachstate;
@@ -576,6 +601,7 @@
     putw; # arm x86 mips
     putwc;
     putwchar;
+    pvalloc; # arm x86 mips
     pwrite;
     pwrite64;
     qsort;
@@ -777,6 +803,7 @@
     unlinkat;
     unlockpt;
     unsetenv;
+    unshare;
     usleep;
     utime;
     utimensat;
diff --git a/ndk/platforms/android-17/arch-x86/symbols/libc.so.functions.txt b/ndk/platforms/android-17/arch-x86/symbols/libc.so.functions.txt
index bade5c2..a71f32c 100644
--- a/ndk/platforms/android-17/arch-x86/symbols/libc.so.functions.txt
+++ b/ndk/platforms/android-17/arch-x86/symbols/libc.so.functions.txt
@@ -10,6 +10,7 @@
 __dn_skipname
 __errno
 __fcntl64
+__fgets_chk
 __fp_nquery
 __fp_query
 __fpclassifyd
@@ -36,6 +37,9 @@
 __llseek
 __loc_aton
 __loc_ntoa
+__memcpy_chk
+__memmove_chk
+__memset_chk
 __mmap2
 __ns_format_ttl
 __ns_get16
@@ -59,7 +63,9 @@
 __ns_skiprr
 __ns_sprintrr
 __ns_sprintrrf
+__open_2
 __openat
+__openat_2
 __p_cdname
 __p_cdnname
 __p_class
@@ -105,8 +111,17 @@
 __sched_cpufree
 __sched_getaffinity
 __set_thread_area
+__snprintf_chk
+__sprintf_chk
 __stack_chk_fail
 __statfs64
+__strcat_chk
+__strcpy_chk
+__strlcat_chk
+__strlcpy_chk
+__strlen_chk
+__strncat_chk
+__strncpy_chk
 __sym_ntop
 __sym_ntos
 __sym_ston
@@ -121,6 +136,8 @@
 __timer_getoverrun
 __timer_gettime
 __timer_settime
+__vsnprintf_chk
+__vsprintf_chk
 __waitid
 _exit
 _getlong
@@ -166,6 +183,7 @@
 clock_gettime
 clock_nanosleep
 clock_settime
+clone
 close
 closedir
 closelog
@@ -268,6 +286,7 @@
 fts_open
 fts_read
 fts_set
+ftw
 funlockfile
 funopen
 fwide
@@ -325,6 +344,7 @@
 getservbyname
 getservbyport
 getservent
+getsid
 getsockname
 getsockopt
 gettid
@@ -410,6 +430,7 @@
 madvise
 mallinfo
 malloc
+malloc_usable_size
 mbrlen
 mbrtowc
 mbsinit
@@ -435,6 +456,7 @@
 mktime
 mktime64
 mlock
+mlockall
 mmap
 mount
 mprotect
@@ -442,8 +464,10 @@
 mremap
 msync
 munlock
+munlockall
 munmap
 nanosleep
+nftw
 nice
 nrand48
 nsdispatch
@@ -466,6 +490,8 @@
 pread64
 printf
 pselect
+psiginfo
+psignal
 pthread_atfork
 pthread_attr_destroy
 pthread_attr_getdetachstate
@@ -553,6 +579,7 @@
 putw
 putwc
 putwchar
+pvalloc
 pwrite
 pwrite64
 qsort
@@ -750,6 +777,7 @@
 unlinkat
 unlockpt
 unsetenv
+unshare
 usleep
 utime
 utimensat
diff --git a/ndk/platforms/android-17/arch-x86/symbols/libc.so.versions.txt b/ndk/platforms/android-17/arch-x86/symbols/libc.so.versions.txt
index 3c46db4..dd4af3d 100644
--- a/ndk/platforms/android-17/arch-x86/symbols/libc.so.versions.txt
+++ b/ndk/platforms/android-17/arch-x86/symbols/libc.so.versions.txt
@@ -13,6 +13,7 @@
     __dn_skipname;
     __errno;
     __fcntl64; # arm x86 mips
+    __fgets_chk;
     __fp_nquery;
     __fp_query;
     __fpclassifyd;
@@ -40,6 +41,9 @@
     __llseek; # arm x86 mips
     __loc_aton;
     __loc_ntoa;
+    __memcpy_chk;
+    __memmove_chk;
+    __memset_chk;
     __mmap2; # arm x86 mips
     __ns_format_ttl; # arm x86 mips
     __ns_get16; # arm x86 mips
@@ -63,7 +67,9 @@
     __ns_skiprr; # arm x86 mips
     __ns_sprintrr; # arm x86 mips
     __ns_sprintrrf; # arm x86 mips
+    __open_2;
     __openat; # arm x86 mips
+    __openat_2;
     __p_cdname;
     __p_cdnname;
     __p_class;
@@ -113,9 +119,18 @@
     __sched_getaffinity; # arm x86 mips
     __set_thread_area; # x86
     __sF;
+    __snprintf_chk;
+    __sprintf_chk;
     __stack_chk_fail;
     __stack_chk_guard;
     __statfs64; # arm x86 mips
+    __strcat_chk;
+    __strcpy_chk;
+    __strlcat_chk;
+    __strlcpy_chk;
+    __strlen_chk;
+    __strncat_chk;
+    __strncpy_chk;
     __sym_ntop;
     __sym_ntos;
     __sym_ston;
@@ -131,6 +146,8 @@
     __timer_getoverrun; # arm x86 mips
     __timer_gettime; # arm x86 mips
     __timer_settime; # arm x86 mips
+    __vsnprintf_chk;
+    __vsprintf_chk;
     __waitid; # arm x86 mips
     _ctype_;
     _exit;
@@ -178,6 +195,7 @@
     clock_gettime;
     clock_nanosleep;
     clock_settime;
+    clone;
     close;
     closedir;
     closelog;
@@ -282,6 +300,7 @@
     fts_open;
     fts_read;
     fts_set;
+    ftw;
     funlockfile;
     funopen;
     fwide;
@@ -339,6 +358,7 @@
     getservbyname;
     getservbyport;
     getservent;
+    getsid;
     getsockname;
     getsockopt;
     gettid;
@@ -424,6 +444,7 @@
     madvise;
     mallinfo;
     malloc;
+    malloc_usable_size;
     mbrlen;
     mbrtowc;
     mbsinit;
@@ -449,6 +470,7 @@
     mktime;
     mktime64; # arm x86 mips
     mlock;
+    mlockall;
     mmap;
     mount;
     mprotect;
@@ -456,8 +478,10 @@
     mremap;
     msync;
     munlock;
+    munlockall;
     munmap;
     nanosleep;
+    nftw;
     nice;
     nrand48;
     nsdispatch;
@@ -485,6 +509,8 @@
     pread64;
     printf;
     pselect;
+    psiginfo;
+    psignal;
     pthread_atfork;
     pthread_attr_destroy;
     pthread_attr_getdetachstate;
@@ -572,6 +598,7 @@
     putw; # arm x86 mips
     putwc;
     putwchar;
+    pvalloc; # arm x86 mips
     pwrite;
     pwrite64;
     qsort;
@@ -773,6 +800,7 @@
     unlinkat;
     unlockpt;
     unsetenv;
+    unshare;
     usleep;
     utime;
     utimensat;
diff --git a/ndk/platforms/android-19/arch-arm/symbols/libc.so.functions.txt b/ndk/platforms/android-19/arch-arm/symbols/libc.so.functions.txt
index a95b249..1a81de7 100644
--- a/ndk/platforms/android-19/arch-arm/symbols/libc.so.functions.txt
+++ b/ndk/platforms/android-19/arch-arm/symbols/libc.so.functions.txt
@@ -27,6 +27,7 @@
 __dn_skipname
 __errno
 __fcntl64
+__fgets_chk
 __fp_nquery
 __fp_query
 __fpclassifyd
@@ -54,6 +55,9 @@
 __llseek
 __loc_aton
 __loc_ntoa
+__memcpy_chk
+__memmove_chk
+__memset_chk
 __mmap2
 __ns_format_ttl
 __ns_get16
@@ -77,7 +81,9 @@
 __ns_skiprr
 __ns_sprintrr
 __ns_sprintrrf
+__open_2
 __openat
+__openat_2
 __p_cdname
 __p_cdnname
 __p_class
@@ -123,8 +129,17 @@
 __sched_cpufree
 __sched_getaffinity
 __set_tls
+__snprintf_chk
+__sprintf_chk
 __stack_chk_fail
 __statfs64
+__strcat_chk
+__strcpy_chk
+__strlcat_chk
+__strlcpy_chk
+__strlen_chk
+__strncat_chk
+__strncpy_chk
 __sym_ntop
 __sym_ntos
 __sym_ston
@@ -139,6 +154,8 @@
 __timer_getoverrun
 __timer_gettime
 __timer_settime
+__vsnprintf_chk
+__vsprintf_chk
 __waitid
 _exit
 _getlong
@@ -289,6 +306,7 @@
 fts_open
 fts_read
 fts_set
+ftw
 funlockfile
 funopen
 futimens
@@ -347,6 +365,7 @@
 getservbyname
 getservbyport
 getservent
+getsid
 getsockname
 getsockopt
 gettid
@@ -432,6 +451,7 @@
 madvise
 mallinfo
 malloc
+malloc_usable_size
 mbrlen
 mbrtowc
 mbsinit
@@ -457,6 +477,7 @@
 mktime
 mktime64
 mlock
+mlockall
 mmap
 mount
 mprotect
@@ -464,8 +485,10 @@
 mremap
 msync
 munlock
+munlockall
 munmap
 nanosleep
+nftw
 nice
 nrand48
 nsdispatch
@@ -488,6 +511,8 @@
 pread64
 printf
 pselect
+psiginfo
+psignal
 pthread_atfork
 pthread_attr_destroy
 pthread_attr_getdetachstate
@@ -575,6 +600,7 @@
 putw
 putwc
 putwchar
+pvalloc
 pwrite
 pwrite64
 qsort
@@ -772,6 +798,7 @@
 unlinkat
 unlockpt
 unsetenv
+unshare
 usleep
 utime
 utimensat
diff --git a/ndk/platforms/android-19/arch-arm/symbols/libc.so.versions.txt b/ndk/platforms/android-19/arch-arm/symbols/libc.so.versions.txt
index a3c454b..237515c 100644
--- a/ndk/platforms/android-19/arch-arm/symbols/libc.so.versions.txt
+++ b/ndk/platforms/android-19/arch-arm/symbols/libc.so.versions.txt
@@ -17,6 +17,7 @@
     __dn_skipname;
     __errno;
     __fcntl64; # arm x86 mips
+    __fgets_chk;
     __fp_nquery;
     __fp_query;
     __fpclassifyd;
@@ -44,6 +45,9 @@
     __llseek; # arm x86 mips
     __loc_aton;
     __loc_ntoa;
+    __memcpy_chk;
+    __memmove_chk;
+    __memset_chk;
     __mmap2; # arm x86 mips
     __ns_format_ttl; # arm x86 mips
     __ns_get16; # arm x86 mips
@@ -67,7 +71,9 @@
     __ns_skiprr; # arm x86 mips
     __ns_sprintrr; # arm x86 mips
     __ns_sprintrrf; # arm x86 mips
+    __open_2;
     __openat; # arm x86 mips
+    __openat_2;
     __p_cdname;
     __p_cdnname;
     __p_class;
@@ -117,9 +123,18 @@
     __sched_getaffinity; # arm x86 mips
     __set_tls; # arm mips
     __sF;
+    __snprintf_chk;
+    __sprintf_chk;
     __stack_chk_fail;
     __stack_chk_guard;
     __statfs64; # arm x86 mips
+    __strcat_chk;
+    __strcpy_chk;
+    __strlcat_chk;
+    __strlcpy_chk;
+    __strlen_chk;
+    __strncat_chk;
+    __strncpy_chk;
     __sym_ntop;
     __sym_ntos;
     __sym_ston;
@@ -135,6 +150,8 @@
     __timer_getoverrun; # arm x86 mips
     __timer_gettime; # arm x86 mips
     __timer_settime; # arm x86 mips
+    __vsnprintf_chk;
+    __vsprintf_chk;
     __waitid; # arm x86 mips
     _ctype_;
     _exit;
@@ -289,6 +306,7 @@
     fts_open;
     fts_read;
     fts_set;
+    ftw;
     funlockfile;
     funopen;
     futimens;
@@ -347,6 +365,7 @@
     getservbyname;
     getservbyport;
     getservent;
+    getsid;
     getsockname;
     getsockopt;
     gettid;
@@ -432,6 +451,7 @@
     madvise;
     mallinfo;
     malloc;
+    malloc_usable_size;
     mbrlen;
     mbrtowc;
     mbsinit;
@@ -457,6 +477,7 @@
     mktime;
     mktime64; # arm x86 mips
     mlock;
+    mlockall;
     mmap;
     mount;
     mprotect;
@@ -464,8 +485,10 @@
     mremap;
     msync;
     munlock;
+    munlockall;
     munmap;
     nanosleep;
+    nftw;
     nice;
     nrand48;
     nsdispatch;
@@ -493,6 +516,8 @@
     pread64;
     printf;
     pselect;
+    psiginfo;
+    psignal;
     pthread_atfork;
     pthread_attr_destroy;
     pthread_attr_getdetachstate;
@@ -580,6 +605,7 @@
     putw; # arm x86 mips
     putwc;
     putwchar;
+    pvalloc; # arm x86 mips
     pwrite;
     pwrite64;
     qsort;
@@ -781,6 +807,7 @@
     unlinkat;
     unlockpt;
     unsetenv;
+    unshare;
     usleep;
     utime;
     utimensat;
diff --git a/ndk/platforms/android-19/arch-mips/symbols/libc.so.functions.txt b/ndk/platforms/android-19/arch-mips/symbols/libc.so.functions.txt
index a2a9321..d675d92 100644
--- a/ndk/platforms/android-19/arch-mips/symbols/libc.so.functions.txt
+++ b/ndk/platforms/android-19/arch-mips/symbols/libc.so.functions.txt
@@ -10,6 +10,7 @@
 __dn_skipname
 __errno
 __fcntl64
+__fgets_chk
 __fp_nquery
 __fp_query
 __fpclassifyd
@@ -36,6 +37,9 @@
 __llseek
 __loc_aton
 __loc_ntoa
+__memcpy_chk
+__memmove_chk
+__memset_chk
 __mmap2
 __ns_format_ttl
 __ns_get16
@@ -59,7 +63,9 @@
 __ns_skiprr
 __ns_sprintrr
 __ns_sprintrrf
+__open_2
 __openat
+__openat_2
 __p_cdname
 __p_cdnname
 __p_class
@@ -105,8 +111,17 @@
 __sched_cpufree
 __sched_getaffinity
 __set_tls
+__snprintf_chk
+__sprintf_chk
 __stack_chk_fail
 __statfs64
+__strcat_chk
+__strcpy_chk
+__strlcat_chk
+__strlcpy_chk
+__strlen_chk
+__strncat_chk
+__strncpy_chk
 __sym_ntop
 __sym_ntos
 __sym_ston
@@ -121,6 +136,8 @@
 __timer_getoverrun
 __timer_gettime
 __timer_settime
+__vsnprintf_chk
+__vsprintf_chk
 __waitid
 _exit
 _flush_cache
@@ -272,6 +289,7 @@
 fts_open
 fts_read
 fts_set
+ftw
 funlockfile
 funopen
 futimens
@@ -330,6 +348,7 @@
 getservbyname
 getservbyport
 getservent
+getsid
 getsockname
 getsockopt
 gettid
@@ -415,6 +434,7 @@
 madvise
 mallinfo
 malloc
+malloc_usable_size
 mbrlen
 mbrtowc
 mbsinit
@@ -440,6 +460,7 @@
 mktime
 mktime64
 mlock
+mlockall
 mmap
 mount
 mprotect
@@ -447,8 +468,10 @@
 mremap
 msync
 munlock
+munlockall
 munmap
 nanosleep
+nftw
 nice
 nrand48
 nsdispatch
@@ -471,6 +494,8 @@
 pread64
 printf
 pselect
+psiginfo
+psignal
 pthread_atfork
 pthread_attr_destroy
 pthread_attr_getdetachstate
@@ -558,6 +583,7 @@
 putw
 putwc
 putwchar
+pvalloc
 pwrite
 pwrite64
 qsort
@@ -755,6 +781,7 @@
 unlinkat
 unlockpt
 unsetenv
+unshare
 usleep
 utime
 utimensat
diff --git a/ndk/platforms/android-19/arch-mips/symbols/libc.so.versions.txt b/ndk/platforms/android-19/arch-mips/symbols/libc.so.versions.txt
index 30e6d81..13cd0a0 100644
--- a/ndk/platforms/android-19/arch-mips/symbols/libc.so.versions.txt
+++ b/ndk/platforms/android-19/arch-mips/symbols/libc.so.versions.txt
@@ -13,6 +13,7 @@
     __dn_skipname;
     __errno;
     __fcntl64; # arm x86 mips
+    __fgets_chk;
     __fp_nquery;
     __fp_query;
     __fpclassifyd;
@@ -40,6 +41,9 @@
     __llseek; # arm x86 mips
     __loc_aton;
     __loc_ntoa;
+    __memcpy_chk;
+    __memmove_chk;
+    __memset_chk;
     __mmap2; # arm x86 mips
     __ns_format_ttl; # arm x86 mips
     __ns_get16; # arm x86 mips
@@ -63,7 +67,9 @@
     __ns_skiprr; # arm x86 mips
     __ns_sprintrr; # arm x86 mips
     __ns_sprintrrf; # arm x86 mips
+    __open_2;
     __openat; # arm x86 mips
+    __openat_2;
     __p_cdname;
     __p_cdnname;
     __p_class;
@@ -113,9 +119,18 @@
     __sched_getaffinity; # arm x86 mips
     __set_tls; # arm mips
     __sF;
+    __snprintf_chk;
+    __sprintf_chk;
     __stack_chk_fail;
     __stack_chk_guard;
     __statfs64; # arm x86 mips
+    __strcat_chk;
+    __strcpy_chk;
+    __strlcat_chk;
+    __strlcpy_chk;
+    __strlen_chk;
+    __strncat_chk;
+    __strncpy_chk;
     __sym_ntop;
     __sym_ntos;
     __sym_ston;
@@ -131,6 +146,8 @@
     __timer_getoverrun; # arm x86 mips
     __timer_gettime; # arm x86 mips
     __timer_settime; # arm x86 mips
+    __vsnprintf_chk;
+    __vsprintf_chk;
     __waitid; # arm x86 mips
     _ctype_;
     _exit;
@@ -286,6 +303,7 @@
     fts_open;
     fts_read;
     fts_set;
+    ftw;
     funlockfile;
     funopen;
     futimens;
@@ -344,6 +362,7 @@
     getservbyname;
     getservbyport;
     getservent;
+    getsid;
     getsockname;
     getsockopt;
     gettid;
@@ -429,6 +448,7 @@
     madvise;
     mallinfo;
     malloc;
+    malloc_usable_size;
     mbrlen;
     mbrtowc;
     mbsinit;
@@ -454,6 +474,7 @@
     mktime;
     mktime64; # arm x86 mips
     mlock;
+    mlockall;
     mmap;
     mount;
     mprotect;
@@ -461,8 +482,10 @@
     mremap;
     msync;
     munlock;
+    munlockall;
     munmap;
     nanosleep;
+    nftw;
     nice;
     nrand48;
     nsdispatch;
@@ -490,6 +513,8 @@
     pread64;
     printf;
     pselect;
+    psiginfo;
+    psignal;
     pthread_atfork;
     pthread_attr_destroy;
     pthread_attr_getdetachstate;
@@ -577,6 +602,7 @@
     putw; # arm x86 mips
     putwc;
     putwchar;
+    pvalloc; # arm x86 mips
     pwrite;
     pwrite64;
     qsort;
@@ -778,6 +804,7 @@
     unlinkat;
     unlockpt;
     unsetenv;
+    unshare;
     usleep;
     utime;
     utimensat;
diff --git a/ndk/platforms/android-19/arch-x86/symbols/libc.so.functions.txt b/ndk/platforms/android-19/arch-x86/symbols/libc.so.functions.txt
index 1ea9093..724c46b 100644
--- a/ndk/platforms/android-19/arch-x86/symbols/libc.so.functions.txt
+++ b/ndk/platforms/android-19/arch-x86/symbols/libc.so.functions.txt
@@ -10,6 +10,7 @@
 __dn_skipname
 __errno
 __fcntl64
+__fgets_chk
 __fp_nquery
 __fp_query
 __fpclassifyd
@@ -36,6 +37,9 @@
 __llseek
 __loc_aton
 __loc_ntoa
+__memcpy_chk
+__memmove_chk
+__memset_chk
 __mmap2
 __ns_format_ttl
 __ns_get16
@@ -59,7 +63,9 @@
 __ns_skiprr
 __ns_sprintrr
 __ns_sprintrrf
+__open_2
 __openat
+__openat_2
 __p_cdname
 __p_cdnname
 __p_class
@@ -105,8 +111,17 @@
 __sched_cpufree
 __sched_getaffinity
 __set_thread_area
+__snprintf_chk
+__sprintf_chk
 __stack_chk_fail
 __statfs64
+__strcat_chk
+__strcpy_chk
+__strlcat_chk
+__strlcpy_chk
+__strlen_chk
+__strncat_chk
+__strncpy_chk
 __sym_ntop
 __sym_ntos
 __sym_ston
@@ -121,6 +136,8 @@
 __timer_getoverrun
 __timer_gettime
 __timer_settime
+__vsnprintf_chk
+__vsprintf_chk
 __waitid
 _exit
 _getlong
@@ -269,6 +286,7 @@
 fts_open
 fts_read
 fts_set
+ftw
 funlockfile
 funopen
 futimens
@@ -327,6 +345,7 @@
 getservbyname
 getservbyport
 getservent
+getsid
 getsockname
 getsockopt
 gettid
@@ -412,6 +431,7 @@
 madvise
 mallinfo
 malloc
+malloc_usable_size
 mbrlen
 mbrtowc
 mbsinit
@@ -437,6 +457,7 @@
 mktime
 mktime64
 mlock
+mlockall
 mmap
 mount
 mprotect
@@ -444,8 +465,10 @@
 mremap
 msync
 munlock
+munlockall
 munmap
 nanosleep
+nftw
 nice
 nrand48
 nsdispatch
@@ -468,6 +491,8 @@
 pread64
 printf
 pselect
+psiginfo
+psignal
 pthread_atfork
 pthread_attr_destroy
 pthread_attr_getdetachstate
@@ -555,6 +580,7 @@
 putw
 putwc
 putwchar
+pvalloc
 pwrite
 pwrite64
 qsort
@@ -752,6 +778,7 @@
 unlinkat
 unlockpt
 unsetenv
+unshare
 usleep
 utime
 utimensat
diff --git a/ndk/platforms/android-19/arch-x86/symbols/libc.so.versions.txt b/ndk/platforms/android-19/arch-x86/symbols/libc.so.versions.txt
index 182b171..f91fd29 100644
--- a/ndk/platforms/android-19/arch-x86/symbols/libc.so.versions.txt
+++ b/ndk/platforms/android-19/arch-x86/symbols/libc.so.versions.txt
@@ -13,6 +13,7 @@
     __dn_skipname;
     __errno;
     __fcntl64; # arm x86 mips
+    __fgets_chk;
     __fp_nquery;
     __fp_query;
     __fpclassifyd;
@@ -40,6 +41,9 @@
     __llseek; # arm x86 mips
     __loc_aton;
     __loc_ntoa;
+    __memcpy_chk;
+    __memmove_chk;
+    __memset_chk;
     __mmap2; # arm x86 mips
     __ns_format_ttl; # arm x86 mips
     __ns_get16; # arm x86 mips
@@ -63,7 +67,9 @@
     __ns_skiprr; # arm x86 mips
     __ns_sprintrr; # arm x86 mips
     __ns_sprintrrf; # arm x86 mips
+    __open_2;
     __openat; # arm x86 mips
+    __openat_2;
     __p_cdname;
     __p_cdnname;
     __p_class;
@@ -113,9 +119,18 @@
     __sched_getaffinity; # arm x86 mips
     __set_thread_area; # x86
     __sF;
+    __snprintf_chk;
+    __sprintf_chk;
     __stack_chk_fail;
     __stack_chk_guard;
     __statfs64; # arm x86 mips
+    __strcat_chk;
+    __strcpy_chk;
+    __strlcat_chk;
+    __strlcpy_chk;
+    __strlen_chk;
+    __strncat_chk;
+    __strncpy_chk;
     __sym_ntop;
     __sym_ntos;
     __sym_ston;
@@ -131,6 +146,8 @@
     __timer_getoverrun; # arm x86 mips
     __timer_gettime; # arm x86 mips
     __timer_settime; # arm x86 mips
+    __vsnprintf_chk;
+    __vsprintf_chk;
     __waitid; # arm x86 mips
     _ctype_;
     _exit;
@@ -283,6 +300,7 @@
     fts_open;
     fts_read;
     fts_set;
+    ftw;
     funlockfile;
     funopen;
     futimens;
@@ -341,6 +359,7 @@
     getservbyname;
     getservbyport;
     getservent;
+    getsid;
     getsockname;
     getsockopt;
     gettid;
@@ -426,6 +445,7 @@
     madvise;
     mallinfo;
     malloc;
+    malloc_usable_size;
     mbrlen;
     mbrtowc;
     mbsinit;
@@ -451,6 +471,7 @@
     mktime;
     mktime64; # arm x86 mips
     mlock;
+    mlockall;
     mmap;
     mount;
     mprotect;
@@ -458,8 +479,10 @@
     mremap;
     msync;
     munlock;
+    munlockall;
     munmap;
     nanosleep;
+    nftw;
     nice;
     nrand48;
     nsdispatch;
@@ -487,6 +510,8 @@
     pread64;
     printf;
     pselect;
+    psiginfo;
+    psignal;
     pthread_atfork;
     pthread_attr_destroy;
     pthread_attr_getdetachstate;
@@ -574,6 +599,7 @@
     putw; # arm x86 mips
     putwc;
     putwchar;
+    pvalloc; # arm x86 mips
     pwrite;
     pwrite64;
     qsort;
@@ -775,6 +801,7 @@
     unlinkat;
     unlockpt;
     unsetenv;
+    unshare;
     usleep;
     utime;
     utimensat;