mapfd (2) --- convert fd to Primos funit 01/07/83 _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n integer function mapfd (fd) file_des fd Library: vswtlb (standard Subsystem library) _F_u_n_c_t_i_o_n Certain applications require the Primos funit number associated with a given open disk file. 'Mapfd' retrieves the funit number corresponding to a file descriptor. If the file open on the given file descriptor is not a disk file, the function return is ERR; otherwise, it is the desired funit number. _I_m_p_l_e_m_e_n_t_a_t_i_o_n The Primos funit associated with each file descriptor is available in the Subsystem I/O common area. 'Mapfd' simply checks to make sure the specified file descriptor corresponds to a disk file, then returns the funit. _C_a_l_l_s mapsu _S_e_e _A_l_s_o mapsu (2) mapfd (2) - 1 - mapfd (2)