Have a look at the following code:
#include #include #include #include #include
No they aren't. There have been some systems with bidirectional pipes (sun, IIRC). If you really need a bidirectional pipe, you could use socketpair().