File Descriptors

How I can know file descriptors of a process?, in QNX4 i used qnx_fd_query, but qnx6 hasn’t this function.