void _main(){if(global_returns_t_or_f()){{wchar_t * filename;FILE * tmp;filename=_wtempnam(NULL, NULL);printWLine(filename);tmp=_wfopen(filename, L"wb+");if (tmp!=NULL){printLine("Temporary file was opened...now closing file");fclose(tmp);}if (filename!=NULL){free(filename);}}}else{{wchar_t * filename;int fd;filename=_wtempnam(NULL, NULL);printWLine(filename);fd=OPEN(filename, O_CREAT|O_EXCL, S_IREAD|S_IWRITE);if (fd!=-1){printLine("Temporary file was opened...now closing file");CLOSE(fd);}if (filename!=NULL){free(filename);}}}}
static void main(){if(global_returns_t_or_f()){{wchar_t * filename;int fd;filename=_wtempnam(NULL, NULL);printWLine(filename);fd=OPEN(filename, O_CREAT|O_EXCL, S_IREAD|S_IWRITE);if (fd!=-1){printLine("Temporary file was opened...now closing file");CLOSE(fd);}if (filename!=NULL){free(filename);}}}else{{wchar_t * filename;int fd;filename=_wtempnam(NULL, NULL);printWLine(filename);fd=OPEN(filename, O_CREAT|O_EXCL, S_IREAD|S_IWRITE);if (fd!=-1){printLine("Temporary file was opened...now closing file");CLOSE(fd);}if (filename!=NULL){free(filename);}}}}