1 ! Copyright (C) 2008 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: system kernel unix math sequences qualified
4 io.unix.backend io.ports specialized-arrays.int accessors ;
8 M: unix io.pipes:(pipe) ( -- pair )
10 [ underlying>> pipe io-error ]
11 [ first2 [ <fd> init-fd ] bi@ io.pipes:pipe boa ] bi ;