Contents
in Detail
xxiii
44
PIPES AND FIFOS
889
44.1
Overview ................................................................................................................. 889
44.2
Creating and Using Pipes........................................................................................... 892
44.3
Pipes as a Method of Process Synchronization .............................................................. 897
44.4
Using Pipes to Connect Filters ..................................................................................... 899
44.5
Talking to a Shell Command via a Pipe:
popen()
........................................................... 902
44.6
Pipes and
stdio
Buffering ............................................................................................ 906
44.7
FIFOs....................................................................................................................... 906
44.8
A Client-Server Application Using FIFOs....................................................................... 909
44.9
Nonblocking I/O ...................................................................................................... 915
44.10 Semantics of
read()
and
write()
on Pipes and FIFOs....................................................... 917
44.11 Summary.................................................................................................................. 918
44.12 Exercises .................................................................................................................. 919
Chia sẻ với bạn bè của bạn: