1 --- _SB/Libc/gen/FreeBSD/popen.3 2004-11-25 11:38:01.000000000 -0800
2 +++ _SB/Libc/gen/FreeBSD/popen.3.edit 2006-06-28 16:55:51.000000000 -0700
18 -.Fn popen "const char *command" "const char *type"
20 +.Fa "const char *command"
21 +.Fa "const char *mode"
24 -.Fn pclose "FILE *stream"
33 -a process by creating a bidirectional pipe
35 +a process by creating a bidirectional pipe, forking,
36 and invoking the shell.
37 Any streams opened by previous
42 was implemented with a unidirectional pipe;
43 -hence many implementations of
44 +hence, many implementations of
49 argument to specify reading or writing, not both.
53 is now implemented using a bidirectional pipe, the
56 argument may request a bidirectional data flow.
60 argument is a pointer to a null-terminated string
64 argument is a pointer to a null-terminated string
65 containing a shell command line.
66 This command is passed to
71 flag; interpretation, if any, is performed by the shell.
76 -stream in all respects
77 +stream in all respects,
78 save that it must be closed with
85 -streams are fully buffered by default.
86 +streams are fully buffered, by default.
90 -function waits for the associated process to terminate
91 -and returns the exit status of the command
92 +function waits for the associated process to terminate;
93 +it returns the exit status of the command,