4.3BSD-UWisc/man/cat3/unlink.3f




UNLINK(3F)          UNIX Programmer's Manual           UNLINK(3F)



NAME
     unlink - remove a directory entry

SYNOPSIS
     integer function unlink (name)
     character*(*) name

DESCRIPTION
     _U_n_l_i_n_k causes the directory entry specified by pathname _n_a_m_e
     to be removed.  If this was the last link to the file, the
     contents of the file are lost.  The returned value will be
     zero if successful; a system error code otherwise.

FILES
     /usr/lib/libU77.a

SEE ALSO
     unlink(2), link(3F), filsys(5), perror(3F)

BUGS
     Pathnames can be no longer than MAXPATHLEN as defined in
     <_s_y_s/_p_a_r_a_m._h>.

































Printed 12/27/86          May 15, 1985                          1