Android C 语言底层库 libcutils
(2011-03-07 00:33:30)
标签:
androidclibcutils库源码venusit |
查看原文:http://newfaction.net/2010/12/21/android-c-library-libcutils-the-underlying-language.html
C 语言底层库提供了 C 语言中最基本的工具功能。这是 Android 本地中最为基础的库,基本上 Android 中所有的本地的库和程序都连接了这个库。 头文件的路径:
C 语言底层库提供了 C 语言中最基本的工具功能。这是 Android 本地中最为基础的库,基本上 Android 中所有的本地的库和程序都连接了这个库。 头文件的路径:
system/core/include/cutils
库的路径
system/core/libcutils
编译的结果是: libcutils.so
libcutil 中主要的头文件:
threads.h :线程
sockets.h : Android 的套接字
properties.h : Android 的属性
log.h : log 信息
array.h :数组
ashmem.h :匿名共享内存
atomic.h :原子操作
mq.h :消息队列
一般来说编译基础库时都需要包含它