sysopen($fh, "$dir/$name", O_CREAT | O_EXCL | O_RDWR, 0600);