Let's say that I have a program called "parent" who uses fork() and execl() to launch another program called "child" and I want to keep communications between this two programs. It seems that the best way to keep this communications would bee using unnamed pipes. It's easy to found documentation and examples about the requirements in the "parent" program side but I haven't found the same in the "child" side.
For example, I think this guide is good but don´t show what I have to do in the program launched whith exec in order to have communications between both programs, I have to use dup() in the "parent" to share the descriptors but who I do refer to the pipe correctly in the child side to establish a communication between both?: http://tldp.org/LDP/lpg/node11.html