fd setup in filesys.c