android_system_core/include/cutils
Ben Cheng 5206d59712 Fail-proof the inline directives for SMP atomic operations.
The various atomic operations are declared as inline in the header files
to cut the function call overhead. However, the plain inline keyword is
just a suggestion to the compiler which makes its own decision on whether
to inline them or not. Worst, if they are not inlined, the
-fvisibility-inlines-hidden compiler flag will render them as hidden
symbols in the object file. If they are picked up by the linker over the
ones supplied in libcutils.so the following warning will be reported:

warning: hidden symbol 'android_atomic_inc' in foo.o is referenced by
DSO bar.so

One way is to add __attribute__((visibility("default"))) to those inline
functions to suppress the linker warnings. A better way is to force
inlining as with this patch.

Change-Id: Ie4fcfdfaaf06f42d351619a0d89671a9df15ca2f
2012-12-07 11:07:10 -08:00
..
abort_socket.h Helper to perform abortable blocking operations on a socket: 2009-05-20 15:20:30 -07:00
android_reboot.h Try to unmount writable filesystems when rebooting 2011-03-10 18:11:46 -08:00
array.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
ashmem.h Fix sim-eng build. 2010-06-30 22:20:49 -07:00
atomic-arm.h Fail-proof the inline directives for SMP atomic operations. 2012-12-07 11:07:10 -08:00
atomic-inline.h Remove system/core's remnants of SH support. 2012-08-11 10:04:00 -07:00
atomic-mips.h Fail-proof the inline directives for SMP atomic operations. 2012-12-07 11:07:10 -08:00
atomic-x86.h Fail-proof the inline directives for SMP atomic operations. 2012-12-07 11:07:10 -08:00
atomic.h Remove unconditional swap from the android atomic operations suite. 2011-01-23 14:09:17 -08:00
bitops.h cutils: add popcount/popcountl/popcountll static inline definitions 2011-05-12 08:41:49 -07:00
compiler.h Add ANDROID_API macro to export symbols 2011-10-12 13:45:59 -07:00
config_utils.h Config utils improvement 2011-05-26 13:57:03 -07:00
cpu_info.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
debugger.h Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
dir_hash.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
event_tag_map.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
fs.h Wrap system calls in TEMP_FAILURE_RETRY. 2012-09-13 15:02:53 -07:00
hashmap.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
iosched_policy.h system: Add support for getting/setting i/o priorities and include a userspace tool 2010-02-25 14:02:55 -08:00
jstring.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
klog.h init/cutils: move kernel logging interface to libcutils from init 2011-09-02 12:11:17 -07:00
list.h MinGW does not have sys/cdefs.h 2012-03-20 13:46:30 -07:00
log.h Rename LOG_ASSERT to ALOG_ASSERT 2012-01-17 17:56:20 +00:00
logd.h Expose the stable/frozen log-related definitions of <cutils/logd.h> into a new header: <android/log.h> 2009-05-29 14:45:04 +02:00
logger.h logger: Add the update kernel struct to userspace 2012-03-22 15:51:24 -07:00
logprint.h Fixed two 64-bit porting issues; Make pid/tid type consistent 2012-02-29 17:00:46 -08:00
memory.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
misc.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
mq.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
multiuser.h File-system utilities for installd and zygote. 2012-08-30 10:29:41 -07:00
native_handle.h native_handle.h: fix declaration 2011-05-02 17:27:37 -07:00
open_memstream.h Implementation of open_memstream(). 2010-01-25 15:06:03 -08:00
partition_utils.h Crypto changes for devices that don't write ext4 fs on wipe 2011-05-26 19:42:32 -07:00
process_name.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
properties.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
qsort_r_compat.h Provide portable wrapper for qsort_r. 2012-03-19 14:07:26 -07:00
qtaguid.h libcutils: qtaguid: Support new functions, add tag resource tracking. 2011-09-14 15:00:40 -07:00
record_stream.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sched_policy.h Add more SP_ constants 2012-04-23 17:34:06 -07:00
selector.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sockets.h Tracking merge of dalvik-dev to master 2011-05-27 00:50:44 -07:00
str_parms.h tweak for forward-compatibility 2011-06-18 10:41:31 -07:00
threads.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
tztime.h libcutils: Use proper private header to access C library's <time.h> extension 2012-01-13 13:38:40 +01:00
uevent.h cutils: return the remote uid on netlink recv failure 2012-03-29 17:07:24 -07:00
uio.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
zygote.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00