


      UUUUNNNNLLLLIIIINNNNKKKK((((2222))))                   ((((UUUUNNNNIIIIXXXX 5555....0000))))                  UUUUNNNNLLLLIIIINNNNKKKK((((2222))))



      NNNNAAAAMMMMEEEE
           unlink - remove directory entry

      SSSSYYYYNNNNTTTTAAAAXXXX
           iiiinnnntttt uuuunnnnlllliiiinnnnkkkk ((((ppppaaaatttthhhh))))
           cccchhhhaaaarrrr ****ppppaaaatttthhhh;;;;

      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
           _U_n_l_i_n_k removes the directory entry named by the path name
           pointed to by _p_a_t_h.  An error can prevent removal:

                A component of the path prefix is not a directory.
                [ENOTDIR]

                The named file does not exist.  [ENOENT]

                Search permission is denied for a component of the path
                prefix.  [EACCES]

                Write permission is denied on the directory containing
                the link to be removed.  [EACCES]

                The named file is a directory and the effective user ID
                of the process is not super-user.  [EPERM]

                The entry to be unlinked is the mount point for a
                mounted file system.  [EBUSY]

                The entry to be unlinked is the last link to a pure
                procedure (shared text) file that is being executed.
                [ETXTBSY]

                The directory entry to be unlinked is part of a read-
                only file system.  [EROFS]

                _P_a_t_h points outside the process's allocated address
                space.  [EFAULT]

           When all links to a file have been removed and no process
           has the file open, the space occupied by the file is freed
           and the file ceases to exist.  If one or more processes have
           the file open when the last link is removed, the removal is
           postponed until all references to the file have been closed.

      RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
           Upon successful completion, a value of 0 is returned.
           Otherwise, a value of -1 is returned and _e_r_r_n_o is set to
           indicate the error.

      SSSSEEEEEEEE AAAALLLLSSSSOOOO
           rm(1), close(2), link(2), open(2).




      Page 1                                                   (9010-E)






      UUUUNNNNLLLLIIIINNNNKKKK((((2222))))                   ((((UUUUNNNNIIIIXXXX 5555....0000))))                  UUUUNNNNLLLLIIIINNNNKKKK((((2222))))























































      Page 2                                                   (9010-E)






