1 ! Copyright (C) 2008 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: system kernel unix math sequences
4 io.backend.unix 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 ;