summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c/getline.3c
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2016-06-22 12:55:10 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2016-06-22 12:55:10 +0000
commit8bae72dc3f645da905eab5fe960867037f57bae0 (patch)
tree24dce03bc58aa36ef080558a440d351c2237d4db /usr/src/man/man3c/getline.3c
parent766f41d1d95d047e65ac4942d66037ce7f924027 (diff)
parent01aaaf328842760a1002109b299908a027e94cf8 (diff)
downloadillumos-joyent-release-20160625.tar.gz
[illumos-gate merge]release-20160625
commit 01aaaf328842760a1002109b299908a027e94cf8 7051 want id_space(9F) docs commit c1de7575521deda5ee777b8054a9c5b12f15b1ee 7120 mDNS resync was not wsdiff safe commit 9c05409f2b9301e686735887a9573454cceb0331 7069 i386_XARCH should include -m32 commit 406fc5100dac8d225a315a6def6be8d628f34e24 6602 lofi should support labeled devices commit f3a07f941f1be263a48a040c059edbcb722cf436 4712 Prefer 'parsable' over 'parseable' in the manual pages commit 1b2031a95889aea96be6af55dcf31a0d5ffdfed9 7050 Prefer 'subcommand' over 'sub-command' in the manual pages commit 831b40b1c811223fd0b1131791a38e3ae5143377 7049 Prefer 'writable' over 'writeable' in the manual pages commit a716f1a92056bc2e231e57ae2a20725ce606ea73 7047 Fix spelling mistakes in sections 9E, 9F and 9S commit 95e15299a2c42b8014fa27631a6f3be2a93febc2 7048 Fix spelling mistakes in sections 7D, 7I, 7IPP, and 7P commit df23565fe1d0b225f9f898c50dfafea6749b0b7f 7046 Fix spelling mistakes in section 5 commit c855112f85cf71e42f6381a66f3f86f98e2ed24e 7045 Fix spelling mistakes in section 4 commit 843c398e8904ed9d833d2af3103894f909fb4b52 7042 Fix spelling mistakes in library sections commit 0db8de19c0e494758b68b702523a2b0eaffe3b2e 7044 Fix spelling mistakes in sections 1HAS and 2 commit df23d905b96680e56379c5a5ecb4b363f36b9e74 7041 Fix spelling mistakes in sections 1 and 1M commit 71af3be340c57171837478555e2eb0d496318cfc 7040 Detect common spelling errors in manual pages Conflicts: usr/src/uts/common/fs/vfs.c usr/src/man/man7d/cpuid.7d usr/src/man/man5/privileges.5 usr/src/man/man3c/signalfd.3c usr/src/cmd/lofiadm/main.c
Diffstat (limited to 'usr/src/man/man3c/getline.3c')
-rw-r--r--usr/src/man/man3c/getline.3c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr/src/man/man3c/getline.3c b/usr/src/man/man3c/getline.3c
index a8db7df218..4339315d38 100644
--- a/usr/src/man/man3c/getline.3c
+++ b/usr/src/man/man3c/getline.3c
@@ -12,7 +12,7 @@
.\"
.\" Copyright (c) 2013, Joyent, Inc. All rights reserved.
.\"
-.TH GETLINE 3C "Apr 24, 2013"
+.TH GETLINE 3C "April 9, 2016"
.SH NAME
getline, getdelim \- read delimited input from streams
.SH SYNOPSIS
@@ -36,7 +36,7 @@ getline, getdelim \- read delimited input from streams
.fi
.SH DESCRIPTION
-The \fBgetdelim\fR() function reads bytes from the \fIstream\fR into the the
+The \fBgetdelim\fR() function reads bytes from the \fIstream\fR into the
array pointed to by \fIptr\fR, until the \fIdelimiter\fR byte or an end-of-file
condition is encountered. The \fBgetline\fR() function is identical in
behaviour, but uses the newline character as the delimiter. The delimiter
@@ -51,7 +51,6 @@ hold the string it will be expanded, as if via \fBrealloc(3C)\fR. The caller
must \fBfree(3C)\fR the buffer when it is no longer required.
.SH RETURN VALUES
-.sp
.LP
If successful, \fBgetdelim\fR() and \fBgetline\fR() return the number of bytes
written into the buffer, excluding the terminating null byte. If an error
@@ -59,7 +58,6 @@ occurs, or if end-of-file is reached prior to reading any bytes, the value
\fB\(mi1\fR is returned and \fIerrno\fR is set to indicate the error.
.SH ERRORS
-.sp
.LP
The \fBgetline\fR() and \fBgetdelim\fR() functions may fail due to the
following errors:
@@ -117,7 +115,6 @@ free(ptr);
.in -2
.SH ATTRIBUTES
-.sp
.TS
box;
c | c
@@ -130,7 +127,6 @@ MT-Level MT-Safe
.TE
.SH SEE ALSO
-.sp
.LP
\fBfgetc\fR(3C), \fBfgets\fR(3C), \fBfree\fR(3C), \fBmalloc\fR(3C),
\fBrealloc\fR(3C), \fBattributes\fR(5)