1 USING: kernel io.ports io.unix.backend math.bitwise
2 unix io.files.unique.backend system ;
3 IN: io.unix.files.unique
5 : open-unique-flags ( -- flags )
6 { O_RDWR O_CREAT O_EXCL } flags ;
8 M: unix (make-unique-file) ( path -- )
9 open-unique-flags file-mode open-file close-file ;
11 M: unix temporary-path ( -- path ) "/tmp" ;