Similar to proctab, there should be something like pipetab which is seen system-wide. Most of the data manipulation will be using this pipetab only.
The pipid32 type is a typedef of int.
Consider during an on-going pipe operation, if the pipe owner calls pipdisconnect or pipdelete, then do the following:
- Free pipe internal buffer (if you are getting memory from heap).
- Delete associated semaphores.
- Reader or writer who was waiting on that semaphore will receive a
SYSERR, so catch that and exit properly.