

            rmtemp (2) --- remove a temporary file                   03/23/80


            _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 integer function rmtemp (fd)
                 file_des fd

                 Library:  vswtlb (standard Subsystem library)


            _F_u_n_c_t_i_o_n

                 'Rmtemp'  is  used  to  remove  a  temporary file created by
                 'mktemp'.  The file specified by 'fd' is rewound,  truncated
                 to zero length, and closed.  This action is as close as pos-
                 sible  to  actually  deleting  the  file.  If the attempt to
                 close the file is successful, 'rmtemp'  returns  OK;  other-
                 wise, it returns ERR.


            _I_m_p_l_e_m_e_n_t_a_t_i_o_n

                 'Rmtemp'  simply  calls  'rewind',  'trunc', and 'close', in
                 that order, on the given file descriptor.  If  the  call  to
                 'close' fails, ERR is returned; otherwise, OK is returned.


            _C_a_l_l_s

                 rewind, trunc, close


            _S_e_e _A_l_s_o

                 mktemp (2), rewind (2), trunc (2), close (2)

























            rmtemp (2)                    - 1 -                    rmtemp (2)


