refine fd struct
dir/regular file open/close at the same syscall