|
|
1.1 ! root 1: .pa 1 ! 2: .he 'PIPE (II)'1/15/73'PIPE (II)' ! 3: .ti 0 ! 4: NAME pipe -- create a pipe ! 5: .sp ! 6: .ti 0 ! 7: SYNOPSIS sys pipe / pipe = 42.; not in assembler ! 8: .br ! 9: (file descriptor in r0) ! 10: .sp ! 11: .ti 0 ! 12: DESCRIPTION The ! 13: pipe____ ! 14: system call ! 15: creates an I/O mechanism called a pipe. ! 16: The file descriptor returned can ! 17: be used in both read and write operations. ! 18: When the pipe is written, ! 19: the data is buffered up to 504 bytes ! 20: at which time the writing process is suspended. ! 21: A read on the pipe will pick up the buffered data. ! 22: .sp ! 23: It is assumed that after the ! 24: pipe____ has been set up, ! 25: two (or more) ! 26: cooperating processes ! 27: (created by subsequent fork____ calls) ! 28: will pass data through the ! 29: pipe with read____ and write_____ calls. ! 30: ! 31: The shell has a syntax ! 32: to set up a linear array of processes ! 33: connected by pipes. ! 34: .sp ! 35: Read calls on an empty ! 36: pipe (no buffered data) with only one end ! 37: (no synonymous file ! 38: descriptors resulting from fork____ or dup___) ! 39: return an end-of-file. ! 40: Write calls under similar conditions are ignored. ! 41: ! 42: .ti 0 ! 43: SEE ALSO sh(I), read(II), write(II), fork(II) ! 44: .sp ! 45: .ti 0 ! 46: DIAGNOSTICS The error ! 47: bit (c-bit) is set if ! 48: 10 files are already open. ! 49: .sp ! 50: .ti 0 ! 51: BUGS --
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.