Bruno Haible
2018-05-13 11:46:13 UTC
The Android headers contain information, for each function, when this function
was added in Bionic.
For example, <stdlib.h> contains
#if __ANDROID_API__ >= 23
...
int mkostemp(char* __template, int __flags) __INTRODUCED_IN(23);
...
#endif /* __ANDROID_API__ >= 23 */
which means that the function 'mkostemp' is available in Android API 23 and
higher. The API levels translate to Android versions per
https://source.android.com/setup/start/build-numbers
So, 'mkostemp' is present in Android 6.0 or newer, and missing in Android 5.1
and older.
There are a few special cases, marked with __RENAME, that indicate when the
symbol used in the header file and the symbol visible to 'nm' are different.
2018-05-13 Bruno Haible <***@clisp.org>
doc: Add info about Android versions 2.0 to 8.1.
* doc/**/*.texi: Add info about functions in all released versions of
Bionic.
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=be18f9170e1989b601a08aada31438cca87cffdd
was added in Bionic.
For example, <stdlib.h> contains
#if __ANDROID_API__ >= 23
...
int mkostemp(char* __template, int __flags) __INTRODUCED_IN(23);
...
#endif /* __ANDROID_API__ >= 23 */
which means that the function 'mkostemp' is available in Android API 23 and
higher. The API levels translate to Android versions per
https://source.android.com/setup/start/build-numbers
So, 'mkostemp' is present in Android 6.0 or newer, and missing in Android 5.1
and older.
There are a few special cases, marked with __RENAME, that indicate when the
symbol used in the header file and the symbol visible to 'nm' are different.
2018-05-13 Bruno Haible <***@clisp.org>
doc: Add info about Android versions 2.0 to 8.1.
* doc/**/*.texi: Add info about functions in all released versions of
Bionic.
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=be18f9170e1989b601a08aada31438cca87cffdd