?? pipe.2
字號:
.TH PIPE 2 .SH NAMEpipe \- create an interprocess channel.SH SYNOPSIS.B pipe(fildes).br.B int fildes[2];.SH DESCRIPTIONThe.I pipesystem callcreates an I/O mechanism called a pipe.The file descriptors returned canbe used in read and write operations.When the pipe is written using the descriptor.IR fildes [1]up to 4096 bytes of data are bufferedbefore the writing process is suspended.A read using the descriptor.IR fildes [0]will pick up the data.Writes with a count of 4096 bytes or less are atomic;no other process can intersperse data..PPIt is assumed that after thepipe has been set up,two (or more)cooperating processes(created by subsequent.I forkcalls)will pass data through thepipe with.I readand.I writecalls..PPThe Shell has a syntaxto set up a linear array of processesconnected by pipes..PPRead calls on an emptypipe (no buffered data) with only one end(all write file descriptors closed)returns an end-of-file..SH "SEE ALSO"sh(1), read(2), write(2), fork(2).SH DIAGNOSTICSThe function value zero is returned if thepipe was created; \-1 iftoo many files are already open.A signal is generated if a write on a pipe with only one end is attempted..SH BUGSShould more than 4096 bytes be necessary in anypipe among a loop of processes, deadlock will occur..SH ASSEMBLER(pipe = 42.).br.B sys pipe.br(read file descriptor in r0).br(write file descriptor in r1)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -