! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
-USING: alien.c-types alien.data system kernel unix math sequences
-io.backend.unix io.ports libc specialized-arrays accessors unix.ffi ;
-QUALIFIED: io.pipes
+USING: alien.c-types alien.data io.backend.unix io.pipes kernel
+libc sequences specialized-arrays system unix.ffi ;
SPECIALIZED-ARRAY: int
IN: io.pipes.unix
-M: unix io.pipes:(pipe) ( -- pair )
+M: unix (pipe)
2 int <c-array>
- [ pipe io-error ]
+ [ unix.ffi:pipe io-error ]
[ first2 [ <fd> init-fd ] bi@ io.pipes:pipe boa ] bi ;