I wrote down a small C code on linux with a creat
function. I used it couple of times with the same file name and the same mode
and every time it's overwrites my file with a new time and permission with no EEXIST
error.
if (creat(name, mode) < 0)
{
printf("something went wrong with create! %s\n", strerror(errno));
exit(1);
}
What is the problem?