include "sys.m"; sys := load Sys Sys->PATH; pipe: fn(fds: array of ref FD): int;
The array fds passed to the system call must have a length of at least 2; only entries 0 and 1 are updated.
Limbo applications typically use typed Limbo channels, not pipes, for efficient communication by cooperating processes. Pipes are still useful, however, to connect applications that do not (or cannot) share such channels, or when a system interface requires a file descriptor. For instance, a process that serves the Styx protocol can pass the file descriptor for one end of a pipe to Sys->mount (see sys-bind(2)), and read and write Styx messages on the other end of the pipe.
|SYS-PIPE(2 )||Rev: Thu Feb 15 14:43:26 GMT 2007|