2009-05-07 17:53:32 -04:00
|
|
|
! Copyright (C) 2009 Doug Coleman.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
2010-12-25 19:54:45 -05:00
|
|
|
USING: alien.c-types alien.data io.directories.unix kernel
|
|
|
|
system unix classes.struct unix.ffi ;
|
2009-05-07 17:53:32 -04:00
|
|
|
IN: io.directories.unix.linux
|
|
|
|
|
2010-02-15 10:04:09 -05:00
|
|
|
M: linux find-next-file ( DIR* -- dirent )
|
2009-08-30 23:49:35 -04:00
|
|
|
dirent <struct>
|
2010-10-25 14:22:50 -04:00
|
|
|
f void* <ref>
|
2010-01-19 17:53:15 -05:00
|
|
|
[ [ readdir64_r ] unix-system-call 0 = [ (io-error) ] unless ] 2keep
|
2010-10-25 14:22:50 -04:00
|
|
|
void* deref [ drop f ] unless ;
|