.\" The Regents of the University of California. All rights reserved.
.\" %sccs.include.redist.man%
.\" @(#)undelete.2 8.2 (Berkeley) %G%
.Nd remove whiteout entry
.Fn unwhiteout "const char *path"
removes the whiteout named by
Any objects in a lower layer of the
union stack will become visible once more.
Upon successful completion, a value of 0 is returned.
Otherwise, a value of -1 is returned and
is set to indicate the error.
.Bl -tag -width ENAMETOOLONGAA
A component of the path prefix is not a directory.
The pathname contains a character with the high-order bit set.
A component of a pathname exceeded 255 characters,
or an entire path name exceeded 1023 characters.
The path does not reference a whiteout.
The whiteout does not exist.
Search permission is denied for a component of the path prefix.
Write permission is denied on the directory containing the link
Too many symbolic links were encountered in translating the pathname.
The directory containing the file is marked sticky,
and the containing directory is not owned by the effective user ID.
An I/O error occurred while deleting the directory entry.
The whiteout resides on a read-only file system.
points outside the process's allocated address space.
function call first appeared in 4.4BSD-Lite.