]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/unix/unix.factor
basis: use lint.vocabs tool to trim using lists
[factor.git] / basis / unix / unix.factor
index 7c61cd531fe15a2eaab522c3ba1feaeb5a5381b0..2d09096451db447bb591a23b054cbf03a57afda0 100644 (file)
@@ -1,9 +1,9 @@
 ! Copyright (C) 2005, 2010 Slava Pestov.
 ! Copyright (C) 2008 Eduardo Cavazos.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: accessors alien.c-types alien.syntax byte-arrays classes.struct
+USING: accessors alien.c-types alien.syntax byte-arrays
 combinators.short-circuit combinators.smart generalizations kernel
-libc locals math sequences sequences.generalizations strings system
+libc math sequences sequences.generalizations strings system
 unix.ffi vocabs.loader ;
 IN: unix
 
@@ -73,7 +73,7 @@ M: unix open-file [ open ] unix-system-call ;
 : touch ( filename -- ) f [ utime ] unix-system-call drop ;
 
 : change-file-times ( filename access modification -- )
-    utimbuf <struct>
+    utimbuf new
         swap >>modtime
         swap >>actime
         [ utime ] unix-system-call drop ;