Hi,
I went through the documentation of unlink() function. I believe that if there are multiple links to a file then calling unlink() to delete that file should just decrease the link count of that file but should not delete the file. I tried this using a C program that uses unlink() to delete a file 'file' that has two symbolic links 'L0_file' and 'L1_file'.
After the program was run, I found that the file was deleted. How is this possible since there were two links to this file present in the same directory?
If I have misinterpreted something then please clarify.