FILE_PERMISSION
FILE_PERMISSION, DB_HASH, &openinfo);
fd = open(db_name_tmp, O_CREAT|O_EXCL|O_WRONLY, FILE_PERMISSION);