Sorry for interrupting, but I don't see how pipe could return a single fd,
considering there are two (partly) independent ends, each being read (resp.
written) in their own time, and an fd has only one "current read/write
position" IIUC.
If the proposal is to have two independent positions (one for reads and one
for writes) for a single fd, then I am not sure the gain in the number of
fds used is worth the loss in the increased size of the fd structure.
Am I missing something?
Amicalement,
--
Albert.
--