factor/extra/io/windows/files/unique/unique.factor

11 lines
301 B
Factor
Raw Normal View History

2008-02-29 19:04:44 -05:00
USING: kernel system io.files.unique.backend
windows.kernel32 io.windows io.nonblocking ;
IN: io.windows.files.unique
M: windows-io (make-unique-file) ( path -- )
GENERIC_WRITE CREATE_NEW 0 open-file
CloseHandle win32-error=0/f ;
M: windows-io temporary-path ( -- path )
"TEMP" os-env ;