1 ! Copyright (C) 2009 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien.c-types io.directories.unix kernel system unix
4 classes.struct unix.ffi ;
5 IN: io.directories.unix.linux
7 M: linux find-next-file ( DIR* -- dirent )
10 [ [ readdir64_r ] unix-system-call 0 = [ (io-error) ] unless ] 2keep
11 void* deref [ drop f ] unless ;