什么是最重要的POSIX函数不能在Android中使用? [英] What are the most important POSIX functions not available in Android?
问题描述
林向前移植大型C ++项目的(某种Libary项目,它包含了是绝对没有GUI)到Android(这实际上是一个可视化的C / C ++项目,但它会被移植到Linux作为intermidiate步骤)和我知道Android是不是一个完整的Linux,不要求提供所有的POSIX的功能,但我知道有很多,至少可以给他们打电话在Android POSIXish功能使用NDK。
Im ahead of porting a large c++ Project (some sort of Libary Project, it contains absolutly no GUI) to Android (which is actually an Visual C/C++ Project, but it will be ported to Linux as intermidiate Step) and i know that Android is not a "full" Linux and does not claim to provide all POSIX functions, but i know there are a lot of at least lets call them POSIXish functions on Android by using the ndk.
现在我的实际问题是:
这是最大/最重要的功能是不是Android的下可提供完整的POSIX集相比,这样我可以做从Visual C ++到Linux GCC移植时牢记这一点。的
我试图找到通过谷歌的东西,但我什么也没找到真正有用的,这里只是一个有一些东西提到,有一些POSIX的功能在安卓...
I tried to find something via google, but i found nothing really helpful, just here an there some stuff that mentioned that there are some POSIX functions under android...
推荐答案
仿生重新code。通过谷歌。它体积小,但对于Android进行了优化。
Bionic a recode by Google. It is small but optimized for Android.
唯一的大事情,我知道,它缺乏的确是 pthread_cancel()
的功能。
The only big thing I know of that it lacks is indeed the pthread_cancel()
function.
我的经验是,如果你将它移植成功的GNU / Linux的,而不 pthread_cancel()
通话,那么你就应该多为正常。
My experience is that if you port it successfully to GNU/Linux, without pthread_cancel()
calls, then you should be mostly ok.
顺便说一句,你想打造什么样的图书馆?这是什么用途?网络方面,螺纹...
BTW, what kind of library are you trying to build? What does it uses? Network, threads...
PS:即便Linux是没有完全POSIX
PS: Even Linux is not fully POSIX.
这篇关于什么是最重要的POSIX函数不能在Android中使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!