The unlink() is not about removing file, it's about removing a file name. The manpage says: ``unlink - delete a name and possibly the file it refers to''. Most ...
DESCRIPTION top. unlink() deletes a name from the filesystem. If that name was the last link to a file and no processes have the file open, the file is deleted ...