built fdmap for mapping between fd and filepath