• Home
  • History
  • Annotate
  • only in /development/ndk/platforms/android-3/include/sys/
History log of /development/ndk/platforms/android-3/include/sys/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9983b467e539d40388880739fcf8a8becd459b26 10-Jun-2014 Andrew Hsieh <andrewhsieh@google.com> Fix ssize_t, WCHAR_MIN and WCHAR_MAX

1) ssize_t is int, instead of long int
2) WCHAR_MIN and WCHAR_MAX be consistent with bionic's:
respond to __WCHAR_UNSIGNED__, work for both signed (X86/MIPS)
and unsigned (ARM) wchar_t, and work for -fshort-wchar too

Change-Id: Ief1be007571b50c5d63a819df489f9d3f9b47bc8
wchar_limits.h
ypes.h
e85f942ec6828c1b582c5fa72caeda9c77061c07 02-Jun-2014 Andrew Hsieh <andrewhsieh@google.com> Fix warning about undefined __LP64__

See b.android.com/69975

Change-Id: If7f2b6fa29c36221b1a0d31a334cb34cecb4e8bc
defs.h
ac612d2495e40cb6fbf8f1c4ef645e2b55b93a7e 19-Mar-2014 Pavel Chupin <pavel.v.chupin@intel.com> Move _types.h to 32-bit arch dirs to avoid impact on 64-bits

This change moves _types.h from common area to all 32-bits archs.
Required for successful NDK build.

Change-Id: Ife676a285f4b77aef4c33e465a0dbc7cab1481a3
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
types.h
2c8776805a3ef7ff254515f4c51a233ffd509f3d 12-Jan-2014 Andrew Hsieh <andrewhsieh@google.com> Fix headers to be inclued alone

See b.android.com/64679 for one of header sys/prctl.h

Change-Id: Ie415ebe2086d2f0190d84fba0c57cc7e1e5822ae
rctl.h
time.h
7e25851a681e23397505ffe39123db30edc89752 13-Apr-2013 Andrew Hsieh <andrewhsieh@google.com> Implement wait4 already exist in header

1. Implement wait4 by calling __wait4 exists in libc.so
2. Add wait4 to libc.a

Change-Id: I08b6555cc50ee88358cd2ec63f9d8d2d4482305a
ait.h
db275132c57b3b9467af03056a0a4608f4807b90 09-Dec-2013 David 'Digit' Turner <digit@android.com> ndk: Fix wait4() declarations

wait4() was incorrectly declared in <sys/wait.h>, but only added to the
C library in Android 4.3 (API level 18) [1]

This patch:

- Removes the wait4() declarations for any <sys/wait.h> header before
API level 19.

- Brings the API level 19 <sys/wait.h> which correctly declares wait4().

- Update the libc.so.functions.txt for API level 19 of all platforms
to include the exported symbol.

NOTE: This does not bring the static libc.a to API level 19, which means
it is stuck at API level 9 for ARM.

See [2] for the corresponding NDK tests.

http://b.android.com/19854

[1] https://android.googlesource.com/platform/bionic/+/17a8b0db63d54e9d79bf11112ace0c4fe9606289
[2] https://android-review.googlesource.com/#/c/72000/

Change-Id: I7735473d177c44f43b09bb6738e9914945cd4d0a
ait.h
5881b5cbe74089467517ed191b455a58430670db 16-Oct-2013 Andrew Hsieh <andrewhsieh@google.com> Add __NDK_FPABI__ to function taking/returning float/double

Allow user code to be compiled with "-mhard-float" for armeabi-v7a
(which implies -mfloat-abi=hard), and either link with
1. Android native APIs which use softfp, or
2. A customized libm_hard.a which is compiled with -mhard-float. Need
-D_NDK_MATH_NO_SOFTFP=1

See tests/device/hard-float/jni/Android.mk for details and restriction
on Clang

Change-Id: I773a842c73368e08b9a6cda0441e95a96fa303b2
defs.h
16af6afb9a70fd69aa014817c9aefbe09d692a16 07-Oct-2013 Andrew Hsieh <andrewhsieh@google.com> Refresh include/sys/vfs.h

1. Sync bionic's, remove mips-specific one
2. Fix statfs.c to transfer the new f_flags too
3. Revise comment about --wrap=symbol

Change-Id: If68818e3dcb2a4056cd0b2e100fcfb8b2156c33a
fs.h
c2e61c3c01854141b7d5fae30974a0116abe3e42 06-Sep-2013 Andrew Hsieh <andrewhsieh@google.com> Fix issue 58135 about _C_LABEL_STRING macro w/o space between literal in C++

Change-Id: Iefc3c090071f3629998515d43907139b07105672
defs_elf.h
fe8625d401c57e62b309fe300d25b1ccb9aeea92 18-Jul-2013 David 'Digit' Turner <digit@android.com> ndk: Fix WCHAR_MIN / WCHAR_MAX definitions.

This fixes WCHAR_MIN / WCHAR_MAX to be signed / unsigned based on
the target ABI.

This only impacts ARM where wchar_t is really 'unsigned int'.
One can define _WCHAR_IS_ALWAYS_SIGNED to restore the old behaviour.

See http://b.android.com/55749

Change-Id: Idb63b7b11aecd3cfee37f5b6dd2eba78b308876f
wchar_limits.h
f85e243cdb008ae23b143407535dde73a9c259c0 03-Jul-2013 David 'Digit' Turner <digit@android.com> ndk: <sys/cdefs.h>: make wchar_t 32-bit for all API levels.

This patch ensures that wchar_t is a 32-bit number when targetting
API level < 9 (i.e. Froyo or older).

You can restore the previous (and broken) behaviour by defining
_WCHAR_IS_8BIT at compile time. See http://b.android.com/57267
for more context.

BUG=57267

Change-Id: Ib334e8fe95a3f592d5d4bb157b0f123984133597
defs.h
3c10a2037ed5940f5c1b40b336bcba6361257dcc 01-Apr-2013 Andrew Hsieh <andrewhsieh@google.com> Fix sys/un.h to be included on its own

See https://code.google.com/p/android/issues/detail?id=53711
https://android-review.googlesource.com/#/c/42763

Change-Id: Ibd8a445dfde752cddab61b3ae53ad077738701ea
n.h
75d889ea23f0ff1ecaa5cb79b435aca25460a4c9 02-Jan-2013 Andrew Hsieh <andrewhsieh@google.com> Sync sys/limits.h and sys/sysconf.h

See http://code.google.com/p/android/issues/detail?id=39680
and a55f63083fb16b2595f517a3260083e5f8cddd02

Change-Id: I2d1548814eb771c26b540f5fee57dabf54fcfdd6
imits.h
ysconf.h
7980acf254e97c3c226bc633a7bb3910b7d296d1 20-Dec-2012 Andrew Hsieh <andrewhsieh@google.com> Remove duplicated definitions of size_t and ssize_t

See 3975cec694a0c9b42e3f7e671fcd678da92836c3

Change-Id: Ia40ff8de3ffe923fb983bb116b740942724c641a
ypes.h
ab13dd0e7acedd450e7dd3a3b0aff5278fb9a2d7 12-Dec-2012 Andrew Hsieh <andrewhsieh@google.com> Fix <endian.h> and <sys/endian.h>

See 4fa35d8ae80c175425e9525831d7b6a71a3ada60

Change-Id: Ia14386f2e762fd7c0a1fc8f3e7cf8c0ce05b1dd5
ndian.h
7de8e9310755e1a4ca502a1ca14b691d2f06cc27 18-Aug-2012 Andrew Hsieh <andrewhsieh@google.com> Remove linux-unistd.h

Change-Id: I95cc89bfacb05d92da658fa533cb75ac65d397bf
inux-unistd.h
47c55f4af25c5eba2c2f7551e6090cfd483124ab 09-Jan-2012 David 'Digit' Turner <digit@google.com> ndk: <unistd.h>: Update for API level 11 + minor cleanup

- 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
rctl.h
bea05255de4372e7c2d41489b637338f59df9361 09-Jan-2012 David 'Digit' Turner <digit@google.com> ndk: <sys/cdefs.h> minor update

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
defs.h
defs_elf.h
904f6923b895644d86f17e7a545469b92f02511d 22-Nov-2011 David 'Digit' Turner <digit@google.com> ndk: Fix <sys/atomics.h> declarations.

The atomic operations exported by the platform's C library do not
provide full memory barriers. This can result in incorrect results
when NDK machine code linked against them runs on multi-core devices.

While the bug has been fixed in the platform, this NDK header change
ensures that any source code that includes <sys/atomics.h> will end
up using a correct implementation of these functions, based on the
corresponding GCC builtins.

These builtins always provide a full barrier and have reasonable
performance. Application developers who depend on <sys/atomics.h>
should recompile their unmodified sources against this version
of the NDK as soon as possible.

Change-Id: Ife165d09dceffdcd768b69c072d253cac898419c
tomics.h
7c2ba504e9c10e67f27e7b0aff90981c469d2701 08-Oct-2010 David 'Digit' Turner <digit@google.com> ndk: remove undefined symbols from system headers

This change removes the declaration of functions that are not
implemented by our various versions of our C library.

The corresponding declarations are moved inside #if 0 .. #endif
blocks (so it becomes easy to remember that they are missing)

Also refresh the headers a little (i.e. adding a few missing decl
and macros, remove C++ comments, etc)

See http://code.google.com/p/android/issues/detail?id=7807

Change-Id: I4ae1b1f3a181419eee2004c41b54768cc15e896f
NOTE: The missing decl are still there but encased in #if 0 .. #endif
blocks (to make it easier to implement them later). There are
a few exceptions in order to build STLport and libstdc++-v3
properly.
defs.h
ile.h
suid.h
octl_compat.h
ount.h
trace.h
ysinfo.h
ypes.h
7012117d4ae7e9ca9e50812f55757411aa8f93a0 22-Sep-2010 David 'Digit' Turner <digit@google.com> Unify NDK platform headers.

This commit removes duplication of system headers per platform, i.e. remove
copies of common headers like <stdlib.h> from arch-arm/usr/include and arch-x86/usr/include
and move them to a common include directory. More specifically:

- common headers: android-N/arch-A/usr/include --> android-N/include
- arch-specific headers: android-N/arch-A/usr-include --> android-N/arch-A/include
- arch-specific libs: android-N/arch-A/usr/lib --> android-N/arch-A/lib

Change-Id: Ifdba5038d108901931f3e3a7c14ebe6270d2d276

NOTE: This also contains careful separation of API-level-specific headers.
For example, platforms/android-5/include/pthread.h contains new function
declarations that are not available when using platforms/android-3/include/pthread.h

NOTE: The NDK's build-platforms.sh script has been updated to understand the new
layout. This change in develeopment/ndk does not change the layout of
platform files under $NDK/platforms after build-platforms.sh is called.
errdefs.h
sigdefs.h
system_properties.h
types.h
tomics.h
defs.h
defs_elf.h
irent.h
ndian.h
poll.h
rrno.h
xec_elf.h
ile.h
suid.h
notify.h
octl.h
octl_compat.h
pc.h
log.h
imits.h
inux-syscalls.h
inux-unistd.h
man.h
ount.h
aram.h
oll.h
rctl.h
trace.h
ueue.h
eboot.h
esource.h
elect.h
endfile.h
ocket.h
ocketcalls.h
tat.h
tatfs.h
yscall.h
ysconf.h
ysinfo.h
yslimits.h
ysmacros.h
ystem_properties.h
ime.h
imeb.h
imes.h
tychars.h
tydev.h
ypes.h
io.h
n.h
time.h
tsname.h
fs.h
t.h
ait.h