mkfd$ (6) --- make a file descriptor from a Primos funit 03/25/82 _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n file_des function mkfd$ (funit, mode) integer funit, mode Library: vswtlb (standard Subsystem library) _F_u_n_c_t_i_o_n 'Mkfd$' allocates a Subsystem file descriptor for a disk file and initializes it so that it refers to the file open on the Primos funit number given as the argument 'funit'. 'Mode' must be READ, WRITE, or READWRITE. The function return is a file descriptor if the allocation succeeds, ERR otherwise. 'Mkfd$' is normally used to enable Subsystem I/O on a file that for some reason has already been opened by a Primos routine. _I_m_p_l_e_m_e_n_t_a_t_i_o_n A Subsystem file descriptor is allocated from the available pool (by a call to 'getfd$') and initialized as per 'open'. The given I/O mode, file unit, and disk device status are associated with the descriptor. _C_a_l_l_s getfd$, Primos break$ _S_e_e _A_l_s_o getfd$ (6), mapfd (2), open (2) mkfd$ (6) - 1 - mkfd$ (6)