native: add fileno wrapper
wip