REMOVE(3) BSD Programmer's Manual REMOVE(3) NNAAMMEE rreemmoovvee - remove directory entry SSYYNNOOPPSSIISS ##iinncclluuddee <<ssttddiioo..hh>> _i_n_t rreemmoovvee(_c_o_n_s_t _c_h_a_r _*_p_a_t_h); DDEESSCCRRIIPPTTIIOONN The rreemmoovvee() function is an alias for the unlink(2) system call. It deletes the file referenced by _p_a_t_h. RREETTUURRNN VVAALLUUEESS Upon successful completion, rreemmoovvee() returns 0. Otherwise, -1 is re- turned and the global variable _e_r_r_n_o is set to indicate the error. EERRRROORRSS The rreemmoovvee() function may fail and set _e_r_r_n_o for any of the errors speci- fied for the routine unlink(2). SSEEEE AALLSSOO unlink(2) SSTTAANNDDAARRDDSS The rreemmoovvee() function conforms to ANSI C X3.159-1989 (``ANSI C ''). 4.4BSD June 4, 1993 1