|
|
1.1 ! root 1: /* fifo_close.c -- Close an internally typed fifo. */ ! 2: #include <sys/typed.h> ! 3: ! 4: /* Finish with using a typed space as a fifo. ! 5: * Free up FIFO structure associated with a typed space. ! 6: * Returns 0 if ffp was not open, 1 otherwise. ! 7: */ ! 8: int ! 9: fifo_close(ffp) ! 10: FIFO *ffp; ! 11: { ! 12: if (0 == ffp->f_flags) { ! 13: return(0); /* This ffp is not open. */ ! 14: } ! 15: ffp->f_space = F_NULL; ! 16: ffp->f_offset = T_NULL; ! 17: ffp->f_flags = 0; ! 18: ! 19: return(1); ! 20: } /* fifo_close() */ ! 21:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.