[android] Adapt POSIX test to Android
[android] Adapt POSIX test to Android

Android differs in subtle ways from Linux. For example sem_open is
completely unimplemented, and always returns ENOSYS. None of the
test using sem_open were going to work.

Additionally the l_len field of the flock struct is typed as
__kernel_off_t, which doesn't have the same size as off_t.

Finally, the current working directory is always /, so creating
relative files will fail. We have to find the executable directory
and create the file there.

xwu/swift,hooman/swift,jckarter/swift,amraboelela/swift,danielmartin/swift,atrick/swift,karwa/swift,amraboelela/swift,xwu/swift,stephentyrone/swift,shahmishal/swift,jmgc/swift,lorentey/swift,sschiau/swift,JGiola/swift,devincoughlin/swift,nathawes/swift,airspeedswift/swift,karwa/swift,jckarter/swift,CodaFi/swift,rudkx/swift,harlanhaskins/swift,apple/swift,CodaFi/swift,austinzheng/swift,airspeedswift/swift,harlanhaskins/swift,practicalswift/swift,stephentyrone/swift,amraboelela/swift,xwu/swift,parkera/swift,apple/swift,shahmishal/swift,karwa/swift,lorentey/swift,xedin/swift,allevato/swift,benlangmuir/swift,lorentey/swift,gregomni/swift,xedin/swift,harlanhaskins/swift,jckarter/swift,shajrawi/swift,nathawes/swift,hooman/swift,ahoppen/swift,gregomni/swift,CodaFi/swift,hooman/swift,parkera/swift,aschwaighofer/swift,tkremenek/swift,rudkx/swift,gribozavr/swift,aschwaighofer/swift,nathawes/swift,devincoughlin/swift,practicalswift/swift,shahmishal/swift,CodaFi/swift,apple/swift,airspeedswift/swift,aschwaighofer/swift,roambotics/swift,danielmartin/swift,harlanhaskins/swift,austinzheng/swift,lorentey/swift,roambotics/swift,xwu/swift,aschwaighofer/swift,karwa/swift,harlanhaskins/swift,gregomni/swift,gribozavr/swift,aschwaighofer/swift,harlanhaskins/swift,practicalswift/swift,harlanhaskins/swift,amraboelela/swift,tkremenek/swift,benlangmuir/swift,karwa/swift,atrick/swift,jmgc/swift,parkera/swift,roambotics/swift,gribozavr/swift,shahmishal/swift,aschwaighofer/swift,JGiola/swift,benlangmuir/swift,devincoughlin/swift,shajrawi/swift,CodaFi/swift,tkremenek/swift,gribozavr/swift,apple/swift,tkremenek/swift,benlangmuir/swift,xwu/swift,ahoppen/swift,devincoughlin/swift,shajrawi/swift,danielmartin/swift,allevato/swift,austinzheng/swift,xedin/swift,hooman/swift,sschiau/swift,parkera/swift,jckarter/swift,stephentyrone/swift,shahmishal/swift,airspeedswift/swift,jmgc/swift,allevato/swift,JGiola/swift,hooman/swift,practicalswift/swift,tkremenek/swift,shajrawi/swift,allevato/swift,shajrawi/swift,devincoughlin/swift,nathawes/swift,danielmartin/swift,allevato/swift,shahmishal/swift,practicalswift/swift,glessard/swift,amraboelela/swift,stephentyrone/swift,amraboelela/swift,sschiau/swift,benlangmuir/swift,tkremenek/swift,karwa/swift,gribozavr/swift,glessard/swift,CodaFi/swift,airspeedswift/swift,tkremenek/swift,danielmartin/swift,glessard/swift,practicalswift/swift,austinzheng/swift,ahoppen/swift,parkera/swift,atrick/swift,nathawes/swift,allevato/swift,glessard/swift,airspeedswift/swift,parkera/swift,xedin/swift,ahoppen/swift,jmgc/swift,rudkx/swift,jmgc/swift,gregomni/swift,nathawes/swift,sschiau/swift,JGiola/swift,devincoughlin/swift,jmgc/swift,karwa/swift,xedin/swift,lorentey/swift,roambotics/swift,practicalswift/swift,shajrawi/swift,austinzheng/swift,lorentey/swift,shahmishal/swift,devincoughlin/swift,hooman/swift,gregomni/swift,atrick/swift,nathawes/swift,stephentyrone/swift,shajrawi/swift,rudkx/swift,practicalswift/swift,shahmishal/swift,glessard/swift,roambotics/swift,sschiau/swift,glessard/swift,sschiau/swift,lorentey/swift,aschwaighofer/swift,roambotics/swift,shajrawi/swift,sschiau/swift,stephentyrone/swift,jckarter/swift,austinzheng/swift,austinzheng/swift,ahoppen/swift,devincoughlin/swift,gribozavr/swift,parkera/swift,lorentey/swift,airspeedswift/swift,jmgc/swift,danielmartin/swift,gribozavr/swift,xwu/swift,karwa/swift,jckarter/swift,apple/swift,xedin/swift,stephentyrone/swift,JGiola/swift,gribozavr/swift,atrick/swift,rudkx/swift,atrick/swift,jckarter/swift,xwu/swift,benlangmuir/swift,allevato/swift,CodaFi/swift,ahoppen/swift,hooman/swift,danielmartin/swift,sschiau/swift,apple/swift,amraboelela/swift,JGiola/swift,xedin/swift,parkera/swift,rudkx/swift,gregomni/swift,xedin/swift