"Now my challenges after reading the UFFI documentation are the following
1) How I can pass things like O_CREAT , MAP_SHARED 2) How I cast a void pointer (its what mmap returns) to a C++ string or C++ int" After carefully re-reading the documentation its seems the answer to question 1 is that I will have to take the constant values from the header and follow the instructions of the section "passing variables" About question 2, I could fetch the void pointer as return type , I know that what returns is ExternalAdress pointer but have no idea how to fetch the contents that the pointer points to. Maybe ByteArray>>integerAt:size:signed: is what I am looking for ? Will give it a try tomorrow. In the meanwhile I am open to suggestions.