This errno value, "File exists", is one of the few less-abused ones. You will get this error if you try to creat(2), link(2), mknod(2), mkdir(2), etc. using a pathname for a file which already exists. It can also show up when using System V IPC, such as if you attempt a create operation using a key that is already taken.