]> git.saurik.com Git - apple/libc.git/blame - stdio/FreeBSD/getline.3.patch
Libc-763.11.tar.gz
[apple/libc.git] / stdio / FreeBSD / getline.3.patch
CommitLineData
1f2f436a
A
1--- getline.3.orig 2009-12-15 15:37:17.000000000 -0800
2+++ getline.3 2009-12-15 15:37:57.000000000 -0800
3@@ -34,7 +34,6 @@
4 .Sh LIBRARY
5 .Lb libc
6 .Sh SYNOPSIS
7-.Fd "#define _WITH_GETLINE"
8 .In stdio.h
9 .Ft ssize_t
10 .Fn getdelim "char ** restrict linep" "size_t * restrict linecapp" "int delimiter" " FILE * restrict stream"
11@@ -95,34 +94,6 @@ ssize_t linelen;
12 while ((linelen = getline(&line, &linecap, fp)) > 0)
13 fwrite(line, linelen, 1, stdout);
14 .Ed
15-.Sh COMPATIBILITY
16-Many application writers used the name
17-.Va getline
18-before the
19-.Fn getline
20-function was introduced in
21-.St -p1003.1 ,
22-so a prototype is not provided by default in order to avoid
23-compatibility problems.
24-Applications that wish to use the
25-.Fn getline
26-function described herein should either request a strict
27-.St -p1003.1-2008
28-environment by defining the macro
29-.Dv _POSIX_C_SOURCE
30-to the value 200809 or greater, or by defining the macro
31-.Dv _WITH_GETLINE ,
32-prior to the inclusion of
33-.In stdio.h .
34-For compatibility with GNU libc, defining either
35-.Dv _BSD_SOURCE
36-or
37-.Dv _GNU_SOURCE
38-prior to the inclusion of
39-.In stdio.h
40-will also make
41-.Fn getline
42-available.
43 .Sh ERRORS
44 These functions may fail if:
45 .Bl -tag -width Er