When the file's link count becomes 0 and no process has a reference to the file via an open file descriptor or a memory mapping (see
mmap ), the space occupied by the file shall be freed and the file shall no longer be accessible. If one or more processes have such a reference to the file when the last link is removed, the link shall be removed before
unlink() returns, but the removal of the file contents shall be postponed until there are no such references to the file. When the space occupied by the file has been freed, the file's serial number (
st_ino), and therefore the file identity (see XBD
<sys/stat.h> ), shall become available for reuse.