include "pipe.m"; pipe:= load Pipe Pipe->PATH; fds: fn(): (ref Sys->FD, ref Sys->FD); files: fn(): (string, string);
fds: fn(): (ref Sys->FD, ref Sys->FD);The fds function opens a pair of files. One file is the read end of a simulation of a pipe for thread-to-thread communication and the other is the write end. The function returns a tuple with the read and write file descriptors, respectively.
In case the pipe cannot be created, fds returns (nil, nil).
files: fn(): (string, string);The files function returns a pair of file names to be opened. The first name is for the read end of a pipe and the second name is for the write end of a pipe.
In case the pipe cannot be created, files returns (' ', ' ').