The data pointer argument to glBufferData can be NULL; this
[re]allocates the buffer while leaving the contents undefined.
Bug: 5833436
Change-Id: Ia1ddf62e2cd2c59d3d631e01d23d7c557ca5a52e
This fixes two minor issues with recent updates to the IPv6 related headers:
- add missing <linux/ipv6.h> kernel header
- avoid conflict in netinet/in6.h, the macro is already defined by <linux/in6.h>
Change-Id: Ibd0d44fd801affc6ca405e96982a73f9a630bdba
Symbols for both arm and x86.
+ missing declarations for getpwnam_r and getpwuid_r which were implemented
in Android 4.0.1. This didn't appear in previous comparison because the
platform header always declare these in <pwd.h>, so it never changed
when the functions were added. They appear in libc.so.functions.txt though.
The arm symbols are generated from the library files extracted from the
'yakju' platform build for 4.0.1 a.k.a. ITL41D.
The x86 symbols are generated by building the corresponding libraries
for the full_x86-eng product, using the same Bionic sources.
+ x86: Add missing symbols for "siglongjmp" and "sigsetjmp" which are not
exported by the gingerbread version of full_x86-eng libc.so. This was
checked with a fresh build of the product from the current gingerbread
tree on the AOSP server. Probably a bug, but a minor one.
Change-Id: I41d3eb28cecc1989e1bec4a00ac236c4b262c2be
Only for arm, since oneycomb isn't supported on x86
(i.e. API levels 11 to 13).
Change-Id: I662400ed7e222ea070dd1f9f6681c21971b589e1
ndk: API level 11: Add libm.so symbols for ARM
Change-Id: I5688b57557ad7021d49f458e1b9519e8800d795e
This is a minor update to two ARM-specific kernel headers.
- <asm/ptrace.h>: Add two new constants
- <asm/user.h>: Add 'struct vfp_user' and 'struct vfp_user_exc'
Change-Id: I25d31bb33a9102e3c74a169c28dce66211ced636
- Add pread64(), pwrite64(), ftruncate64() for API level 11
- Cleanup declaration of lseek64() to use off64_t instead of loff_t
- Cleanup declaration of prctl() to use variable number of arguments
The cleanups are performed to better match upstream.
Change-Id: Ic9e44c0ea3dc1202d3c3478bdb2b6006e83b08dc
This patch adds timegm(), timelocal(), time2posix() and posix2time()
to this standard library header.
Change-Id: Ic7b42eece8c11eb040d0522ed8b54d36b7404f9a
Add the following definitions related to cpu affinity to <sched.h>:
- cpu_set_t and associated macros: CPU_ZERO, CPU_SET, CPU_CLR, CPU_ISSET, CPU_EQUAL,
CPU_COUNT, CPU_AND, CPU_OR, CPU_XOR.
- sched_getcpu(), sched_getaffinity() and sched_setaffinity()
- define macros for dynamically-sized cpu_set_t variables, i.e.:
CPU_ALLOC_SIZE, CPU_ALLOC, CPU_FREE, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S,
CPU_ISSET_S, CPU_EQUAL_S, CPU_COUNT_S
NOTE: You must define _GNU_SOURCE before including the header to get them.
Change-Id: I37338573c7af092118e7987420f6a930b6cc24b1
This patch fixes some formatting issues in <sys/cdefs.h>:
- change '#if __STDC_VERSION__ > xxx' into '#if defined(__STDC_VERSION__) && __STDC_VERSION > xxx'
- add __LIBC_HIDDEN__ definition (not technically required, but makes comparing the headers with upstream easier)
Change-Id: I5fd13224181e2f757fb01cb99c93508c3a6d9e13
This patch improves the formatting of <pthread.h> as exposed by the NDK:
- change '#if __cplusplus' into '#ifdef __cplusplus'
- change C++-style comment into C-style comment
It also adds pthread_atfork() for API level 11 (3.0)
Change-Id: Ie814208335ed102d4c178a4c373e6963e5dcc9dd
This patch contains a minor update to the netinet headers from the C library.
Most of the changes come from later platform release, but can be safely back-ported
to previous API levels since they don't change the ABI:
- <netinet/icmp6.h>, <netinet/ip6.h>: new headers
- <netinet/in.h>: now always include <linux/ipv6.h> by default
- <netinet/in6.h>: add macros: IN6_IS_ADDR_ULA, IN6ADDR_LOOPBACK_INIT
- <netinet/ip.h>: add macro: IPTOS_MINCOST
- <net/if_ether.h>: always include <sys/types.h> by default.
Change-Id: Icaf38205389d2b49f0e9235c07df752da01a0167
For some reason, the header was missing from previous NDK releases.
Note: the function symbols are properly listed in arch-$ARCH/symbols/libc.so.functions.txt
Change-Id: I72bf307ccaf55c9b8fc344f5bbfa7b44ba673d62
Lots of clean up on the messaging notification sample to show the real
correct way to do things. Also mark up a bunch of the sample for use
in the documentation.
Change-Id: I3a29a944c2971e142c33b29aff94b1ba0b40ae0e
The CTS packages use CTS-specific Makefiles rules like
BUILD_CTS_PACKAGE instead of BUILD_PACKAGE. Update runtest
to include CtsBuild.mk which defines all of these.
Change-Id: I6ea6c77b4f2ab113126319141e5120e016055c9d