I use ffib and lcpp (with my searcher). After loading the headers from <sys/types.h> , instead of char , int arrays and variables are created.
It looks like this:
th> ffi.new('char[10]') cdata<char[10]>: 0x2366d98 [0.0002s] th> ffi.cdef[[#include <sys/types.h>]] [0.7561s] th> ffi.new('char[10]') cdata<int[10]>: 0x25bf3a8 What's the matter with this library?