diff options
author | bde <bde@FreeBSD.org> | 1997-03-11 19:28:24 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-03-11 19:28:24 +0000 |
commit | 080e6ca0dbff8c8c0854d92194c002344ff6ad51 (patch) | |
tree | cb0e9422c3f97eb9c7d2f8c8c158950a47bc7e7f /lib/libc | |
parent | 89013b759d296f0f99e532978864d5646f737ae2 (diff) | |
download | FreeBSD-src-080e6ca0dbff8c8c0854d92194c002344ff6ad51.zip FreeBSD-src-080e6ca0dbff8c8c0854d92194c002344ff6ad51.tar.gz |
Document that popen() uses a bidirectional pipe (in FreeBSD) and not a
socket pair (as in Lite2).
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/popen.3 | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/libc/gen/popen.3 b/lib/libc/gen/popen.3 index 545f061..2d2856b 100644 --- a/lib/libc/gen/popen.3 +++ b/lib/libc/gen/popen.3 @@ -50,7 +50,7 @@ The .Fn popen function .Dq opens -a process by creating an IPC connection, +a process by creating a bidirectional pipe forking, and invoking the shell. Historically, @@ -63,9 +63,9 @@ only allow the argument to specify reading or writing, not both. Since .Nm popen -is now implemented using sockets, the +is now implemented using a bidirectional pipe, the .Fa type -may request a bidirectional data flow. +argument may request a bidirectional data flow. The .Fa type argument is a pointer to a null-terminated string @@ -123,10 +123,9 @@ The function returns .Dv NULL if the -.Xr fork 2 , -.Xr pipe 2 , +.Xr fork 2 or -.Xr socketpair 2 +.Xr pipe 2 calls fail, or if it cannot allocate memory. .Pp @@ -153,7 +152,6 @@ function does not reliably set .Xr sh 1 , .Xr fork 2 , .Xr pipe 2 , -.Xr socketpair 2 , .Xr wait4 2 , .Xr fclose 3 , .Xr fflush 3 , |