From cc068b4f72962fad111f9d857dfc353c4da24e30 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Fri, 22 Jan 2010 19:05:17 -0600 Subject: [PATCH] getgrent doesn't need unix-system-call --- basis/unix/groups/groups.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/unix/groups/groups.factor b/basis/unix/groups/groups.factor index a9b80002a8..7c2da50c9e 100644 --- a/basis/unix/groups/groups.factor +++ b/basis/unix/groups/groups.factor @@ -83,7 +83,7 @@ M: integer user-groups ( id -- seq ) user-name (user-groups) ; : all-groups ( -- seq ) - [ [ unix.ffi:getgrent ] unix-system-call dup ] [ \ unix.ffi:group memory>struct group-struct>group ] produce nip ; + [ unix.ffi:getgrent dup ] [ \ unix.ffi:group memory>struct group-struct>group ] produce nip ; : ( -- assoc ) all-groups [ [ id>> ] keep ] H{ } map>assoc ;