procio: fixed grammar in man page plus program comment
The only essential change was substituting 'comma' for the word 'colon' in the man page plus program comment. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
06afd10525
commit
c683d9fe48
12
lib/procio.3
12
lib/procio.3
@ -37,7 +37,7 @@ function opens files below
|
|||||||
whose name is the string to by path and associates a stream with it.
|
whose name is the string to by path and associates a stream with it.
|
||||||
The argument
|
The argument
|
||||||
.I mode
|
.I mode
|
||||||
points to a string beginning with one of the following sequences
|
points to a string containing one of the following sequences
|
||||||
.TP
|
.TP
|
||||||
.B r
|
.B r
|
||||||
Open a file below
|
Open a file below
|
||||||
@ -51,17 +51,17 @@ Open a file below
|
|||||||
for writing even large buffers. The optional delimeter character
|
for writing even large buffers. The optional delimeter character
|
||||||
can be one of the follwoing
|
can be one of the follwoing
|
||||||
.BR '\ ' ,\ ',' ,\ '.' ,\ and\ ':'
|
.BR '\ ' ,\ ',' ,\ '.' ,\ and\ ':'
|
||||||
where the default is the colon
|
where the default is the comma
|
||||||
.BR ',' .
|
.BR ',' .
|
||||||
This allows to split very large input lines into pieces at this
|
This allows splitting very large input lines into pieces at this
|
||||||
delimeter and write each of them to the opened file below
|
delimeter and writing each of them to the opened file below
|
||||||
.IR /proc/## .
|
.IR /proc/## .
|
||||||
.TP
|
.TP
|
||||||
.B e
|
.B e
|
||||||
The underlying file descriptor will be closed if you use any
|
The underlying file descriptor will be closed if you use any
|
||||||
of the ‘exec...’ functions within your code.
|
of the `exec...' functions within your code.
|
||||||
.PP
|
.PP
|
||||||
The internal API allows to use stdio functions to read and write
|
The internal API allows the use of stdio functions to read and write
|
||||||
large buffers below
|
large buffers below
|
||||||
.IR /proc/## .
|
.IR /proc/## .
|
||||||
.PP
|
.PP
|
||||||
|
@ -80,7 +80,7 @@ FILE *fprocopen(const char *path, const char *mode)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
delim = ','; /* default delimeter is the colon */
|
delim = ','; /* default delimeter is the comma */
|
||||||
for (c = 1; c < len; c++) {
|
for (c = 1; c < len; c++) {
|
||||||
switch (mode[c]) {
|
switch (mode[c]) {
|
||||||
case '\0':
|
case '\0':
|
||||||
|
Loading…
Reference in New Issue
Block a user