ATMODE
if ((fd = open(tfname, O_CREAT|O_EXCL|O_WRONLY, ATMODE)) < 0)
if ((fd = open(name, O_CREAT | O_EXCL, ATMODE)) > 0) {