posix: move close into fd.c
posix: use function table for FDs
posix: add read() and write()
sys: add POSIX pipe