chunk$ (6) --- read one chunk of a SEG runfile 01/05/83 _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n integer function chunk$ (bp, seg, fd) longint bp integer seg, fd Library: vswtlb (standard Subsystem library) _F_u_n_c_t_i_o_n 'Chunk$' expects the segment directory to be open on 'fd' (a Primos file descriptor). It opens the file in the segment directory at position 'seg + 2' and reads 2048 words into memory at position pointed to by 'bp'. The function return is OK if the read was successful, and ERR if any errors occur. _I_m_p_l_e_m_e_n_t_a_t_i_o_n | Straightforward through calls to the Primos routines SGDR$$, SRCH$$, and PRWF$$. _C_a_l_l_s Primos sgdr$$, Primos srch$$, Primos prwf$$ _S_e_e _A_l_s_o ldseg$ (6), zmem$ (6) chunk$ (6) - 1 - chunk$ (6)